/* Quantum Cinema: hero ("THE QUANTUM MOMENT") and the journey/final call to action (light theme; colours come from the --cin-* tokens).
   Owned by agent HERO. Everything is scoped under .landing-pro.lp-cinema with the prefixes
   chero- (hero demo) and cjny- (journey). Transform/opacity/SVG only; reduced motion = final frame. */

/* ============================================================== hero layout */

.landing-pro.lp-cinema .lp-hero { padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); }
.landing-pro.lp-cinema .lp-h1 { font-size: clamp(2.35rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 680; }
.landing-pro.lp-cinema .lp-w.is-brand {
  background: linear-gradient(100deg, var(--brand) 0%, var(--cin-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.landing-pro.lp-cinema .lp-pill { background: var(--cin-panel); color: var(--cin-gold); border: 1px solid var(--line); font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; }
.landing-pro.lp-cinema .lp-sub { color: var(--ink-2); max-width: 54ch; }

/* two columns on wide screens: copy left, the living circuit right */
@media (min-width: 1000px) {
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); gap: clamp(32px, 4vw, 72px); align-items: center; justify-items: stretch;
  }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-hero-copy { justify-items: start; text-align: left; gap: 26px; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-h1 { margin: 0; max-width: 15ch; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-hero-stats,
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-cta-row { justify-content: flex-start; }
  .landing-pro.lp-cinema .lp-hero-demo.is-cinema { max-width: 660px; justify-self: end; min-height: 540px; }
}
/* stacked: the demo comes right after the CTAs (stats move below it) so the concept is on the first screen */
@media (max-width: 999px) {
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) { gap: 20px; justify-items: center; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) > .lp-hero-copy { display: contents; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-pill { order: 0; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-h1 { order: 1; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-sub { order: 2; text-align: center; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-cta-row { order: 3; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-hero-demo { order: 4; }
  .landing-pro.lp-cinema .lp-hero-in:has(> .lp-hero-demo.is-cinema) .lp-hero-stats { order: 5; margin-top: 4px; }
  .landing-pro.lp-cinema .lp-hero-demo.is-cinema { max-width: 640px; min-height: 0; }
}
@media (max-width: 720px) {
  .landing-pro.lp-cinema .lp-hero { padding: 24px 0 48px; }
  .landing-pro.lp-cinema .lp-hero .lp-pill { display: none; }
  .landing-pro.lp-cinema .lp-hero .lp-cta-row .lp-btn { flex: 1 1 150px; padding: 0 12px; font-size: 15px; height: 46px; }
  .landing-pro.lp-cinema .lp-h1 { font-size: clamp(2.05rem, 9.2vw, 2.5rem); }
  .landing-pro.lp-cinema .lp-sub { font-size: 15.5px; line-height: 1.5; }
  .landing-pro.lp-cinema .lp-hero .lp-cta-row { gap: 10px; margin-top: 0; }
  .landing-pro.lp-cinema .lp-hero .lp-btn-lg { height: 48px; }
}

/* ===================================================== CTA light + magnetic */
.landing-pro.lp-cinema .lp-hero .lp-btn {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate; will-change: transform;
  transition: transform 180ms var(--cin-ease), background var(--cin-t-micro) var(--cin-ease), border-color var(--cin-t-micro) var(--cin-ease), box-shadow var(--cin-t-comp) var(--cin-ease);
}
.landing-pro.lp-cinema .lp-hero .lp-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity var(--cin-t-comp) var(--cin-ease);
  background: radial-gradient(140px 90px at var(--mx) var(--my), rgba(255, 255, 255, 0.24), transparent 70%);
}
.landing-pro.lp-cinema .lp-hero .lp-btn:hover::after { opacity: 1; }
.landing-pro.lp-cinema .lp-hero .lp-btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px var(--cin-glow); }
.landing-pro.lp-cinema .lp-hero .lp-btn-primary:hover { background: var(--brand-600); }
.landing-pro.lp-cinema .lp-hero .lp-btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.landing-pro.lp-cinema .lp-hero .lp-btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); background: var(--cin-veil); }

/* ======================================================== the hero instrument */
.landing-pro.lp-cinema .chero[hidden], .landing-pro.lp-cinema .chero [hidden] { display: none !important; }
.landing-pro.lp-cinema .lp-hero-demo.is-cinema { display: block; }
.chero { display: grid; gap: 14px; padding: clamp(14px, 2vw, 22px); overflow: hidden; }
.chero-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chero-kick { margin: 0 !important; }
.chero-scene { font: 500 12px/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--ink-2); text-align: right; }
.chero-main { display: grid; gap: 12px; }

/* label strip: |0> / H SUPERPOSITION / ... / MEASURE / RESULT */
.chero-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 6px; min-height: 28px; align-content: flex-start; }
.chero-step {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: transparent;
  font: 600 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color var(--cin-t-comp) var(--cin-ease), border-color var(--cin-t-comp) var(--cin-ease), background var(--cin-t-comp) var(--cin-ease);
}
.chero-step-g { color: var(--ink-2); font-weight: 700; padding-right: 6px; border-right: 1px solid var(--line-2); }
.chero-step.is-done { color: var(--ink-2); }
.chero-step.is-on { color: var(--ink); border-color: var(--brand); background: var(--brand-50); }
.chero-step.is-on .chero-step-g { color: var(--cin-gold); }

/* the stage: an SVG that leans a few degrees toward the pointer (transform only) */
.chero-stage { position: relative; aspect-ratio: var(--ar, 600 / 326); border-radius: 12px; background: var(--cin-panel-2); border: 1px solid var(--line); perspective: 900px; overflow: hidden; }
.chero-svg { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; transform: rotateX(calc(var(--ly, 0) * -2.2deg)) rotateY(calc(var(--lx, 0) * 2.8deg)); transition: transform 240ms var(--cin-ease); }
.chero-gbox { fill: var(--cin-panel); stroke: var(--cin-stroke); stroke-width: 1.5; transition: fill var(--cin-t-comp) var(--cin-ease), stroke var(--cin-t-comp) var(--cin-ease); }
.chero-gtxt { fill: var(--ink-2); transition: fill var(--cin-t-comp) var(--cin-ease); }
.chero-gline { stroke: var(--cin-stroke); }
.chero-gdot { fill: var(--cin-stroke); }
.chero-gtgt { fill: var(--cin-panel); stroke: var(--cin-stroke); }
.chero-gate.is-done .chero-gbox { stroke: var(--cin-blue-soft); fill: var(--brand-50); }
.chero-gate.is-done .chero-gtxt { fill: var(--ink); }
.chero-gate.is-done .chero-gline, .chero-gate.is-done .chero-gtgt { stroke: var(--cin-blue-soft); }
.chero-gate.is-done .chero-gdot { fill: var(--cin-blue-soft); }
.chero-gate.is-on .chero-gbox { fill: var(--brand); stroke: var(--brand); }
.chero-gate.is-on .chero-gtxt { fill: #fff; }
.chero-gate.is-on .chero-gline, .chero-gate.is-on .chero-gtgt { stroke: var(--brand); }
.chero-gate.is-on .chero-gdot { fill: var(--brand); }

.chero-cap { margin: 0; min-height: 3.1em; font: 500 13px/1.55 "JetBrains Mono", ui-monospace, monospace; color: var(--ink); text-wrap: pretty; }
.chero-legend { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.chero-fine { margin: 0; font: 500 11.5px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); letter-spacing: 0.01em; }
.chero-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* controls: a small palette of real gates */
.chero-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chero-ctl-l { flex: 0 0 auto; }
.chero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chero-chip {
  min-width: 44px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--cin-panel);
  color: var(--ink); font: 700 13px/1 "JetBrains Mono", ui-monospace, monospace; cursor: pointer;
  transition: border-color var(--cin-t-micro) var(--cin-ease), background var(--cin-t-micro) var(--cin-ease), transform var(--cin-t-micro) var(--cin-ease);
}
.chero-chip:hover { border-color: var(--brand); background: var(--brand-50); }
.chero-chip:active { transform: translateY(1px); }
.chero-chip-quiet { font-weight: 500; color: var(--ink-2); }
.chero-chip:focus-visible, .chero-link:focus-visible { outline: 2px solid var(--cin-gold); outline-offset: 3px; border-radius: 10px; }
.chero-link { margin-left: auto; padding: 8px 2px; border: 0; background: none; color: var(--brand); font: 600 13.5px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.chero-link:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 4px; }
.chero-legacy { display: grid; gap: 10px; }
.chero-legacy .chero-back { margin: 0; justify-self: start; }
.chero-legacy .lp-hero-live { width: 100%; }

@media (max-width: 520px) {
  .chero { padding: 12px; gap: 10px; }
  .chero-head { align-items: baseline; }
  .chero-scene { font-size: 11px; }
  .chero-strip { gap: 5px; }
  .chero-step { padding: 5px 8px; font-size: 10px; letter-spacing: 0.07em; }
  .chero-cap { font-size: 12.5px; min-height: 4.7em; }
  .chero-legend { display: none; }
  .chero-link { margin-left: 0; }
  .chero-ctl { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .chero-svg { transform: none !important; transition: none !important; }
}

/* ============================================================ the journey / final CTA */
/* Same scaffold as the other sections: kicker + H2 + lede, then a white panel with the map, then the CTA. */
.cjny-panel { padding: clamp(10px, 2vw, 20px); overflow: hidden; }
.cjny-scene { position: relative; width: 100%; aspect-ratio: var(--ar, 1200 / 560); overflow: hidden; margin: 0 auto; border-radius: 12px; background: var(--cin-panel-2); }
.cjny-scene[data-mode="tall"] { max-width: 460px; }
.cjny-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.cjny-far, .cjny-mid, .cjny-near, .cjny-subject { will-change: transform; }

.cjny-path-base { stroke: var(--cin-stroke); stroke-dasharray: 1 7; }
.cjny-path-lit { transition: stroke-dashoffset 700ms var(--cin-ease); }
.cjny-ray { stroke: var(--cin-stroke-2); transition: stroke var(--cin-t-sect) var(--cin-ease); }
.cjny-ray.is-lit { stroke: var(--cin-blue-soft); opacity: 0.55; }

.cjny-st-glow { opacity: 0; transition: opacity var(--cin-t-sect) var(--cin-ease); }
.cjny-st-ring { fill: var(--cin-panel); stroke: var(--cin-stroke); transition: stroke var(--cin-t-sect) var(--cin-ease); }
.cjny-st-disc { fill: var(--cin-panel); }
.cjny-st-glyph { stroke: var(--muted); transition: stroke var(--cin-t-sect) var(--cin-ease); }
.cjny-lab-n { fill: var(--muted); transition: fill var(--cin-t-sect) var(--cin-ease); }
.cjny-lab-t { fill: var(--muted); transition: fill var(--cin-t-sect) var(--cin-ease); }
.cjny-lab-s { fill: var(--muted); }
.cjny-st.is-lit .cjny-st-glow { opacity: 1; }
.cjny-st.is-lit .cjny-st-ring { stroke: var(--brand); }
.cjny-st.is-lit .cjny-st-glyph { stroke: var(--brand); }
.cjny-st.is-lit .cjny-lab-t { fill: var(--ink); }
.cjny-st.is-lit .cjny-lab-s { fill: var(--ink-2); }
.cjny-st.is-lit .cjny-lab-n { fill: var(--cin-gold); }
.cjny-st.is-final.is-lit .cjny-st-ring { stroke: var(--cin-gold); }
.cjny-end { fill: var(--brand); }
.cjny-end-glow { opacity: 0.7; }

/* everything has arrived: energy flows down the rays into the button (only while on screen) */
.cjny.is-visible.is-all-lit .cjny-ray.is-lit { stroke-dasharray: 3 11; animation: cjny-flow 3.4s linear infinite; }
@keyframes cjny-flow { to { stroke-dashoffset: -28; } }

.cjny-cta { position: relative; display: grid; justify-items: center; gap: 14px; padding-top: 34px; text-align: center; }
.cjny-cta::before { content: ''; position: absolute; left: 50%; top: -6px; width: 2px; height: 36px; transform: translateX(-50%); background: linear-gradient(to bottom, var(--cin-blue-soft), transparent); pointer-events: none; }
.cjny-cta-main { position: relative; display: inline-flex; }
.cjny-cta-btn { min-height: 54px; padding: 0 34px; font-size: 16.5px; }
.cjny-cta-2 { min-height: 44px; padding: 0 20px; font-size: 14.5px; color: var(--ink-2); }
.cjny.is-visible.is-all-lit .cjny-cta-main::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px; border: 1.5px solid var(--cin-blue-soft); pointer-events: none;
  animation: cjny-ring 3s cubic-bezier(.2, .6, .3, 1) infinite;
}
@keyframes cjny-ring { 0% { transform: scale(1, 1); opacity: 0.6; } 70%, 100% { transform: scale(1.22, 1.6); opacity: 0; } }
.cjny-fine { margin: 0; font: 500 12px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); }
.cjny-note { margin: 0; max-width: 62ch; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cjny-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; list-style: none; }

@media (max-width: 720px) {
  @keyframes cjny-ring { 0% { transform: scale(1, 1); opacity: 0.6; } 70%, 100% { transform: scale(1.06, 1.4); opacity: 0; } }
  .cjny-cta { width: 100%; max-width: 420px; margin-inline: auto; }
  .cjny-cta-main, .cjny-cta-btn, .cjny-cta-2 { width: 100%; }
  .cjny-cta-main { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .cjny-far, .cjny-mid, .cjny-near, .cjny-subject { transform: none !important; }
  .cjny .cjny-ray, .cjny .cjny-cta-main::after { animation: none !important; }
  .cjny-path-lit { transition: none; }
}
