/* ============================================================
   PALETTE — Cinematic Design System (Luma-clone)
   Dual light/dark theme with cream base + dark research sections
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Light theme */
  --bg-light:    #ffffff;
  --fg-light:    #0a0a0a;
  --muted-light: rgba(10,10,10,0.55);
  --dim-light:   rgba(10,10,10,0.28);
  --border-light: rgba(10,10,10,0.10);

  /* Dark theme */
  --bg-dark:     #0a0a0a;
  --fg-dark:     #f7f4ef;
  --muted-dark:  rgba(247,244,239,0.50);
  --dim-dark:    rgba(247,244,239,0.22);
  --border-dark: rgba(247,244,239,0.09);

  /* Brand */
  --cream:       #f7f4ef;

  /* Functional defaults (dark-first) */
  --bg:          var(--bg-dark);
  --fg:          var(--fg-dark);
  --muted:       var(--muted-dark);
  --dim:         var(--dim-dark);
  --border:      var(--border-dark);
  --surface:     #111111;
  --surface-2:   #1a1a1a;

  /* Layout */
  --nav-h:      64px;
  --max-w:      1200px;
  --r:          20px;
  --f-sans:     'DM Sans', sans-serif;
  --f-display:  'DM Sans', sans-serif;
  --f-mono:     'DM Mono', monospace;
}

/* ── Section theme overrides ────────────────────────────────── */
.section-light {
  --bg:     var(--bg-light);
  --fg:     var(--fg-light);
  --muted:  var(--muted-light);
  --dim:    var(--dim-light);
  --border: var(--border-light);
  --surface: #eee9e2;
  --surface-2: #e4dfd7;
  background: var(--bg-light);
  color: var(--fg-light);
}

.section-dark {
  --bg:     var(--bg-dark);
  --fg:     var(--fg-dark);
  --muted:  var(--muted-dark);
  --dim:    var(--dim-dark);
  --border: var(--border-dark);
  --surface: #111111;
  --surface-2: #1a1a1a;
  background: var(--bg-dark);
  color: var(--fg-dark);
}

/* Body defaults to dark */
body {
  background: var(--bg-dark);
  color: var(--fg-dark);
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  background: transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Light nav variant — when scrolled into a light section */
.nav--light .nav-logo,
.nav--light .nav-links a {
  color: var(--fg-light);
}
.nav--light .btn-outline {
  border-color: rgba(10,10,10,0.20);
  color: var(--fg-light);
}
.nav--light .nav-burger span {
  background: var(--fg-light);
}

.nav-drawer {
  background: rgba(10,10,10,0.97);
}
.nav-logo {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-style: normal;
  font-size: 22px;
  letter-spacing: 0.02em;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--cream);
  color: var(--bg-dark);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn-accent-gold {
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 600;
  border: none;
}
.btn-accent-gold:hover {
  background: rgba(255,255,255,0.88);
  color: #0a0a0a;
}
.btn-ghost {
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--cream);
  background: rgba(247,244,239,0.06);
}

/* ============================================================
   HERO — single full-bleed video
   ============================================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
}

/* Scroll-shrink zone: 3 screens of scroll space for the shrink animation */
.hero.hero-zone {
  height: 300vh;
  min-height: auto;
}

/* In hero-zone, the wrap is just a non-sticky shell */
.hero.hero-zone .hero-sticky-wrap {
  position: relative;
  height: 100vh;
  overflow: visible;
}

/* Hero video fixed so it covers viewport while zone scrolls.
   Bottom 80px left open — not full-bleed, shows the dark hero background. */
.hero.hero-zone .hero-vid {
  position: fixed;
  inset: 0 0 80px 0;   /* leave 80px at the bottom */
  width: auto;          /* let left+right determine width */
  height: auto;         /* let top+bottom determine height */
  z-index: 50;
  pointer-events: none; /* always pass-through so page stays interactive */
}

/* Hero text also fixed so it stays visible at scroll start */
.hero.hero-zone .hero-content {
  position: fixed;
  z-index: 51;
}
.hero.hero-zone .hero-headline {
  will-change: transform, opacity;
  transform-origin: center center;
}
.hero.hero-zone .hero-eyebrow,
.hero.hero-zone .hero-sub,
.hero.hero-zone .hero-content .btn {
  will-change: opacity, transform;
}

.hero-center-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 52;
  text-align: center;
  pointer-events: none;
  display: grid;
  place-items: center;
  width: 90vw;
  max-width: 800px;
}
.hero-center-text > * {
  grid-area: 1 / 1;
}
.hero-center-headline {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--cream);
  text-shadow: 0 2px 32px rgba(0,0,0,0.5);
  opacity: 0;
  will-change: transform, opacity, filter;
  filter: blur(6px);
  transition: filter 0.6s ease-out;
}
.hero-center-headline.is-visible {
  filter: blur(0);
}
.hero-center-mission {
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 2px 32px rgba(0,0,0,0.5);
  max-width: 780px;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-sticky-wrap {
  position: relative;
  height: 100vh;
  overflow: visible;
}

.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform-origin: center center;
  will-change: transform, border-radius, opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.30) 0%,
    rgba(10,10,10,0.0) 35%,
    rgba(10,10,10,0.0) 55%,
    rgba(10,10,10,0.72) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Show overlay only when hovering the text block */
.hero:has(.hero-content:hover) .hero-overlay {
  opacity: 1;
}

.hero-content {
  position: absolute;
  bottom: 64px;
  left: 64px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 520px;
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 10px;
}

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  margin-bottom: 14px;
}
.hero-brand {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 360px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  margin-bottom: 28px;
}

/* ============================================================
   MISSION STATEMENT — light section
   ============================================================ */
.mission {
  padding: 120px 40px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
}
.mission-text {
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 2px 32px rgba(0,0,0,0.5);
  max-width: 780px;
  text-align: center;
  opacity: 0;
  transition: color 1.0s ease, text-shadow 0.8s ease;
}
.mission-text.is-revealed {
  opacity: 1;
  color: var(--fg);
  text-shadow: none;
}

/* ============================================================
   APP PREVIEW MOCKUP — dark section
   ============================================================ */
.app-preview {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
}
.app-preview-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.app-preview-inner .section-label { margin-bottom: 40px; }

/* Mockup window */
.app-mockup {
  width: 100%;
  background: rgba(247,244,239,0.03);
  border: 1px solid rgba(247,244,239,0.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(247,244,239,0.04) inset,
    0 40px 100px rgba(0,0,0,0.6);
}

/* Title bar */
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  background: rgba(247,244,239,0.04);
  border-bottom: 1px solid rgba(247,244,239,0.07);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.mockup-dot:nth-child(2) { background: #febc2e; opacity: 0.8; }
.mockup-dot:nth-child(3) { background: #28c840; opacity: 0.8; }
.mockup-title {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(247,244,239,0.28);
  margin-left: 12px;
  letter-spacing: 0.02em;
}

/* Body grid */
.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  grid-template-rows: 480px auto;
}

/* Left: scenes */
.mockup-scenes {
  grid-column: 1; grid-row: 1;
  border-right: 1px solid rgba(247,244,239,0.07);
  background: rgba(247,244,239,0.02);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-panel-label {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.28);
  margin-bottom: 6px;
}
.scene-thumb {
  border-radius: 7px;
  background: rgba(247,244,239,0.05);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.scene-thumb.active {
  background: linear-gradient(135deg, rgba(129,140,248,0.22), rgba(103,232,249,0.16));
  box-shadow: 0 0 0 1px rgba(129,140,248,0.35);
}
.scene-thumb-label {
  font-size: 9px;
  font-weight: 500;
  color: rgba(247,244,239,0.30);
}

/* Center: video */
.mockup-video {
  grid-column: 2; grid-row: 1;
  position: relative;   /* required so docked video's position:absolute inset:0 fills this */
  overflow: hidden;     /* clip docked video to panel bounds */
  background: linear-gradient(160deg,
    rgba(167,139,250,0.10) 0%,
    rgba(103,232,249,0.07) 50%,
    rgba(99,102,241,0.09) 100%);
  border-right: 1px solid rgba(247,244,239,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  position: relative;
}
.mockup-video-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/16;        /* vertical short drama format */
  background: rgba(247,244,239,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.mockup-video-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(129,140,248,0.28) 0%,
    rgba(103,232,249,0.14) 40%,
    transparent 65%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}
.mockup-play {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(247,244,239,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.mockup-play::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 12px;
  border-color: transparent transparent transparent #0a0a0a;
  margin-left: 3px;
}
.mockup-video-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(247,244,239,0.28);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile-only static video inside mockup-video (hidden on desktop since hero docks in) */
.mockup-mobile-vid {
  display: none;
}
@media (max-width: 809px) {
  .mockup-mobile-vid {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
  }
}

/* Right: chat */
.mockup-chat {
  grid-column: 3; grid-row: 1;
  background: rgba(247,244,239,0.02);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 10px;
  overflow: hidden;
}
.chat-bubble {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 12px;
  font-family: var(--f-sans);
  font-size: 11px;
  line-height: 1.55;
  color: rgba(247,244,239,0.78);
}
.chat-bubble.user {
  background: rgba(247,244,239,0.08);
  border-radius: 12px 12px 3px 12px;
  align-self: flex-end;
}
.chat-bubble.ai {
  background: linear-gradient(135deg,
    rgba(129,140,248,0.18),
    rgba(103,232,249,0.12));
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
}
.mockup-chat-input {
  margin-top: auto;
  background: rgba(247,244,239,0.04);
  border: 1px solid rgba(247,244,239,0.09);
  border-radius: 100px;
  padding: 7px 13px;
  font-family: var(--f-sans);
  font-size: 11px;
  color: rgba(247,244,239,0.22);
}

/* Chat enhancements */
.ai-badge {
  font-size: 8px;
  font-family: var(--f-mono);
  background: rgba(129,140,248,0.2);
  color: rgba(129,140,248,0.9);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.chat-ts {
  display: block;
  font-size: 8px;
  color: rgba(247,244,239,0.2);
  margin-top: 4px;
  font-family: var(--f-mono);
}
.chat-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.chat-action {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(247,244,239,0.08);
  color: rgba(247,244,239,0.6);
  cursor: pointer;
  border: 1px solid rgba(247,244,239,0.1);
}

/* Chat animation states */
.chat-bubble[data-chat] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chat-bubble[data-chat].is-visible {
  opacity: 1;
  transform: none;
}

/* Typing indicator */
.chat-typing {
  display: none;
  gap: 4px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px 12px 12px 3px;
  background: linear-gradient(135deg, rgba(129,140,248,0.18), rgba(103,232,249,0.12));
  width: fit-content;
}
.chat-typing.is-active { display: flex; }
.chat-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(247,244,239,0.5);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.2; transform: translateY(0); }
  30%            { opacity: 1;   transform: translateY(-3px); }
}

/* Bottom: timeline */
.mockup-timeline {
  grid-column: 1 / -1; grid-row: 2;
  background: rgba(247,244,239,0.02);
  border-top: 1px solid rgba(247,244,239,0.07);
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.timeline-controls { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.timeline-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(247,244,239,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: rgba(247,244,239,0.45);
}
.timeline-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline-ruler {
  display: flex;
  justify-content: space-between;
  padding: 0 0 4px;
  font-size: 8px;
  color: rgba(247,244,239,0.25);
  font-family: var(--f-mono);
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-track-label {
  font-size: 8px;
  font-family: var(--f-mono);
  color: rgba(247,244,239,0.3);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.timeline-track {
  flex: 1;
  height: 20px;
  background: rgba(247,244,239,0.04);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 2px;
}
.timeline-clip { height: 14px; border-radius: 3px; flex-shrink: 0; }
.timeline-clip:nth-child(1) { width: 18%; background: linear-gradient(90deg, rgba(129,140,248,0.50), rgba(103,232,249,0.40)); }
.timeline-clip:nth-child(2) { width: 11%; background: rgba(167,139,250,0.35); }
.timeline-clip:nth-child(3) { width: 23%; background: linear-gradient(90deg, rgba(103,232,249,0.40), rgba(129,140,248,0.35)); }
.timeline-clip:nth-child(4) { width: 8%;  background: rgba(167,139,250,0.30); }
.timeline-clip:nth-child(5) { width: 17%; background: rgba(99,102,241,0.30); }
.timeline-playhead {
  position: absolute;
  left: 30%;
  top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(247,244,239,0.65);
  animation: playhead-scan 8s linear infinite;
}
.timeline-playhead::before {
  content: '';
  position: absolute;
  top: 0; left: -4px;
  width: 9px; height: 9px;
  background: rgba(247,244,239,0.65);
  border-radius: 50%;
}
@keyframes playhead-scan {
  0%   { left: 5%; }
  100% { left: 90%; }
}

/* AUD track — waveform look */
.timeline-track--audio { background: rgba(247,244,239,0.03); }
.timeline-wave {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(129,140,248,0.25) 0px, rgba(129,140,248,0.25) 2px,
    transparent 2px, transparent 4px
  );
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'><path d='M0,10 Q10,2 20,10 Q30,18 40,10 Q50,2 60,10 Q70,18 80,10 Q90,2 100,10 Q110,18 120,10 Q130,2 140,10 Q150,18 160,10 Q170,2 180,10 Q190,18 200,10' fill='none' stroke='white' stroke-width='12'/></svg>");
  mask-size: cover;
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'><path d='M0,10 Q10,2 20,10 Q30,18 40,10 Q50,2 60,10 Q70,18 80,10 Q90,2 100,10 Q110,18 120,10 Q130,2 140,10 Q150,18 160,10 Q170,2 180,10 Q190,18 200,10' fill='none' stroke='white' stroke-width='12'/></svg>");
  -webkit-mask-size: cover;
}

/* FX track */
.timeline-track--fx { background: rgba(247,244,239,0.02); }
.timeline-fx-marker {
  position: absolute;
  top: 3px; bottom: 3px;
  width: 3px;
  background: rgba(251,191,36,0.6);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .mockup-body {
    grid-template-columns: 160px 1fr 200px;
    grid-template-rows: 380px auto;
  }
}
@media (max-width: 809px) {
  .app-preview { padding: 60px 0 72px; }
  .app-preview-inner { padding: 0 20px; }
  .mockup-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .mockup-scenes, .mockup-chat { display: none; }
  .mockup-video {
    grid-column: 1; grid-row: 1;
    border: none;
    padding: 0;
    height: auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
  }
  /* Hide desktop-only mockup elements on mobile */
  .mockup-video .mockup-video-label,
  .mockup-video .mockup-video-frame,
  .mockup-video .mockup-video-glow,
  .mockup-video .mockup-play { display: none; }
  .mockup-video-frame { max-width: 120px; }
  .mockup-timeline { grid-column: 1; grid-row: 2; }
}


/* ============================================================
   IPHONE DEVICE SHELL
   ============================================================ */
.iphone-device {
  width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #111;
  border-radius: 50px;
  border: 2px solid #2a2a2a;
  box-shadow:
    0 0 0 1px #000 inset,
    0 0 0 5px #1a1a1a inset,
    0 40px 100px rgba(0,0,0,0.7),
    0 0 60px rgba(129,140,248,0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.iphone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 20;
}
.iphone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50px;
}
.iphone-screen video,
.iphone-vid {
  width: 100%; height: 100%;
  object-fit: cover;
}
.iphone-home-bar {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  z-index: 20;
}

/* ============================================================
   TIKTOK OVERLAY
   ============================================================ */
.tiktok-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.tiktok-sidebar {
  position: absolute;
  right: 8px; bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.tiktok-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}
.tiktok-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 18px;
  line-height: 1;
  color: #fff;
}
.tiktok-action span:last-child {
  font-size: 9px;
  font-weight: 600;
}
.tiktok-bottom {
  position: absolute;
  left: 10px; right: 52px; bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tiktok-username {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.tiktok-caption {
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.tiktok-progress {
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 1px;
  margin-top: 6px;
  overflow: hidden;
}
.tiktok-progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 1px;
  animation: tiktok-progress 8s linear infinite;
}
@keyframes tiktok-progress {
  from { width: 0% }
  to   { width: 100% }
}

/* Floating hearts */
.tiktok-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tiktok-heart {
  position: absolute;
  bottom: 100px;
  font-size: 22px;
  animation: heart-float var(--dur, 1.4s) ease-out forwards;
}
@keyframes heart-float {
  0%   { transform: translateY(0) scale(0.6) rotate(-10deg); opacity: 1; }
  100% { transform: translateY(-130px) scale(1.3) rotate(10deg); opacity: 0; }
}

/* Comment barrage */
.tiktok-danmaku { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tiktok-danmaku-item {
  position: absolute;
  left: 8px;
  font-size: 10px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 10px;
  animation: danmaku-in 4s ease forwards;
  white-space: nowrap;
}
@keyframes danmaku-in {
  0%   { opacity: 0; transform: translateX(-16px); }
  12%  { opacity: 1; transform: translateX(0); }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Like count bump */
.like-bump { animation: like-bump 0.3s ease; }
@keyframes like-bump { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* ============================================================
   IPHONE ENTER ZONE
   ============================================================ */
.iphone-enter {
  height: 180vh;
  position: relative;
}
.iphone-enter-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   PRODUCTS / STUDIO — scroll-driven sticky section
   ============================================================ */
.products {
  position: relative;
  z-index: 3;
}

/* Header: scrolls away naturally */
.products-header {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  flex-shrink: 0;
}

/* Scroll runway — tall container that gives scroll distance */
.products-scroll {
  height: 240vh;
  position: relative;
}

/* Sticky viewport — locked while scrolling through the runway */
.products-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 40px;
}

/* Grid: phone left, text right */
.products-layout {
  max-width: var(--max-w);
  width: 100%;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Phone column */
.products-phone {
  display: flex;
  justify-content: center;
}

/* ── Phone Feed (TikTok vertical swipe) ─────────────────── */
.phone-feed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50px;
  z-index: 2;
}
.feed-item {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.22, 0.68, 0, 1);
  will-change: transform;
}
.feed-item.is-active {
  transform: translateY(0);
}
.feed-item.is-prev {
  transform: translateY(-100%);
}
.feed-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Text area (crossfade) ──────────────────────────────── */
.products-text {
  position: relative;
  display: grid;
}
.products-feature {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: center;
  padding: 40px 0 40px 36px;
  border-left: 3px solid var(--dim-light);
  background: transparent;
  color: var(--fg-light);
  border-radius: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 0.68, 0, 1);
  pointer-events: none;
}
.products-feature.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-left-color: var(--fg-light);
}
.products-feature .product-tag {
  color: var(--muted-light);
  background: rgba(10,10,10,0.05);
  border-color: rgba(10,10,10,0.10);
}
.products-feature .product-name {
  color: var(--fg-light);
  font-size: clamp(24px, 2.5vw, 36px);
}
.products-feature .product-desc {
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.75;
  max-width: 420px;
}
.products-feature .product-link {
  margin-top: 12px;
  color: var(--dim-light);
  font-size: 14px;
}
.products-feature .product-link:hover {
  color: var(--fg-light);
}

/* Mobile-only video preview inside each product feature card */
.products-feature-vid {
  display: none;
}

/* ── Progress dots ──────────────────────────────────────── */
.products-progress {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  transition: background 0.3s, transform 0.3s;
}
.progress-dot.active {
  background: var(--fg);
  transform: scale(1.4);
}

/* ── Scroll hint ────────────────────────────────────────── */
.products-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  animation: hint-bob 2.5s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* Shared section header */
.section-head {
  margin-bottom: 64px;
}
.section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--muted);
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
}

/* Grid: featured top (2-col span) + 2 cards below */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--border);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.25s;
}
.product-card:hover { background: var(--surface-2); }

/* Featured: full-width row, side-by-side layout */
.product-card--featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: stretch;
  min-height: 460px;
}

.product-visual {
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.product-card--featured .product-visual { width: 55%; }
.product-card:not(.product-card--featured) .product-visual {
  width: 100%;
  aspect-ratio: 16/9;
}
.product-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-visual video { transform: scale(1.03); }

.product-meta {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.product-card--featured .product-meta {
  padding: 56px 52px;
  justify-content: flex-end;
}

.product-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(10,10,10,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  display: inline-block;
  width: fit-content;
}
.product-name {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}
.product-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
}
.product-link {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  margin-top: auto;
  display: block;
  transition: color 0.2s;
}
.product-card:hover .product-link { color: var(--fg); }


/* ============================================================
   CINEMATIC HERO — scroll-shrink video module
   ============================================================ */
.cine-hero {
  height: 300vh;
  background: var(--bg-dark);
  position: relative;
  z-index: 3;
}
.cine-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cine-hero-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  will-change: width, height, border-radius;
}
.cine-hero-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cine-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-size: clamp(27px, 4.25vw, 61px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  white-space: nowrap;
  letter-spacing: -0.02em;
}


/* Mobile: static module, no scroll-shrink */
@media (max-width: 809px) {
  .cine-hero {
    height: auto;
    padding: 40px 20px;
  }
  .cine-hero-sticky {
    position: relative;
    height: auto;
  }
  .cine-hero-frame {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: var(--r);
  }
  .cine-hero-vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .cine-hero-title {
    opacity: 1;
    font-size: 24px;
  }
}


/* ============================================================
   RESEARCH / TECHNOLOGY — dark section
   ============================================================ */
.research {
  padding: 24px 0 120px;
  margin-top: 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
  overflow: hidden;
}
.research-flower {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140%;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.research-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.section-subtitle {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin-top: 20px;
}

/* Capabilities strip */
.research-caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.research-cap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.research-cap:first-child { padding-left: 0; }
.research-cap:last-child { border-right: none; }
.research-cap-num {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
}
.research-cap-label {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 48px;
  border-radius: var(--r);
  overflow: hidden;
}

/* Each item: video left | text right. Even items flip. */
.research-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #111111;
  min-height: 420px;
  overflow: hidden;
  border-radius: 16px;
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.research-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.research-item:nth-child(even) { direction: rtl; }
.research-item:nth-child(even) > * { direction: ltr; }

.research-visual {
  overflow: hidden;
  background: #000;
}
.research-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.80;
  transition: opacity 0.3s, transform 0.5s ease;
}
.research-item:hover .research-visual video {
  opacity: 1;
  transform: scale(1.02);
}

.research-info {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.research-info-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.research-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 10px;
  display: inline-block;
}
.research-tag--new {
  background: rgba(255,255,255,0.08);
  color: var(--fg);
  border: 1px solid var(--border);
  animation: tag-pulse 2.5s ease-in-out infinite;
}
.research-tag--soon {
  background: rgba(99,102,241,0.12);
  color: #6366F1;
  border: 1px solid rgba(99,102,241,0.25);
}
.research-visual--gradient {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}
@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 12px 2px rgba(255,255,255,0.12); }
}
.research-name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
}
.research-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 420px;
}
.research-cta {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-block;
  margin-top: 8px;
}
.research-cta:hover { opacity: 1; }

/* ============================================================
   STATS ROW — dark
   ============================================================ */
.stats {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 3;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 0 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}
.stat-unit { color: var(--fg); }
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   DRAGGABLE GALLERY — Hedra-style scattered canvas
   ============================================================ */
.access {
  padding: 0;
  position: relative;
  z-index: 3;
}

.drag-surface {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: grab;
  background: var(--bg-dark);
  mask: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.drag-surface:active { cursor: grabbing; }
.drag-surface.is-dragging { cursor: grabbing; }

.drag-canvas {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.drag-card {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: auto;
  will-change: transform;
  transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy)));
  cursor: grab;
  overflow: hidden;
  border-radius: 8px;
}
.drag-surface.is-dragging .drag-card { cursor: grabbing; }
.drag-card img,
.drag-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  display: block;
}

/* Video play icon overlay */
.drag-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drag-card-play svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.drag-card:hover .drag-card-play { opacity: 0; }

/* Centered overlay */
.drag-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  gap: 16px;
}

/* "Drag to explore" badge */
.drag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-dark);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 8px 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.drag-surface.is-active .drag-badge { opacity: 1; }

.drag-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--fg-dark);
  margin: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.drag-title em {
  font-style: italic;
}

.drag-sub {
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted-dark);
  max-width: 420px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.drag-cta {
  pointer-events: auto;
  margin-top: 16px;
}

/* Form */
#contact-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 20px;
}
#contact-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 16px 28px;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--fg-dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
#contact-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
#contact-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
}
#contact-form .btn-accent-gold {
  background: #f7f4ef;
  color: #0a0a0a;
  padding: 16px 32px;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  transition: background 0.2s, min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#contact-form .btn-accent-gold:hover {
  background: #fff;
  color: #0a0a0a;
}

/* Loading state */
#contact-form .btn-accent-gold.is-loading {
  min-width: 52px;
  padding: 16px;
  pointer-events: none;
  color: transparent;
}
#contact-form .btn-accent-gold.is-loading .btn-label { opacity: 0; }
#contact-form .btn-accent-gold.is-loading .btn-spinner { opacity: 1; }

/* Success state */
#contact-form .btn-accent-gold.is-success {
  min-width: 52px;
  padding: 16px;
  pointer-events: none;
  color: transparent;
  background: var(--fg-dark);
}
#contact-form .btn-accent-gold.is-success .btn-label { opacity: 0; }
#contact-form .btn-accent-gold.is-success .btn-check { opacity: 1; transform: scale(1); }

/* Button inner label */
.btn-label {
  transition: opacity 0.15s ease;
}

/* Spinner ring */
.btn-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10,10,10,0.15);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
  animation: btn-spin 0.7s linear infinite;
}

/* Checkmark */
.btn-check {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-check::before,
.btn-check::after {
  content: '';
  position: absolute;
  background: #0a0a0a;
  border-radius: 2px;
}
.btn-check::before {
  width: 6px;
  height: 2px;
  left: 2px;
  top: 11px;
  transform: rotate(45deg);
  transform-origin: left center;
}
.btn-check::after {
  width: 11px;
  height: 2px;
  left: 6px;
  top: 9px;
  transform: rotate(-45deg);
  transform-origin: left center;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.form-success {
  display: none;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--fg-dark);
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ── Success Modal ──────────────────────────────── */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.success-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.success-modal {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.success-modal-overlay.active .success-modal {
  transform: scale(1) translateY(0);
}
#confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.success-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-modal-close:hover {
  background: rgba(0,0,0,0.1);
  color: #111;
}
.success-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #22c55e;
  position: relative;
  z-index: 1;
}
.success-modal-icon svg {
  width: 100%;
  height: 100%;
}
.success-modal-icon circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
}
.success-modal-overlay.active .success-modal-icon circle {
  animation: modal-circle 0.6s 0.2s ease forwards;
}
.success-modal-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.success-modal-overlay.active .success-modal-check {
  animation: modal-check 0.4s 0.6s ease forwards;
}
@keyframes modal-circle {
  to { stroke-dashoffset: 0; }
}
@keyframes modal-check {
  to { stroke-dashoffset: 0; }
}
.success-modal-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.success-modal-desc {
  font-family: var(--f-body);
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
}
.success-modal-twitter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 12px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
}
.success-modal-twitter:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}
.success-modal-twitter svg {
  flex-shrink: 0;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 40px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(10,10,10,1);
}
/* Light section variant */
.back-to-top.is-light {
  background: rgba(255,255,255,0.85);
  border-color: var(--border-light);
  color: var(--fg-light);
}
.back-to-top.is-light:hover {
  background: rgba(255,255,255,1);
}

/* ============================================================
   CTA MARQUEE — geometric + scrolling text
   ============================================================ */
.cta-marquee {
  position: relative;
  background: #050505;
  overflow: hidden;
  padding: 120px 0;
}

/* ── Floating geometric shapes ── */
.cta-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-shape {
  position: absolute;
  opacity: 0.07;
}
.cta-shape--circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,73,48,0.4) 0%, transparent 70%);
  top: 10%;
  left: 5%;
  animation: cta-float 18s ease-in-out infinite;
}
.cta-shape--ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  top: 20%;
  right: 10%;
  animation: cta-float 22s ease-in-out infinite reverse;
}
.cta-shape--square {
  width: 120px;
  height: 120px;
  border: 1.5px solid rgba(255,255,255,0.35);
  bottom: 15%;
  left: 15%;
  animation: cta-rotate 30s linear infinite;
}
.cta-shape--triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(255,255,255,0.04);
  top: 30%;
  left: 45%;
  animation: cta-float 20s ease-in-out infinite 3s;
}
.cta-shape--dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(251,73,48,0.35);
}
.cta-shape--dot1 { top: 15%; left: 35%; animation: cta-pulse 4s ease-in-out infinite; }
.cta-shape--dot2 { top: 65%; right: 25%; animation: cta-pulse 4s ease-in-out infinite 1.3s; }
.cta-shape--dot3 { bottom: 20%; left: 55%; animation: cta-pulse 4s ease-in-out infinite 2.6s; }
.cta-shape--cross {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 15%;
  animation: cta-rotate 24s linear infinite reverse;
}
.cta-shape--cross::before,
.cta-shape--cross::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.15);
}
.cta-shape--cross::before {
  width: 100%;
  height: 1.5px;
  top: 50%;
  transform: translateY(-50%);
}
.cta-shape--cross::after {
  width: 1.5px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.cta-shape--diamond {
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(251,73,48,0.15);
  bottom: 25%;
  right: 30%;
  transform: rotate(45deg);
  animation: cta-float 16s ease-in-out infinite 5s;
}

@keyframes cta-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-25px) translateX(15px); }
  66% { transform: translateY(15px) translateX(-10px); }
}
@keyframes cta-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes cta-pulse {
  0%, 100% { opacity: 0.07; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.8); }
}

/* ── Marquee text rows ── */
.cta-marquee-rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-row {
  overflow: hidden;
  white-space: nowrap;
}
.cta-row-inner {
  display: inline-flex;
  gap: 0;
  will-change: transform;
}
.cta-row--left .cta-row-inner {
  animation: marquee-left 25s linear infinite;
}
.cta-row--right .cta-row-inner {
  animation: marquee-right 25s linear infinite;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.cta-text {
  font-family: 'DM Sans', var(--f-sans);
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  padding: 0 24px;
  white-space: nowrap;
  user-select: none;
}
.cta-text--fill {
  color: #fff;
}
.cta-text--stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.35);
}

/* ============================================================
   FOOTER — dark cinematic (inspired by kiwivideo.ai)
   ============================================================ */
.footer {
  position: relative;
  border-top: none;
  padding: 0;
  background: linear-gradient(180deg, #000 75%, #1f1f1f 100%);
  color: #fff;
  overflow: hidden;
}

/* ── Decorative vertical lines ── */
.footer-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20%;
  pointer-events: none;
}
.footer-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.07) 34%, rgba(255,255,255,0.02) 100%);
}

/* ── Container ── */
.footer-container {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--pad) 48px;
}

/* ── Three columns ── */
.footer-3col {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Left column */
.footer-col-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
.footer-location svg {
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* Center column */
.footer-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-logo {
  font-family: "Cinzel Decorative", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  display: block;
}
.footer-slogan {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 380px;
}

/* Right column */
.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.footer-follow {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer-dot {
  color: #fb4930;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer-social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── Footer logo glow animation ── */
.footer-logo-anim {
  animation: footer-glow 4s ease-in-out infinite;
}
@keyframes footer-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 30px rgba(251,73,48,0.15), 0 0 60px rgba(251,73,48,0.05); }
}

/* ── Animated lines shimmer ── */
.footer-line {
  animation: line-shimmer 6s ease-in-out infinite;
}
.footer-line:nth-child(2) { animation-delay: 2s; }
.footer-line:nth-child(3) { animation-delay: 4s; }
@keyframes line-shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Social btn hover pulse ── */
.footer-social-btn:hover {
  animation: social-pop 0.35s ease-out;
}
@keyframes social-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ── Copyright ── */
.footer-copyright {
  padding-top: 32px;
  text-align: center;
}
.footer-copyright p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ============================================================
   FP-INDICATOR — 水墨笔触风格
   ============================================================ */
.fp-indicator {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  padding: 8px 0;
}

.fp-dot-wrapper {
  position: relative;
  width: 20px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* 笔触之间的细墨线 */
.fp-dot-wrapper::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(50% + 12px);
  width: 0.5px;
  height: 7px;
    background: rgba(247,244,239,0.10);
  pointer-events: none;
}
.fp-dot-wrapper:last-of-type::after { content: none; }

/* 竖向墨迹笔触 */
.fp-dot {
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: rgba(247,244,239,0.22);
  border: none;
  box-shadow: none;
  cursor: pointer;
  opacity: 1;
  filter: blur(0.3px);
  transition:
    height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    width  0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    filter 0.3s ease;
}
.fp-dot:hover {
  height: 15px;
  background: rgba(247,244,239,0.50);
  filter: blur(0);
}
/* 当前页 — 浓墨重彩 */
.fp-dot.active {
  width: 3px;
  height: 26px;
  background: rgba(247,244,239,0.88);
  filter: blur(0);
  box-shadow: 0 0 6px rgba(247,244,239,0.08);
}

/* 隐藏液态水滴与箭头，保留笔触本身的静态美 */
.fp-droplet { display: none; }
.fp-arrow   { display: none; }

/* 悬浮标签 */
.fp-dot-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.70);
  transition: opacity 0.2s, transform 0.2s;
}
.fp-dot-wrapper:hover .fp-dot-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-card--featured {
    flex-direction: column;
    min-height: auto;
  }
  .product-card--featured .product-visual {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .research-caps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .research-cap:nth-child(2) { border-right: none; }
  .research-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .research-item:nth-child(even) { direction: ltr; }
  .research-visual { min-height: 280px; }
}

@media (max-width: 809px) {
  .fp-indicator { display: none; }
  .hero-center-text { display: none; }

  /* Mobile hero: shorter scroll zone, keep fixed for shrink animation */
  .hero.hero-zone { height: 200vh; min-height: auto; }
  .hero-sticky-wrap { position: relative; height: 100vh; }
  .hero.hero-zone .hero-vid { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 50; pointer-events: none; }
  .hero.hero-zone .hero-content { position: fixed; z-index: 51; }

  .hero-content {
    bottom: 40px;
    left: 24px;
    right: 24px;
    max-width: none;
  }
  .hero-sub { max-width: none; }

  .mission { padding: 72px 24px; }
  .mission-text { font-size: clamp(20px, 5vw, 26px); }

  .creator-strip { padding: 36px 0; }
  .creator-name { font-size: 17px; }

  .products-header { padding: 0; margin-top: 72px; }
  .products-header .section-title { font-size: clamp(24px, 6vw, 34px); }
  .products-scroll {
    height: 240vh;
  }
  .products-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0 20px;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }
  .products-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }
  .products-phone {
    display: flex;
    justify-content: center;
  }
  .products-phone .iphone-device {
    width: 180px;
    border-radius: 28px;
  }
  .products-phone .iphone-screen {
    border-radius: 28px;
  }
  .products-phone .phone-feed {
    border-radius: 28px;
  }
  .products-phone .iphone-notch {
    width: 50px;
    height: 16px;
    top: 6px;
    border-radius: 8px;
  }
  .products-phone .iphone-screen {
    border-radius: 28px;
  }
  .products-phone .iphone-home-bar {
    width: 50px;
    height: 3px;
    bottom: 6px;
  }
  .products-phone .tiktok-overlay { display: none; }

  /* Mobile: video area on top, text crossfade below */
  .products-text {
    display: grid;
  }
  .products-feature {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: relative;
    padding: 0;
    background: transparent;
    border-left: none;
    overflow: visible;
    border-radius: 0;
    gap: 12px;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 0.68, 0, 1);
  }
  .products-feature.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .products-feature-vid {
    display: none;
  }
  .products-feature .product-tag,
  .products-feature .product-name,
  .products-feature .product-desc,
  .products-feature .product-link {
    padding-left: 0;
    padding-right: 0;
  }
  .products-feature .product-tag {
    margin-top: 0;
  }
  .products-feature .product-link {
    padding-bottom: 0;
  }
  /* Override light-theme text colors for dark section on mobile */
  .products-feature .product-tag {
    color: var(--muted-light);
    background: rgba(10,10,10,0.05);
    border-color: rgba(10,10,10,0.10);
  }
  .products-feature .product-name {
    color: var(--fg-light);
  }
  .products-feature .product-desc {
    color: var(--muted-light);
  }
  .products-feature .product-link {
    color: var(--dim-light);
  }
  .products-progress {
    display: flex;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }
  .products-scroll-hint { display: none; }

  .research-inner { padding: 0 20px; }
  .section-head { margin-bottom: 40px; }
  .section-subtitle { font-size: 14px; max-width: 100%; }
  .research-caps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding: 32px 0;
  }
  .research-cap { padding: 0; border-right: none; }
  .research-cap-num { font-size: 28px; }

  .iphone-enter { height: auto; }
  .iphone-enter-sticky { position: relative; height: auto; padding: 60px 20px; }

  .research { padding: 72px 0; margin-top: 0; }
  .research-list { gap: 2px; margin-top: 32px; }
  .research-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .research-item:nth-child(even) { direction: ltr; }
  .research-visual { min-height: 220px; }
  .research-visual video { width: 100%; height: 100%; object-fit: cover; }
  .research-info { padding: 36px 24px; }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    gap: 40px;
  }
  .stat-item { padding: 0; border-right: none; }
  .stats { padding: 60px 0; }

  #contact-form { flex-direction: column; }
  .drag-card { transform: translate(calc(-50% + var(--ox) * 0.45), calc(-50% + var(--oy) * 0.45)) scale(0.6); }
  .drag-title { text-shadow: 0 4px 30px rgba(0,0,0,0.7); }
  .drag-sub { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 60px 20px 40px;
    gap: 32px;
  }
  .footer-wordmark { height: 10vw; padding-top: 2vw; }
}

@media (prefers-reduced-motion: reduce) {
  .creator-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
