

.cinematic-hero {
  --ch-accent: #60a5fa;
  --ch-bg: #06080f;
  --ch-ios-blue: #0a84ff;
  --ch-ios-gray: #2c2c2e;
  --ch-fg: #f5f5f7;

  position: relative;
  background: var(--ch-bg);
  color: var(--ch-fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  isolation: isolate;
}
.ch-sticky { clip-path: inset(0); }
.cinematic-hero * { box-sizing: border-box; }
.cinematic-hero a { color: inherit; text-decoration: none; }


.ch-scroll-driver { position: relative; height: calc(100vh - var(--header-h, 60px)); }
.ch-sticky {
  position: relative;
  height: calc(100vh - var(--header-h, 60px));
  overflow: hidden;
}


@media (max-width: 900px) {
  .ch-scroll-driver { height: calc(700vh - var(--header-h, 60px)); }
  .ch-sticky { position: sticky; top: var(--header-h, 60px); height: calc(100vh - var(--header-h, 60px)); }
}


.ch-depth-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(96,165,250,0.06), transparent 60%), var(--ch-bg);
  z-index: 0;
  transition: background 0.4s ease;
}
.ch-particles { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0.5; }
.ch-particles .ch-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--ch-accent);
  animation: chFloat 6s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes chFloat {
  0%, 100% { transform: translate(0,0); opacity: 0.3; }
  50% { transform: translate(20px,-30px); opacity: 0.9; }
}
.ch-grain {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'%2F%3E%3C%2Ffilter%3E%3Crect width='200' height='200' filter='url(%23n)'%2F%3E%3C%2Fsvg%3E");
  background-size: 200px 200px;
}

/* Timeline */
.ch-timeline {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.ch-tl-step { min-width: 90px; }
.ch-tl-bar {
  display: block; height: 2px; width: 100%;
  background: rgba(255,255,255,0.12);
  overflow: hidden; border-radius: 2px;
  margin-bottom: 6px;
}
.ch-tl-bar i {
  display: block; height: 100%; width: 0;
  background: var(--ch-accent);
  transition: width .15s linear;
}
.ch-tl-label {
  display: block;
  opacity: 0.4;
  text-transform: uppercase;
  transition: opacity .3s, color .3s;
}
.ch-tl-step.active .ch-tl-label { opacity: 1; color: var(--ch-accent); }
.ch-tl-step.done .ch-tl-label { opacity: 0.7; }

/* Scenes */
.ch-scene {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s linear;
}
.ch-scene.is-visible { opacity: 1; pointer-events: auto; }

/* ─── Scene cosmos ────────────────────────────────────────── */
.ch-stars { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .12s linear; }
.ch-star { position: absolute; border-radius: 50%; background: #fff; }
.ch-cosmos-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.7) 90%);
  pointer-events: none;
}
.ch-hero-text {
  position: relative; z-index: 10;
  max-width: 900px; padding: 0 32px;
  text-align: center;
}
.ch-brand-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.ch-brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ch-accent);
  box-shadow: 0 0 12px var(--ch-accent);
}
.ch-hero-title {
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: 1.04; font-weight: 700; letter-spacing: -0.03em;
  margin: 0 0 18px; text-wrap: balance;
}
.ch-hero-em { font-style: italic; font-weight: 500; color: var(--ch-accent); }
.ch-hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.6);
  margin: 0 0 60px; letter-spacing: 0.01em;
}
.ch-scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em; color: rgba(255,255,255,0.7);
}
.ch-scroll-hint-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--ch-accent), transparent);
  animation: chDrop 1.6s ease-in-out infinite;
}
@keyframes chDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.ch-cosmos-phone {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  transform: translate(-50%, -50%) scale(0.05);
  opacity: 0;
  transition: transform .12s linear, opacity .25s;
}
.ch-mini-phone {
  position: relative; width: 200px; height: 410px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1a1d2a, #06080f);
  box-shadow: 0 30px 100px rgba(0,0,0,0.6),
              0 0 0 1.5px rgba(255,255,255,0.08),
              inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
.ch-mini-phone-frame { position: absolute; inset: 6px; border-radius: 32px; background: #000; }
.ch-mini-phone-screen { position: absolute; inset: 12px; border-radius: 26px; background: linear-gradient(180deg, #001b13, #000); }
.ch-mini-phone-light {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(40% 30% at 50% 35%, rgba(96,165,250,0.47), transparent 70%);
}

/* ─── Phone (full) ────────────────────────────────────────── */
.ch-phone-wrap {
  position: relative;
  width: 360px; height: 740px;
  transform-origin: center;
}
.ch-phone-glow {
  position: absolute; inset: -120px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(96,165,250,0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}
.ch-phone {
  position: relative; width: 100%; height: 100%;
  border-radius: 56px;
  background: linear-gradient(160deg, #2a2d3a 0%, #0a0c14 60%, #1a1d2a 100%);
  box-shadow: 0 50px 120px rgba(0,0,0,0.7),
              0 0 0 2px rgba(255,255,255,0.08),
              inset 0 0 0 1px rgba(255,255,255,0.06);
  padding: 7px;
}
.ch-phone-frame { width: 100%; height: 100%; border-radius: 50px; background: #000; padding: 6px; }
.ch-phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 44px; background: #0a0a0c;
  overflow: hidden; display: flex; flex-direction: column;
}
.ch-ios-statusbar {
  position: relative; height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  font-size: 14px; font-weight: 600;
  font-feature-settings: 'tnum';
  flex-shrink: 0;
}
.ch-ios-time { z-index: 2; }
.ch-ios-icons { display: flex; align-items: center; gap: 5px; color: var(--ch-fg); z-index: 2; }
.ch-ios-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; background: #000; border-radius: 18px;
}
.ch-ios-navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 14px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  background: rgba(20,20,22,0.6);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}
.ch-ios-back { color: var(--ch-ios-blue); font-size: 26px; line-height: 1; width: 30px; }
.ch-ios-info { color: var(--ch-ios-blue); font-size: 18px; width: 30px; text-align: right; }
.ch-ios-contact { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ch-ios-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #6b6b6b, #2c2c2e);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.ch-ios-contact-name { font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.02em; }
.ch-ios-thread {
  flex: 1; padding: 12px 12px 16px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, #0a0a0c, #07070a);
}
.ch-bubble-row {
  display: flex; flex-direction: column;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.ch-bubble-row.is-visible { opacity: 1; transform: translateY(0); }
.ch-bubble-row.me { align-items: flex-end; }
.ch-bubble-row.them { align-items: flex-start; }
.ch-bubble {
  max-width: 78%;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 14.5px; line-height: 1.32; letter-spacing: -0.01em;
  position: relative;
  cursor: none;
}
.ch-bubble.me {
  background: var(--ch-ios-blue); color: #fff;
  border-bottom-right-radius: 6px;
}
.ch-bubble.them {
  background: var(--ch-ios-gray); color: #fff;
  border-bottom-left-radius: 6px;
}
.ch-bubble[data-magnify] {
  --mx: 50%; --my: 50%;
  isolation: isolate;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.ch-bubble[data-magnify].is-magnified {
  transform: scale(1.04);
  background: #3a1a22;
  box-shadow: 0 0 0 1px rgba(255,77,109,0.5), 0 12px 30px rgba(255,77,109,0.3);
}
.ch-bubble[data-magnify].is-magnified::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120px 120px at var(--mx) var(--my), rgba(255,77,109,0.4), transparent 60%);
  pointer-events: none; z-index: -1;
}
.ch-alert-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255,77,109,0.18); color: #ff8da0;
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 2px;
  opacity: 0; transition: opacity .25s;
}
.ch-bubble[data-magnify].is-magnified .ch-alert-tag { opacity: 1; }
.ch-bubble-time {
  font-size: 9.5px; color: rgba(255,255,255,0.4);
  margin: 2px 6px; font-feature-settings: 'tnum';
}
.ch-typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  padding: 12px 16px; background: var(--ch-ios-gray);
  border-radius: 20px 20px 20px 6px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity .3s;
}
.ch-typing.is-visible { opacity: 1; }
.ch-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: chBlink 1.2s infinite ease-in-out;
}
.ch-typing span:nth-child(2) { animation-delay: .15s; }
.ch-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chBlink {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ─── Dolly scene ─────────────────────────────────────────── */
.ch-dolly-phone {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  transform: translate(-50%, -50%) scale(0.55);
  transition: transform .12s linear;
}
.ch-dolly-rays {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 2;
  opacity: 0;
  transition: opacity .2s;
}
.ch-dolly-rays .ch-ray {
  position: absolute;
  width: 1px; height: 50vmax;
  transform-origin: 50% 100%;
  background: linear-gradient(to bottom, transparent, rgba(96,165,250,0.2), transparent);
}
.ch-caption-bottom {
  position: absolute; left: 32px; bottom: 80px;
  display: flex; flex-direction: column;
  font-family: 'JetBrains Mono', monospace;
  z-index: 10;
}
.ch-caption-kicker {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 6px; color: var(--ch-accent);
}
.ch-caption-text { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ─── Thread + Magnify scenes ─────────────────────────────── */
.ch-thread-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 100px 8vw 80px;
  z-index: 6;
}
.ch-thread-side { display: flex; flex-direction: column; gap: 28px; max-width: 520px; }
.ch-chapter-title {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1; font-weight: 600; letter-spacing: -0.02em;
  margin: 0; text-wrap: balance;
}
.ch-chapter-title .ch-w {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  transition: opacity .25s, filter .25s, transform .25s;
}
.ch-metric-row { display: flex; gap: 32px; flex-wrap: wrap; }
.ch-metric { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.ch-metric-value {
  font-size: 38px; font-weight: 700; letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
  color: var(--ch-accent);
}
.ch-metric-label {
  font-size: 12px; color: rgba(255,255,255,0.55);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em; line-height: 1.4;
}
.ch-thread-phone { display: flex; justify-content: center; align-items: center; }
.ch-thread-phone .ch-phone-wrap { transform: scale(0.85); }
.ch-signal-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.ch-signal-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: rgba(255,255,255,0.78);
}
.ch-signal-list .ch-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ch-accent);
  box-shadow: 0 0 10px var(--ch-accent);
}

/* ─── Outro ───────────────────────────────────────────────── */
.ch-scene-outro { flex-direction: column; text-align: center; padding: 0 32px; }
.ch-outro-pulse {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 40% at 50% 50%, rgba(96,165,250,0.2), transparent 70%);
  animation: chBreathe 4s ease-in-out infinite;
}
@keyframes chBreathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.ch-outro-content {
  position: relative; z-index: 10;
  max-width: 860px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.ch-outro-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; font-weight: 600; letter-spacing: -0.02em;
  margin: 0; text-wrap: balance;
}
.ch-cta-row {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
}
.ch-cta-row.is-visible { opacity: 1; transform: translateY(0); }
.ch-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  cursor: none; border: none;
  font-family: inherit;
  transition: transform .15s, box-shadow .2s;
}
.ch-cta-primary {
  background: var(--ch-accent); color: #fff;
  box-shadow: 0 10px 40px rgba(96,165,250,0.3);
}
.ch-cta-primary:hover { transform: translateY(-2px); }
.ch-cta-ghost {
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.ch-cta-arrow { font-size: 18px; }
.ch-hotline {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.ch-hotline-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ch-accent);
  box-shadow: 0 0 10px var(--ch-accent);
}
.ch-outro-foot {
  display: flex; gap: 14px; align-items: center;
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.ch-dot-sep { opacity: 0.4; }

/* ─── Custom magnifier cursor ─────────────────────────────── */
.ch-cursor {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  pointer-events: none;
  mix-blend-mode: difference;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  will-change: transform, width, height;
  transition: width .25s cubic-bezier(.2,.7,.2,1), height .25s cubic-bezier(.2,.7,.2,1),
              background .2s, border-color .2s;
  opacity: 0;
}
.ch-cursor.is-active { opacity: 1; }
.ch-cursor.is-magnify {
  width: 120px; height: 120px;
  border: 2px solid var(--ch-accent);
  background: transparent;
  backdrop-filter: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6),
              0 0 40px rgba(96,165,250,0.33),
              inset 0 0 30px rgba(96,165,250,0.13);
  mix-blend-mode: normal;
}
.ch-cursor-cross,
.ch-cursor-label { display: none; }
.ch-cursor.is-magnify .ch-cursor-cross,
.ch-cursor.is-magnify .ch-cursor-label { display: block; }
.ch-cursor-cross { position: absolute; width: 18px; height: 18px; }
.ch-cursor-cross::before, .ch-cursor-cross::after {
  content: ''; position: absolute; background: var(--ch-accent);
}
.ch-cursor-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.ch-cursor-cross::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.ch-cursor-label {
  position: absolute; bottom: -22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.3em; white-space: nowrap;
  color: var(--ch-accent);
}

/* Restore native cursor on the rest of the page */
body:not(.ch-active) { cursor: auto; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .cinematic-hero { display: none; }
  .ch-mobile-hero { display: flex; }
}

@media (min-width: 901px) {
  .ch-mobile-hero { display: none; }
}

/* ─── Hero statique mobile ────────────────────────────────── */
.ch-mobile-hero {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h, 60px));
  padding: 48px 24px;
  background: #06080f;
  color: #f5f5f7;
  text-align: center;
}
.ch-mobile-hero__inner { max-width: 480px; }
.ch-mobile-hero__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 16px;
}
.ch-mobile-hero__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
.ch-mobile-hero__sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245,245,247,.65);
  margin: 0 0 32px;
}
.ch-mobile-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.ch-mobile-hero__cta .btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  width: 100%;
  max-width: 280px;
}
