/* ═══════════════════════════════════════════════════════════════════
   SHADOW COMPANION — CINEMATIC LANDING
   "The AI That Grows With You"

   Public landing page only (body[data-page="landing"]). Loaded after
   style.css, which still supplies the shared base (reset, fonts, Google
   button, Google Play badge, footer). Everything here is namespaced
   .cine-* / .sc-* so no in-app view can be affected.

   Motion rules: transforms and opacity only, so every effect stays on the
   compositor. Hidden "before reveal" states exist only under html.cine-js
   (set inline in <head>), and prefers-reduced-motion turns the whole page
   into a calm, fully visible static composition.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --cine-navy-0: #04060f;
    --cine-navy-1: #070b1a;
    --cine-navy-2: #0a1024;
    --cine-navy-3: #121a3a;
    --cine-gold: #c9a227;
    --cine-gold-hi: #f0dd9a;
    --cine-gold-mid: #dbba4a;
    --cine-gold-lo: #8c6e1e;
    --cine-amber: #e9a94b;
    --cine-ivory: #f3efe4;
    --cine-ivory-dim: rgba(243, 239, 228, 0.76);
    --cine-ivory-faint: rgba(243, 239, 228, 0.56);
    --cine-celestial: #9db8ff;
    --cine-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --cine-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cine-ease: cubic-bezier(0.22, 0.61, 0.24, 1);
    --cine-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --cine-gutter: 22px;
    --cine-stage-h: max(100svh, 600px);
}

body[data-page="landing"] {
    background-color: var(--cine-navy-0);
    color: var(--cine-ivory);
}

.cine-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.cine-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.cine-skip {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--cine-gold-hi);
    color: var(--cine-navy-0);
    font: 600 0.85rem var(--cine-sans);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.25s var(--cine-ease);
}

.cine-skip:focus-visible {
    transform: none;
    outline: 2px solid var(--cine-ivory);
    outline-offset: 2px;
}

.cine {
    display: block;
    overflow-x: hidden;
    overflow-x: clip;
}

/* ── Header ────────────────────────────────────────────────────────── */

.cine-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: calc(60px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid transparent;
    transition: background-color 0.45s var(--cine-ease), border-color 0.45s var(--cine-ease);
}

.cine-bar.is-solid {
    background-color: rgba(4, 6, 15, 0.86);
    border-bottom-color: rgba(201, 162, 39, 0.14);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .cine-bar.is-solid {
        background-color: rgba(4, 6, 15, 0.7);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
        backdrop-filter: blur(14px) saturate(1.2);
    }
}

.cine-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    color: var(--cine-ivory);
    text-decoration: none;
}

.cine-mono {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    background:
        linear-gradient(#071426, #071426) padding-box,
        linear-gradient(180deg, var(--cine-gold-hi), var(--cine-gold) 48%, var(--cine-gold-lo)) border-box;
    color: var(--cine-gold-mid);
    font: 700 0.95rem/1 var(--cine-serif);
    letter-spacing: 0.06em;
    padding-left: 1px;
}

.cine-wordmark {
    font: 600 0.66rem/1 var(--cine-sans);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cine-bar-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(219, 186, 74, 0.45);
    color: var(--cine-gold-hi);
    font: 500 0.8rem/1 var(--cine-sans);
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s var(--cine-ease), border-color 0.3s var(--cine-ease), color 0.3s var(--cine-ease);
}

.cine-bar-link:hover {
    background-color: rgba(201, 162, 39, 0.12);
    border-color: rgba(240, 221, 154, 0.8);
}

.cine-bar-link:focus-visible,
.cine-brand:focus-visible {
    outline: 2px solid var(--cine-gold-hi);
    outline-offset: 3px;
    border-radius: 999px;
}

@media (max-width: 400px) {
    .cine-bar { gap: 8px; padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
    .cine-brand { gap: 9px; }
    .cine-wordmark { letter-spacing: 0.2em; font-size: 0.6rem; }
    .cine-bar-link { padding: 0 13px; font-size: 0.76rem; }
}

@media (max-width: 339px) {
    .cine-wordmark { display: none; }
}

/* ── Shared typography ─────────────────────────────────────────────── */

.cine-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--cine-gold-mid);
    font: 600 0.7rem/1.3 var(--cine-sans);
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.cine-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cine-gold));
}

.cine-h2 {
    margin: 0 0 22px;
    max-width: 15ch;
    color: var(--cine-ivory);
    font-family: var(--cine-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 9vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

.cine-body {
    margin: 0 0 26px;
    max-width: 34em;
    color: var(--cine-ivory-dim);
    font: 300 1.0625rem/1.75 var(--cine-sans);
}

.cine-wrap {
    position: relative;
    width: min(100% - 2 * var(--cine-gutter), 1180px);
    margin-inline: auto;
}

/* ── CTAs ──────────────────────────────────────────────────────────── */

/* The primary taster CTA keeps the existing .web-taster-cta hook (and its
   /app destination); this is purely its cinematic presentation. */
.cine .web-taster-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: min(100%, 272px);
    min-height: 58px;
    padding: 16px 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 238, 190, 0.6);
    background: linear-gradient(180deg, #f5e3a4 0%, #d9b44e 44%, #b38a2a 100%);
    color: #0a0d1c;
    font: 600 1rem/1.2 var(--cine-sans);
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 12px 32px rgba(201, 162, 39, 0.26),
        0 0 0 6px rgba(201, 162, 39, 0.08);
    transition:
        transform 0.3s var(--cine-ease),
        box-shadow 0.3s var(--cine-ease);
    -webkit-tap-highlight-color: transparent;
}

.cine .web-taster-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
    transform: translateX(-130%);
    transition: transform 0.95s var(--cine-ease);
}

.cine .web-taster-cta:hover {
    background: linear-gradient(180deg, #f8e9b4 0%, #dfbb55 44%, #b8902e 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 18px 40px rgba(201, 162, 39, 0.34),
        0 0 0 7px rgba(201, 162, 39, 0.12),
        0 0 60px rgba(233, 169, 75, 0.2);
}

.cine .web-taster-cta:hover::after {
    transform: translateX(130%);
}

.cine .web-taster-cta:active {
    transform: translateY(0) scale(0.985);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 6px 18px rgba(201, 162, 39, 0.24);
}

.cine .web-taster-cta:focus-visible,
.cine-cta:focus-visible,
.cine-arrow:focus-visible,
.cine-replay:focus-visible,
.cine-scroll:focus-visible {
    outline: 2px solid var(--cine-gold-hi);
    outline-offset: 4px;
}

.cine-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font: 500 0.95rem/1.2 var(--cine-sans);
    letter-spacing: 0.02em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.cine-cta--ghost {
    color: var(--cine-gold-hi);
    border: 1px solid rgba(219, 186, 74, 0.45);
    background: rgba(201, 162, 39, 0.05);
    transition: background-color 0.3s var(--cine-ease), border-color 0.3s var(--cine-ease), transform 0.3s var(--cine-ease);
}

.cine-cta--ghost svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--cine-ease);
}

.cine-cta--ghost:hover {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(240, 221, 154, 0.85);
}

.cine-cta--ghost:hover svg { transform: translateX(4px); }
.cine-cta--ghost:active { transform: scale(0.98); }

/* ── Celestial layers (stars, glows, motes) ────────────────────────── */

.cine-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 1px at 34px 52px, rgba(243, 239, 228, 0.85), transparent 100%),
        radial-gradient(circle 1px at 142px 18px, rgba(243, 239, 228, 0.5), transparent 100%),
        radial-gradient(circle 1px at 210px 128px, rgba(240, 221, 154, 0.6), transparent 100%),
        radial-gradient(circle 1px at 86px 190px, rgba(243, 239, 228, 0.65), transparent 100%),
        radial-gradient(circle 1px at 238px 214px, rgba(157, 184, 255, 0.55), transparent 100%),
        radial-gradient(circle 1.4px at 300px 96px, rgba(243, 239, 228, 0.9), transparent 100%),
        radial-gradient(circle 1.3px at 58px 296px, rgba(240, 221, 154, 0.6), transparent 100%),
        radial-gradient(circle 1.5px at 356px 340px, rgba(243, 239, 228, 0.75), transparent 100%);
    background-size:
        260px 260px, 260px 260px, 260px 260px, 260px 260px, 260px 260px,
        410px 410px, 410px 410px, 410px 410px;
}

.cine-stars::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1.2px at 120px 70px, rgba(255, 255, 255, 0.95), transparent 100%),
        radial-gradient(circle 1px at 260px 180px, rgba(240, 221, 154, 0.9), transparent 100%),
        radial-gradient(circle 1.1px at 40px 240px, rgba(214, 226, 255, 0.9), transparent 100%);
    background-size: 330px 330px;
    animation: cineTwinkle 5.5s ease-in-out infinite alternate;
}

.cine-stars--hero {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.8) 22%, transparent 44%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.8) 22%, transparent 44%);
}

.cine-stars--soft { opacity: 0.55; }

.cine-stars--deep {
    inset: -12% 0;
    opacity: 0.8;
}

.cine-glow {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

.cine-glow--talk {
    width: 130vw;
    max-width: 1100px;
    aspect-ratio: 1;
    left: 50%;
    top: 34%;
    margin-left: min(-65vw, -550px);
    background: radial-gradient(circle, rgba(201, 162, 39, 0.16) 0%, rgba(80, 98, 190, 0.08) 38%, transparent 66%);
}

.cine-glow--amber {
    width: 140vw;
    max-width: 1200px;
    aspect-ratio: 1;
    left: 50%;
    top: 30%;
    margin-left: min(-70vw, -600px);
    background: radial-gradient(circle, rgba(233, 169, 75, 0.2) 0%, rgba(201, 162, 39, 0.07) 36%, transparent 64%);
}

.cine-glow--gallery {
    width: 150vw;
    max-width: 1400px;
    aspect-ratio: 1.6;
    left: 50%;
    top: 30%;
    margin-left: min(-75vw, -700px);
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.13) 0%, rgba(60, 70, 160, 0.07) 40%, transparent 68%);
}

.cine-motes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.cine-motes i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cine-gold-hi);
    box-shadow: 0 0 8px 2px rgba(240, 221, 154, 0.45);
    opacity: 0;
    animation: cineMote 18s ease-in-out infinite;
}

.cine-motes i:nth-child(1)  { left: 8%;  top: 22%; animation-delay: -2s; }
.cine-motes i:nth-child(2)  { left: 22%; top: 64%; animation-delay: -7s; animation-duration: 22s; }
.cine-motes i:nth-child(3)  { left: 36%; top: 40%; animation-delay: -11s; width: 2px; height: 2px; }
.cine-motes i:nth-child(4)  { left: 52%; top: 78%; animation-delay: -4s; animation-duration: 24s; }
.cine-motes i:nth-child(5)  { left: 64%; top: 18%; animation-delay: -14s; }
.cine-motes i:nth-child(6)  { left: 76%; top: 52%; animation-delay: -9s; width: 2px; height: 2px; animation-duration: 20s; }
.cine-motes i:nth-child(7)  { left: 88%; top: 30%; animation-delay: -1s; animation-duration: 26s; }
.cine-motes i:nth-child(8)  { left: 92%; top: 72%; animation-delay: -16s; }
.cine-motes i:nth-child(9)  { left: 44%; top: 12%; animation-delay: -6s; width: 2px; height: 2px; animation-duration: 21s; }
.cine-motes i:nth-child(10) { left: 14%; top: 88%; animation-delay: -12s; animation-duration: 23s; }

/* ═══ 1 · CINEMATIC OPENING ═════════════════════════════════════════ */

.cine-hero {
    position: relative;
    isolation: isolate;
    background: var(--cine-navy-0);
}

.cine-hero-media {
    position: absolute;
    inset: 0 0 auto;
    height: var(--cine-stage-h);
    z-index: -1;
    overflow: hidden;
}

.cine-hero-haze {
    display: none;
}

.cine-hero-art {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.cine-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform-origin: 50% 58%;
    animation: cineHeroZoom 16s var(--cine-ease-out) both;
}

/* Sunrise bloom, anchored to the sun in the artwork. */
.cine-sun {
    position: absolute;
    left: 50%;
    top: 47%;
    width: 110vmin;
    height: 110vmin;
    margin: -55vmin 0 0 -55vmin;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 222, 150, 0.5) 0%, rgba(240, 180, 90, 0.2) 26%, rgba(201, 140, 50, 0.06) 46%, transparent 64%);
    mix-blend-mode: screen;
    animation:
        cineSunRise 4.2s var(--cine-ease) 0.3s both,
        cineSunBreathe 9s ease-in-out 4.5s infinite alternate;
}

.cine-mist {
    position: absolute;
    left: -40%;
    width: 180%;
    pointer-events: none;
    will-change: transform;
}

.cine-mist--a {
    top: 54%;
    height: 22%;
    background:
        radial-gradient(ellipse 22% 46% at 26% 55%, rgba(255, 238, 214, 0.17), transparent 72%),
        radial-gradient(ellipse 18% 40% at 62% 45%, rgba(255, 226, 190, 0.13), transparent 72%),
        radial-gradient(ellipse 24% 50% at 86% 60%, rgba(220, 230, 255, 0.1), transparent 72%);
    animation: cineMistA 46s ease-in-out infinite alternate;
}

.cine-mist--b {
    top: 63%;
    height: 20%;
    background:
        radial-gradient(ellipse 20% 46% at 14% 50%, rgba(220, 230, 255, 0.12), transparent 72%),
        radial-gradient(ellipse 26% 42% at 48% 56%, rgba(255, 238, 214, 0.14), transparent 72%),
        radial-gradient(ellipse 18% 40% at 78% 44%, rgba(255, 226, 190, 0.1), transparent 72%);
    animation: cineMistB 64s ease-in-out infinite alternate;
}

/* Midnight-navy sky above, warm sunrise through the middle, the rock
   dissolving into the page navy below. */
.cine-hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(4, 6, 15, 0.94) 0%,
        rgba(5, 8, 22, 0.86) 16%,
        rgba(6, 10, 28, 0.66) 30%,
        rgba(6, 10, 28, 0.34) 42%,
        rgba(6, 10, 28, 0.12) 47%,
        rgba(4, 6, 15, 0) 52%,
        rgba(4, 6, 15, 0) 66%,
        rgba(4, 6, 15, 0.5) 82%,
        var(--cine-navy-0) 100%);
}

/* Tablet portrait: the artwork is width-fitted, so more bright sky sits
   behind the words — carry the navy further down. */
@media (min-width: 600px) and (max-width: 959px) {
    .cine-hero-shade {
        background: linear-gradient(180deg,
            rgba(4, 6, 15, 0.95) 0%,
            rgba(5, 8, 22, 0.88) 20%,
            rgba(6, 10, 28, 0.74) 36%,
            rgba(6, 10, 28, 0.4) 48%,
            rgba(4, 6, 15, 0) 58%,
            rgba(4, 6, 15, 0) 68%,
            rgba(4, 6, 15, 0.5) 84%,
            var(--cine-navy-0) 100%);
    }
}

.cine-hero-frame {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    min-height: var(--cine-stage-h);
    padding:
        calc(92px + env(safe-area-inset-top))
        var(--cine-gutter)
        28px;
    text-align: center;
}

@media (max-width: 959px) {
    .cine-hero-frame::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(ellipse 95% 42% at 50% 53%, rgba(4, 6, 15, 0.7) 0%, rgba(4, 6, 15, 0.6) 50%, transparent 100%);
    }
}

.cine-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cine-hero-logo {
    --sc-logo: 112px;
    position: relative;
    display: block;
    width: var(--sc-logo);
    height: var(--sc-logo);
    margin: 0 auto 28px;
    flex-shrink: 0;
}

.cine-hero-logo img {
    position: absolute;
    width: calc(var(--sc-logo) * 1.812);
    height: calc(var(--sc-logo) * 1.812);
    max-width: none;
    left: calc(var(--sc-logo) * -0.411);
    top: calc(var(--sc-logo) * -0.392);
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 8px 16px rgba(12, 26, 61, 0.2)) drop-shadow(0 2px 4px rgba(12, 26, 61, 0.12));
}

.cine-hero-title {
    margin: 0 0 20px;
    max-width: 100%;
    color: #ffffff;
    font-family: var(--cine-serif);
    font-weight: 700;
    font-size: clamp(2.5rem, 8.8vw, 5.5rem);
    line-height: 1.06;
    letter-spacing: -0.018em;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(4, 6, 15, 0.65);
}

.cine-hero-title > .cine-line:last-child {
    color: var(--cine-gold);
}

.cine-line {
    display: block;
    overflow: hidden;
    padding: 0.04em 0.04em 0.1em;
    margin-bottom: -0.1em;
}

.cine-line > span {
    display: inline-block;
    animation: cineLineUp 1.25s var(--cine-ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
}

.cine-hero-lede {
    max-width: 44ch;
    margin: 0;
    color: #f5f5f7;
    font: 500 clamp(1.125rem, 2.4vw, 1.4rem)/1.5 var(--cine-sans);
    text-wrap: balance;
    text-shadow: 0 1px 14px rgba(4, 6, 15, 0.85);
}

.cine-load {
    animation: cineFadeUp 1.1s var(--cine-ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
}

.cine-load--rise {
    animation-name: cineRise;
    animation-duration: 0.9s;
}

.cine-hero-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.cine-hero .web-taster-cta {
    min-width: 0;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    border-color: rgba(219, 186, 74, 0.3);
    background: #0c1a3d;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(4, 6, 15, 0.25);
    transition: transform 0.3s var(--cine-ease), background-color 0.3s var(--cine-ease), border-color 0.3s var(--cine-ease), box-shadow 0.3s var(--cine-ease);
}

.cine-hero .web-taster-cta::after {
    display: none;
}

.cine-hero .web-taster-cta:hover {
    background: #142654;
    border-color: rgba(219, 186, 74, 0.55);
    box-shadow: 0 8px 22px rgba(4, 6, 15, 0.35);
}

.cine-hero .web-taster-cta:active {
    background: #0c1a3d;
    box-shadow: 0 3px 10px rgba(4, 6, 15, 0.25);
}

@media (min-width: 600px) {
    .cine-hero-logo { --sc-logo: 124px; }
}

@media (max-height: 700px) {
    .cine-hero-logo { --sc-logo: 92px; margin-bottom: 20px; }
    .cine-hero-title { font-size: clamp(2.5rem, 7vw, 4.5rem); }
}

@media (max-height: 600px) {
    .cine-hero-logo { --sc-logo: 72px; margin-bottom: 16px; }
    .cine-hero-frame { gap: 20px; }
}

@media (min-width: 600px) and (max-height: 700px) {
    .cine-hero-logo { --sc-logo: 92px; }
}

.cine-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cine-cta-note {
    margin: 0;
    color: var(--cine-ivory);
    font: 400 0.9rem/1.45 var(--cine-sans);
    letter-spacing: 0.01em;
    text-shadow: 0 1px 12px rgba(4, 6, 15, 0.95);
}

.cine-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    color: var(--cine-ivory-faint);
    font: 500 0.62rem/1 var(--cine-sans);
    letter-spacing: 0.36em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 12px;
}

.cine-scroll-line {
    position: relative;
    width: 1px;
    height: 42px;
    overflow: hidden;
    background: rgba(243, 239, 228, 0.18);
}

.cine-scroll-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 16px;
    background: linear-gradient(180deg, transparent, var(--cine-gold-hi));
    animation: cineScrollCue 2.6s var(--cine-ease) infinite;
}

.cine-scroll:hover { color: var(--cine-gold-hi); }

/* Existing entry points (Google Play listing + Google sign-in). */
.cine-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 6px var(--cine-gutter) 40px;
}

.cine-entry .play-store-badge {
    min-height: 56px;
    padding: 9px 28px;
}

.cine-entry .hero-cta-group {
    margin: 0;
    animation: none;
}

.cine-entry .google-signin-btn,
.cine-entry .hero-cta-group .google-signin-btn {
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 12px 28px;
    font-size: 0.92rem;
}

@media (min-width: 720px) {
    .cine-entry {
        flex-direction: row;
        justify-content: center;
        gap: 18px;
    }
}

@media (min-width: 960px) {
    :root { --cine-gutter: 40px; }

    .cine-hero-haze {
        display: block;
        position: absolute;
        inset: -6%;
        background:
            radial-gradient(ellipse 52% 42% at 66% 47%, rgba(240, 178, 92, 0.3) 0%, rgba(176, 108, 48, 0.12) 48%, transparent 74%),
            radial-gradient(ellipse 70% 30% at 70% 66%, rgba(214, 170, 120, 0.14), transparent 70%),
            radial-gradient(ellipse 60% 50% at 70% 8%, rgba(46, 60, 120, 0.4), transparent 70%);
    }

    .cine-hero-art {
        inset: auto;
        top: -6%;
        right: max(2vw, calc(50% - 700px));
        height: 112%;
        width: calc(var(--cine-stage-h) * 1.12 * 0.5628);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 36%, #000 84%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 36%, #000 84%, transparent 100%);
    }

    .cine-sun {
        width: 90vmin;
        height: 90vmin;
        margin: -45vmin 0 0 -45vmin;
    }

    .cine-hero-shade {
        background:
            linear-gradient(90deg,
                rgba(4, 6, 15, 0.95) 0%,
                rgba(4, 6, 15, 0.86) 32%,
                rgba(4, 6, 15, 0.38) 54%,
                rgba(4, 6, 15, 0.08) 72%,
                rgba(4, 6, 15, 0.3) 100%),
            linear-gradient(180deg,
                rgba(4, 6, 15, 0.7) 0%,
                rgba(4, 6, 15, 0) 34%,
                rgba(4, 6, 15, 0) 72%,
                var(--cine-navy-0) 100%);
    }

    .cine-stars--hero {
        -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 30%, transparent 58%);
        mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 30%, transparent 58%);
    }

    .cine-hero-frame {
        padding:
            calc(100px + env(safe-area-inset-top))
            var(--cine-gutter)
            32px;
    }
}

/* ═══ Sections (shared) ═════════════════════════════════════════════ */

.cine-section {
    position: relative;
    isolation: isolate;
    padding-block: clamp(88px, 15vw, 168px);
}

/* ═══ 2 · THE ANIMATED COMPANION ════════════════════════════════════ */

.cine-talk {
    overflow: hidden;
    overflow: clip;
    background: linear-gradient(180deg, var(--cine-navy-0) 0%, var(--cine-navy-1) 38%, var(--cine-navy-2) 100%);
    padding-top: clamp(56px, 10vw, 140px);
}

.cine-talk-head {
    display: grid;
    gap: 6px;
    margin-bottom: clamp(30px, 5vw, 56px);
}

.cine-talk-head .cine-h2 { margin-bottom: 18px; }

.cine-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.cine-points li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    color: var(--cine-ivory);
    font: 400 0.98rem/1.55 var(--cine-sans);
}

.cine-point-mark {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    transform: translateY(-2px) rotate(45deg);
    border: 1px solid var(--cine-gold-mid);
    box-shadow: 0 0 10px rgba(219, 186, 74, 0.6);
}

@media (min-width: 960px) {
    .cine-talk-head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 72px;
        align-items: end;
    }

    .cine-talk-head .cine-h2 { margin-bottom: 0; }
    .cine-talk-aside .cine-body { margin-bottom: 20px; }
}

.cine-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cine-stage-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    text-align: center;
}

.cine-stage-note {
    margin: 0;
    color: var(--cine-ivory-faint);
    font: 400 0.78rem/1.4 var(--cine-sans);
}

/* The chat window: a large, quiet frame around a faithful reproduction of
   the Shadow Companion chat screen. Its height is fixed, so revealing the
   reply only ever scrolls inside it — the page never shifts. */
.cine-chat {
    position: relative;
    width: calc(100% + 2 * var(--cine-gutter) - 16px);
    max-width: 980px;
    height: clamp(540px, 78svh, 720px);
    padding: 1px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(240, 221, 154, 0.7) 0%, rgba(140, 110, 30, 0.35) 30%, rgba(60, 70, 130, 0.25) 60%, rgba(219, 186, 74, 0.55) 100%);
    box-shadow:
        0 60px 120px rgba(0, 0, 0, 0.55),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 110px rgba(201, 162, 39, 0.12);
}

.cine-chat::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 25px;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0%, transparent 28%);
}

@media (min-width: 720px) {
    .cine-chat {
        width: 100%;
        height: clamp(600px, 82svh, 860px);
        border-radius: 30px;
    }

    .cine-chat::after { border-radius: 29px; }
}

/* ── The reproduced Shadow Companion chat interface ── */
.sc-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 25px;
    background: #0c1223;
    font-family: var(--cine-sans);
    color: #ece8dc;
}

@media (min-width: 720px) {
    .sc-app { border-radius: 29px; }
}

.sc-nav {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: clamp(5px, 1.6vw, 10px);
    padding: 14px clamp(12px, 3vw, 24px);
    background: #06080f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-nav-btn {
    flex: 0 1 46px;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 46px;
    border-radius: 11px;
    border: 1px solid rgba(201, 162, 39, 0.34);
    background: rgba(10, 12, 22, 0.9);
    color: var(--cine-gold-mid);
}

.sc-nav-btn svg {
    width: 46%;
    height: 46%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sc-nav-btn--logo {
    background: #071426;
    font: 600 1rem/1 var(--cine-serif);
    letter-spacing: 0.04em;
    color: var(--cine-gold-mid);
}

.sc-nav-btn.is-active {
    border-color: rgba(240, 221, 154, 0.8);
    background: linear-gradient(180deg, #ecd06e 0%, #d4ae3e 55%, #b8922a 100%);
    color: #0b0c14;
    box-shadow: 0 0 16px rgba(219, 186, 74, 0.35);
}

.sc-thread {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 39, 0.35) transparent;
    background:
        radial-gradient(120% 50% at 50% 0%, rgba(22, 32, 66, 0.55), transparent 70%),
        #0c1223;
    outline: none;
}

.sc-thread:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(240, 221, 154, 0.5);
}

.sc-thread::-webkit-scrollbar { width: 6px; }
.sc-thread::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, 0.3); border-radius: 6px; }

.sc-thread-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) clamp(14px, 4vw, 40px) clamp(28px, 5vw, 48px);
    font-size: clamp(0.94rem, 0.9rem + 0.25vw, 1.04rem);
    line-height: 1.72;
}

.sc-msg {
    overflow-wrap: break-word;
    border-radius: 16px;
}

.sc-msg--user {
    align-self: flex-end;
    max-width: min(82%, 480px);
    padding: 13px 20px;
    border-radius: 18px 18px 6px 18px;
    background: linear-gradient(180deg, rgba(36, 33, 84, 0.92), rgba(26, 24, 64, 0.92));
    border: 1px solid rgba(90, 86, 190, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #f3efe4;
    font-weight: 500;
}

.sc-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid transparent;
    background:
        linear-gradient(#071426, #071426) padding-box,
        linear-gradient(180deg, var(--cine-gold-hi), var(--cine-gold) 48%, var(--cine-gold-lo)) border-box;
    color: var(--cine-gold-mid);
    font: 700 0.86rem/1 var(--cine-serif);
    letter-spacing: 0.06em;
    padding-left: 1px;
    box-shadow: 0 0 18px rgba(201, 162, 39, 0.18);
}

.sc-avatar--sm {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.7rem;
}

.sc-reply {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-reply-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-reply-name {
    color: var(--cine-gold-mid);
    font: 600 0.68rem/1 var(--cine-sans);
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.sc-msg--ai {
    padding: clamp(20px, 4vw, 34px) clamp(18px, 4.4vw, 38px);
    background: rgba(9, 11, 22, 0.72);
    border: 1px solid rgba(201, 162, 39, 0.13);
    color: #f2f2f2;
}

.sc-msg--ai h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font: 500 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem)/1.15 var(--cine-serif);
    letter-spacing: 0.005em;
}

.sc-msg--ai h3::after {
    content: "";
    display: block;
    width: 44px;
    height: 1px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--cine-gold), transparent);
}

.sc-msg--ai p { margin: 0 0 1em; }

.sc-practices {
    list-style: none;
    margin: 1.6em 0 0;
    padding: 0;
    display: grid;
    gap: 1.5em;
}

.sc-practices h4 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 0.45em;
    color: var(--cine-gold-hi);
    font: 500 clamp(1.22rem, 1.1rem + 0.45vw, 1.42rem)/1.25 var(--cine-serif);
}

.sc-num {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 1px solid rgba(219, 186, 74, 0.5);
    color: var(--cine-gold-mid);
    font: 600 0.72rem/1 var(--cine-sans);
    transform: translateY(-0.12em);
}

.sc-practices p {
    margin: 0 0 0.75em;
    color: rgba(242, 242, 242, 0.88);
}

.sc-practices p:last-child { margin-bottom: 0; }

.sc-ask {
    padding: 12px 18px;
    border-left: 2px solid rgba(219, 186, 74, 0.7);
    border-radius: 0 10px 10px 0;
    background: rgba(201, 162, 39, 0.06);
    color: #fbf6e6 !important;
    font: italic 500 1.12em/1.5 var(--cine-serif);
}

/* The closing reflection — the quiet centre of the whole reply. */
.sc-reflection {
    margin-top: 2.2em;
    padding: 6px 4px 4px;
    text-align: center;
}

.sc-reflection-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sc-reflection-rule::before,
.sc-reflection-rule::after {
    content: "";
    width: min(120px, 26%);
    height: 1px;
}

.sc-reflection-rule::before { background: linear-gradient(90deg, transparent, rgba(219, 186, 74, 0.8)); }
.sc-reflection-rule::after { background: linear-gradient(270deg, transparent, rgba(219, 186, 74, 0.8)); }

.sc-reflection-rule i {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    border: 1px solid var(--cine-gold-hi);
    box-shadow: 0 0 12px rgba(240, 221, 154, 0.7);
}

.sc-reflection-label {
    margin: 0 0 14px !important;
    color: var(--cine-gold-mid);
    font: 600 0.68rem/1.2 var(--cine-sans);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.sc-reflection-q {
    max-width: 22em;
    margin: 0 auto 16px !important;
    font: italic 500 clamp(1.45rem, 1.2rem + 1.1vw, 1.95rem)/1.3 var(--cine-serif);
    background: linear-gradient(180deg, #fff8df 0%, #f0dd9a 55%, #d7b250 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-wrap: balance;
}

.sc-reflection-close {
    margin: 0 !important;
    color: rgba(243, 239, 228, 0.72);
    font: 300 0.98em/1.6 var(--cine-sans);
}

/* Only ever visible mid-demonstration; the finished (or static) state has
   no pending reply. */
.sc-thinking {
    display: none;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.16);
    background: rgba(9, 11, 22, 0.7);
    color: rgba(243, 239, 228, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.sc-thinking.is-shown { display: inline-flex; }

.sc-dots {
    display: inline-flex;
    gap: 5px;
}

.sc-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cine-gold-mid);
    animation: cineDot 1.3s ease-in-out infinite;
}

.sc-dots i:nth-child(2) { animation-delay: 0.16s; }
.sc-dots i:nth-child(3) { animation-delay: 0.32s; }

.sc-composer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px clamp(12px, 3vw, 24px) 16px;
    background: rgba(15, 22, 43, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-input {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    max-width: 700px;
    margin-left: auto;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    background:
        linear-gradient(#06060c, #06060c) padding-box,
        linear-gradient(180deg, rgba(240, 221, 154, 0.62) 0%, rgba(201, 162, 39, 0.8) 48%, rgba(140, 110, 30, 0.6) 100%) border-box;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
}

.sc-placeholder { color: #8a857e; }

.sc-send {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-right: auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #c9a13a 0%, #8a6d20 100%);
    color: #0b0c14;
}

.sc-send svg {
    width: 44%;
    height: 44%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Demonstration choreography — only when the script drives it. Without
   JavaScript (or with reduced motion) the complete reply is simply shown. */
.cine-js .sc-app.is-armed .sc-step:not(.is-shown),
.cine-js .sc-app.is-armed .sc-reply:not(.is-shown) {
    display: none;
}

.cine-js .sc-app.is-armed .sc-step.is-shown {
    animation: cineStepIn 0.9s var(--cine-ease-out) both;
}

.cine-js .sc-app.is-armed .sc-thinking.is-shown {
    animation: cineStepIn 0.5s var(--cine-ease-out) both;
}

@keyframes cineStepIn {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: none; }
}

.cine-replay {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(219, 186, 74, 0.4);
    background: rgba(201, 162, 39, 0.06);
    color: var(--cine-gold-hi);
    font: 500 0.85rem/1 var(--cine-sans);
    letter-spacing: 0.03em;
    cursor: pointer;
    animation: cineFadeUp 0.6s var(--cine-ease-out) both;
    transition: background-color 0.3s var(--cine-ease), border-color 0.3s var(--cine-ease);
}

/* Its space is always reserved, so its arrival never shifts the page. */
.cine-replay[hidden] {
    display: inline-flex;
    visibility: hidden;
    animation: none;
}

.cine-replay svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--cine-ease);
}

.cine-replay:hover {
    background: rgba(201, 162, 39, 0.14);
    border-color: rgba(240, 221, 154, 0.8);
}

.cine-replay:hover svg { transform: rotate(-200deg); }

/* ═══ 3 · JOURNAL & DREAMS ══════════════════════════════════════════ */

.cine-journal {
    overflow: hidden;
    overflow: clip;
    background: linear-gradient(180deg, var(--cine-navy-2) 0%, #0d0d19 46%, #0a0a14 100%);
}

.cine-journal-grid {
    display: grid;
    gap: 64px;
    align-items: center;
}

.cine-chapters {
    margin: 0;
    display: grid;
    gap: 0;
}

.cine-chapter {
    padding: 18px 0;
    border-top: 1px solid rgba(201, 162, 39, 0.16);
}

.cine-chapter:last-child { border-bottom: 1px solid rgba(201, 162, 39, 0.16); }

.cine-chapter dt {
    margin: 0 0 4px;
    color: var(--cine-gold-hi);
    font: 500 1.45rem/1.2 var(--cine-serif);
}

.cine-chapter dd {
    margin: 0;
    color: var(--cine-ivory-dim);
    font: 300 0.98rem/1.65 var(--cine-sans);
}

.cine-journal-scene {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    aspect-ratio: 1 / 1.14;
}

.cine-scene-window {
    position: absolute;
    inset: 0 0 auto;
    margin: 0;
    aspect-ratio: 1024 / 620;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.cine-scene-window img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cine-scene-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 20, 0.15) 0%, transparent 40%, rgba(10, 10, 20, 0.55) 100%),
        radial-gradient(ellipse 80% 70% at 50% 50%, transparent 55%, rgba(6, 6, 12, 0.6) 100%);
}

.cine-scene-light {
    position: absolute;
    left: 6%;
    top: 22%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 210, 130, 0.42) 0%, rgba(233, 169, 75, 0.12) 40%, transparent 66%);
    mix-blend-mode: screen;
    opacity: calc(var(--sp, 1) * 1.8 - 0.25);
    z-index: 1;
}

.cine-panel {
    position: absolute;
    margin: 0;
}

.cine-panel figcaption {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(219, 186, 74, 0.45);
    background: rgba(7, 11, 26, 0.92);
    color: var(--cine-gold-hi);
    font: 600 0.62rem/1 var(--cine-sans);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cine-panel--journal {
    left: 7%;
    top: 30%;
    width: 36%;
}

.cine-panel--dream {
    right: 7%;
    top: 40%;
    width: 38%;
}

.cine-mini-phone {
    padding: 1.5px;
    border-radius: 24px;
    background: linear-gradient(150deg, #f6e3a1 0%, #a8852c 22%, #3a2e12 46%, #b39032 68%, #f0dd9a 86%, #7c621c 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(201, 162, 39, 0.12);
}

.cine-mini-phone img {
    display: block;
    width: 100%;
    height: auto;
    border: 5px solid #040407;
    border-radius: 22px;
    background: #0a0d18;
}

.cine-art-frame {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 162, 39, 0.28), 0 0 50px rgba(201, 162, 39, 0.12);
}

.cine-art-frame img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 960px) {
    .cine-journal-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 80px;
    }

    .cine-journal-scene { order: -1; }

    .cine-panel figcaption { font-size: 0.66rem; }
}

/* ═══ 4 · DISCOVER YOUR PATTERNS ════════════════════════════════════ */

.cine-patterns {
    overflow: clip;
    background:
        radial-gradient(ellipse 90% 50% at 50% 10%, rgba(40, 46, 110, 0.28), transparent 70%),
        linear-gradient(180deg, #0a0a14 0%, var(--cine-navy-0) 40%, #050816 100%);
}

.cine-patterns-grid {
    display: grid;
    gap: 44px;
}

.cine-tree-col { position: relative; }

.cine-tree {
    position: relative;
    width: min(100%, 460px);
    margin-inline: auto;
    aspect-ratio: 10 / 14;
}

.cine-tree-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
    opacity: calc(var(--sp, 1) * 4.5 - 0.35);
    will-change: transform, opacity;
}

.cine-tree-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transform: scale(calc(1.12 - min(var(--sp, 1), 0.6) * 0.2));
    transform-origin: 50% 40%;
}

.cine-roots-glow {
    position: absolute;
    inset: 46% -10% -6%;
    pointer-events: none;
    background: radial-gradient(ellipse 52% 60% at 50% 22%, rgba(255, 196, 96, 0.55) 0%, rgba(233, 140, 40, 0.16) 44%, transparent 72%);
    mix-blend-mode: screen;
    opacity: calc(var(--sp, 1) * 2.6 - 0.65);
}

.cine-threads {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.cine-threads path {
    fill: none;
    stroke: rgba(240, 221, 154, 0.62);
    stroke-width: 0.3;
    stroke-linecap: round;
    stroke-dasharray: 1 1;
    stroke-dashoffset: clamp(0, calc(1.9 - var(--sp, 1) * 2.8), 1);
    filter: drop-shadow(0 0 3px rgba(240, 221, 154, 0.6));
}

.cine-nodes circle {
    fill: var(--cine-gold-hi);
    opacity: calc(var(--sp, 1) * 3 - 1.2);
}

/* On narrow screens the section is a tall single column, so the tree has
   left the viewport long before the section's own progress reaches its
   desktop values. These curves complete while the tree is still in view. */
@media (max-width: 959px) {
    .cine-tree-art { opacity: calc(var(--sp, 1) * 7 - 0.4); }
    .cine-tree-art img { transform: scale(calc(1.12 - min(var(--sp, 1), 0.3) * 0.4)); }
    .cine-roots-glow { opacity: calc(var(--sp, 1) * 4.2 - 0.7); }
    .cine-threads path { stroke-dashoffset: clamp(0, calc(1.7 - var(--sp, 1) * 4.6), 1); }
    .cine-nodes circle { opacity: calc(var(--sp, 1) * 5 - 1.4); }
}

.cine-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.cine-feature {
    position: relative;
    padding: 24px 0 24px 58px;
    border-top: 1px solid rgba(201, 162, 39, 0.16);
}

.cine-feature-num {
    position: absolute;
    left: 0;
    top: 26px;
    width: 40px;
    color: var(--cine-gold);
    font: 500 1.05rem/1 var(--cine-serif);
    letter-spacing: 0.08em;
}

.cine-feature h3 {
    margin: 0 0 8px;
    color: var(--cine-ivory);
    font: 500 1.6rem/1.15 var(--cine-serif);
}

.cine-feature p {
    margin: 0;
    max-width: 34em;
    color: var(--cine-ivory-dim);
    font: 300 0.98rem/1.65 var(--cine-sans);
}

.cine-feature--shot {
    padding: 36px 0 0;
}

/* ── Psychological Landscape showcase ─────────────────────────────────
   Six screens share a single grid cell, so the stage always takes exactly
   one phone's height and never shifts as images arrive. landing.js adds
   .is-live and a data-pos to each slide: 0 is the featured screen, ±1 the
   two that sit behind it, and everything else waits, hidden, at the back.
   Without the script only the first screen is shown. */

.cine-showcase {
    --pw: min(76vw, 300px);
    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cine-showcase::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(120%, 620px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.16) 0%, rgba(201, 162, 39, 0.05) 38%, transparent 66%);
}

.cine-showcase-stage {
    position: relative;
    display: grid;
    width: 100%;
    justify-items: center;
    perspective: 1400px;
    outline: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.cine-showcase-stage:focus-visible {
    border-radius: 24px;
    box-shadow: 0 0 0 2px rgba(240, 221, 154, 0.55);
}

.cine-showcase-slide {
    grid-area: 1 / 1;
    width: var(--pw);
    margin: 0;
}

.cine-showcase-slide:not(.is-current) { display: none; }

.cine-showcase-slide img {
    aspect-ratio: 720 / 1600;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.cine-feature .cine-showcase-caption {
    margin: 30px 0 0;
    max-width: none;
    min-height: 1em;
    color: var(--cine-gold-hi);
    font: 600 0.66rem/1 var(--cine-sans);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-align: center;
    transition: opacity 0.4s var(--cine-ease);
}

.cine-showcase-caption.is-swapping { opacity: 0; }

.cine-showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.cine-showcase-controls[hidden] { display: none; }

.cine-showcase-controls .cine-arrow {
    width: 40px;
    height: 40px;
}

.cine-showcase-controls .cine-arrow svg {
    width: 17px;
    height: 17px;
}

.cine-showcase-controls .cine-dots button {
    position: relative;
}

/* A comfortable invisible tap target around each 6px indicator. */
.cine-showcase-controls .cine-dots button::after {
    content: "";
    position: absolute;
    inset: -10px -4px;
}

.cine-showcase.is-live .cine-showcase-slide {
    display: block;
    position: relative;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0) scale(0.7);
    transition:
        transform 0.9s var(--cine-ease-out),
        opacity 0.7s var(--cine-ease);
    will-change: transform, opacity;
}

.cine-showcase.is-live .cine-showcase-slide .cine-mini-phone {
    transition: box-shadow 0.9s var(--cine-ease);
}

.cine-showcase.is-live .cine-showcase-slide[data-pos="0"] {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(var(--dx, 0px), 0, 0);
}

.cine-showcase.is-live .cine-showcase-slide[data-pos="0"] .cine-mini-phone {
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.65),
        0 0 46px rgba(201, 162, 39, 0.28);
}

/* While a finger is on the glass the featured screen follows it directly. */
.cine-showcase.is-dragging .cine-showcase-slide { transition: none; }

/* Narrow screens: one prominent screen at a time. Neighbours wait just
   off to each side, invisible, so a change reads as a gentle slide. */
.cine-showcase.is-live .cine-showcase-slide[data-pos="-1"] {
    z-index: 2;
    transform: translate3d(-34%, 0, 0) scale(0.9);
}

.cine-showcase.is-live .cine-showcase-slide[data-pos="1"] {
    z-index: 2;
    transform: translate3d(34%, 0, 0) scale(0.9);
}

@media (max-width: 340px) {
    .cine-showcase { --pw: 82vw; }
}

@media (min-width: 600px) and (max-width: 959px) {
    .cine-showcase { --pw: 300px; }
}

@media (min-width: 960px) {
    .cine-patterns-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
        grid-template-areas:
            "tree intro"
            "tree features";
        column-gap: 88px;
        row-gap: 30px;
        align-items: start;
    }

    .cine-patterns-intro { grid-area: intro; }
    .cine-features { grid-area: features; }

    .cine-tree-col {
        grid-area: tree;
        position: sticky;
        top: max(80px, calc(50svh - min(41svh, 410px)));
        align-self: start;
    }

    .cine-tree {
        width: auto;
        height: min(82svh, 820px);
        aspect-ratio: 941 / 1672;
    }

    .cine-tree-art img { object-position: 50% 50%; }

    .cine-feature--shot { padding-top: 44px; }

    /* Wide screens: three phones at once. The featured screen sits in front;
       its neighbours stand a little behind it, turned slightly inwards and
       dimmed. Sizes follow the column (cqw) so the trio always fits it. */
    .cine-showcase { --pw: min(290px, 50cqw); }

    .cine-showcase.is-live .cine-showcase-slide[data-pos="-1"],
    .cine-showcase.is-live .cine-showcase-slide[data-pos="1"] {
        opacity: 0.5;
        pointer-events: auto;
        cursor: pointer;
    }

    .cine-showcase.is-live .cine-showcase-slide[data-pos="-1"] {
        transform: translate3d(-50%, 3%, -60px) scale(0.78) rotateY(9deg);
    }

    .cine-showcase.is-live .cine-showcase-slide[data-pos="1"] {
        transform: translate3d(50%, 3%, -60px) scale(0.78) rotateY(-9deg);
    }

    .cine-showcase.is-live .cine-showcase-slide[data-pos="-1"]:hover,
    .cine-showcase.is-live .cine-showcase-slide[data-pos="1"]:hover {
        opacity: 0.72;
        transition-duration: 0.9s, 0.35s;
    }

    .cine-showcase.is-live .cine-showcase-slide[data-pos="-1"] .cine-mini-phone,
    .cine-showcase.is-live .cine-showcase-slide[data-pos="1"] .cine-mini-phone {
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 162, 39, 0.1);
    }
}

/* ═══ 5 · SHARE CARD GALLERY ════════════════════════════════════════ */

.cine-gallery {
    overflow: hidden;
    overflow: clip;
    background: linear-gradient(180deg, #050816 0%, var(--cine-navy-1) 50%, #080a16 100%);
    padding-bottom: clamp(70px, 10vw, 120px);
}

.cine-gallery-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cine-gallery-head .cine-h2 { max-width: 13ch; }

.cine-gallery-stage {
    --cw: clamp(236px, 68vw, 320px);
    --gap: clamp(16px, 3.4vw, 30px);
    position: relative;
    margin-top: 12px;
}

.cine-track {
    position: relative;
    list-style: none;
    margin: 0;
    display: flex;
    gap: var(--gap);
    padding: 34px calc(50% - var(--cw) / 2) 46px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    outline: none;
}

.cine-track::-webkit-scrollbar { display: none; }

.cine-track:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(240, 221, 154, 0.55);
    border-radius: 16px;
}

@media (hover: hover) and (pointer: fine) {
    .cine-track { cursor: grab; }
}

.cine-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
    -webkit-user-select: none;
}

.sc-card {
    flex: 0 0 var(--cw);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    perspective: 1100px;
}

.sc-card-inner {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    container-type: inline-size;
    aspect-ratio: 720 / 1279;
    overflow: hidden;
    border-radius: 18px;
    background: var(--cine-navy-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(0.93);
    opacity: 0.66;
    transition:
        transform 0.7s var(--cine-ease-out),
        opacity 0.7s var(--cine-ease),
        box-shadow 0.7s var(--cine-ease);
}

.sc-card.is-active .sc-card-inner {
    transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1);
    opacity: 1;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(240, 221, 154, 0.7),
        0 0 46px rgba(201, 162, 39, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .sc-card:hover .sc-card-inner {
        opacity: 1;
        transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1);
        transition-duration: 0.35s, 0.5s, 0.5s;
    }
}

.sc-card-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* The Share Card presentation layer — the same proportions as the app's
   1080 × 1920 renderer (monogram top-centre, serif words in the central
   safe area, the domain at the foot), expressed in container units. */
.sc-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 30% at 50% 47%, rgba(5, 11, 30, 0.42), transparent 78%),
        linear-gradient(180deg, rgba(5, 11, 30, 0.35) 0%, transparent 18%, transparent 78%, rgba(5, 11, 30, 0.5) 100%);
}

.sc-card-mono,
.sc-card-quote,
.sc-card-foot {
    position: absolute;
    z-index: 1;
}

.sc-card-mono {
    top: 5.4%;
    left: 50%;
    width: 10.8cqw;
    height: 10.8cqw;
    margin-left: -5.4cqw;
    display: grid;
    place-items: center;
    border-radius: 2.3cqw;
    border: 0.46cqw solid transparent;
    background:
        linear-gradient(#071426, #071426) padding-box,
        linear-gradient(180deg, var(--cine-gold-hi), var(--cine-gold) 48%, var(--cine-gold-lo)) border-box;
    color: var(--cine-gold-mid);
    font: 700 6cqw/1 var(--cine-serif);
    letter-spacing: 0.35cqw;
    padding-left: 0.3cqw;
    box-shadow: 0 0.4cqw 2.6cqw rgba(0, 0, 0, 0.55);
}

.sc-card-quote {
    top: 17.2%;
    bottom: 14.6%;
    left: 11.8cqw;
    right: 11.8cqw;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6%;
    color: #fff;
    font: 600 8.6cqw/1.2 var(--cine-serif);
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 0 2.8cqw rgba(5, 11, 30, 0.9), 0 0.2cqw 0.6cqw rgba(0, 0, 0, 0.6);
}

.sc-card-foot {
    bottom: 5.2%;
    left: 0;
    right: 0;
    text-align: center;
    color: #e9c765;
    font: 600 3.15cqw/1 var(--cine-sans);
    letter-spacing: 0.28cqw;
    text-shadow: 0 0 1.2cqw rgba(0, 0, 0, 0.7);
}

.sc-card-foot::before {
    content: "";
    display: block;
    width: 10.4cqw;
    height: 1px;
    margin: 0 auto 4.4cqw;
    background: rgba(233, 199, 101, 0.7);
}

.cine-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.cine-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(219, 186, 74, 0.42);
    background: rgba(7, 11, 26, 0.6);
    color: var(--cine-gold-hi);
    cursor: pointer;
    transition: background-color 0.3s var(--cine-ease), border-color 0.3s var(--cine-ease), transform 0.2s var(--cine-ease), opacity 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.cine-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
}

.cine-arrow--next svg { transform: none; }

.cine-arrow:hover {
    background: rgba(201, 162, 39, 0.14);
    border-color: rgba(240, 221, 154, 0.85);
}

.cine-arrow:active { transform: scale(0.94); }

.cine-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.cine-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cine-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(243, 239, 228, 0.28);
    cursor: pointer;
    transition: width 0.45s var(--cine-ease), background-color 0.45s var(--cine-ease);
}

.cine-dots button.is-active {
    width: 24px;
    background: linear-gradient(90deg, var(--cine-gold-hi), var(--cine-gold));
}

.cine-gallery-note {
    margin: 22px auto 0;
    padding-inline: var(--cine-gutter);
    max-width: 34em;
    color: var(--cine-ivory-faint);
    font: 400 0.8rem/1.5 var(--cine-sans);
    text-align: center;
}

/* ═══ 6 · THE FINAL INVITATION ══════════════════════════════════════ */

.cine-finale {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    overflow: clip;
    background: var(--cine-navy-0);
}

.cine-finale-media {
    position: absolute;
    inset: 0 0 auto;
    height: var(--cine-stage-h);
    z-index: -1;
    overflow: hidden;
    opacity: calc(var(--sp, 1) * 2.4 - 0.1);
}

.cine-finale-haze { display: none; }

.cine-finale-art {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.cine-finale-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* A slow band of light crossing the horizon. */
.cine-sweep {
    position: absolute;
    left: 0;
    right: 0;
    top: 51.5%;
    height: 7%;
    margin-top: -3.5%;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: screen;
}

.cine-sweep::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 228, 160, 0.6), rgba(255, 200, 110, 0.12) 50%, transparent 72%);
    transform: translateX(-110%);
    animation: cineSweep 11s ease-in-out 1s infinite;
}

.cine-finale-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        var(--cine-navy-0) 0%,
        rgba(4, 6, 15, 0.7) 12%,
        rgba(4, 6, 15, 0.3) 30%,
        rgba(4, 6, 15, 0.12) 46%,
        rgba(4, 6, 15, 0) 58%,
        rgba(4, 6, 15, 0.35) 80%,
        var(--cine-navy-0) 100%);
}

.cine-finale-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(96px, 13svh, 140px) var(--cine-gutter) 84px;
    text-align: center;
}

.cine-finale-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cine-h2--finale {
    max-width: 11ch;
    font-size: clamp(2.6rem, 11vw, 4.8rem);
    text-shadow: 0 2px 30px rgba(4, 6, 15, 0.8);
}

.cine-finale-copy .cine-body {
    max-width: 26em;
    color: var(--cine-ivory);
    text-shadow: 0 1px 14px rgba(4, 6, 15, 0.9);
}

.cine-finale-action {
    margin-top: calc(var(--cine-stage-h) * 0.5 - 60px);
    gap: 14px;
}

.cine-finale-action .web-taster-cta {
    animation: cineCtaGlow 4.8s ease-in-out 1.2s infinite alternate;
}

.cine-finale-action .play-launch-taster {
    margin: 0 0 6px;
    color: var(--cine-ivory-dim);
}

.cine-finale-action .play-store-badge {
    min-height: 56px;
    padding: 9px 28px;
}

/* Finale stages for wide screens: artwork centred, words to its left and
   the invitation to its right — a quiet triptych. */
@media (min-width: 1100px) {
    .cine-finale-haze {
        display: block;
        position: absolute;
        inset: -6%;
        background:
            radial-gradient(ellipse 40% 26% at 50% 54%, rgba(246, 186, 96, 0.36) 0%, rgba(176, 108, 48, 0.12) 50%, transparent 74%),
            radial-gradient(ellipse 56% 44% at 50% 30%, rgba(52, 62, 128, 0.36), transparent 72%);
    }

    .cine-finale-art {
        inset: auto;
        top: -6%;
        left: 0;
        right: 0;
        margin-inline: auto;
        height: 112%;
        width: calc(var(--cine-stage-h) * 1.12 * 0.5628);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    }

    .cine-finale-shade {
        background:
            linear-gradient(90deg, rgba(4, 6, 15, 0.86) 0%, rgba(4, 6, 15, 0.3) 30%, transparent 42%, transparent 58%, rgba(4, 6, 15, 0.3) 70%, rgba(4, 6, 15, 0.86) 100%),
            linear-gradient(180deg, var(--cine-navy-0) 0%, rgba(4, 6, 15, 0) 22%, rgba(4, 6, 15, 0) 76%, var(--cine-navy-0) 100%);
    }

    .cine-finale-media { height: 100%; }

    .cine-finale-frame {
        display: grid;
        grid-template-columns: minmax(0, 1fr) calc(var(--cine-stage-h) * 0.58) minmax(0, 1fr);
        align-items: center;
        min-height: var(--cine-stage-h);
        padding: 100px max(var(--cine-gutter), calc(50% - 680px));
    }

    .cine-finale-copy {
        grid-column: 1;
        align-items: flex-end;
        text-align: right;
    }

    .cine-finale-copy .cine-kicker { flex-direction: row-reverse; }
    .cine-finale-copy .cine-kicker::before { background: linear-gradient(270deg, transparent, var(--cine-gold)); }

    .cine-h2--finale { font-size: clamp(3.2rem, 4.6vw, 4.8rem); }

    .cine-finale-action {
        grid-column: 3;
        margin-top: 0;
        align-items: flex-start;
    }

    .cine-finale-action .play-launch-taster { text-align: left; }
}

/* ── Footer handoff ────────────────────────────────────────────────── */

body[data-page="landing"] .site-footer {
    position: relative;
    background: var(--cine-navy-0);
    border-top: 1px solid rgba(201, 162, 39, 0.12);
}

/* ═══ Scroll reveal system ══════════════════════════════════════════ */

.cine-js [data-cine] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 1s var(--cine-ease),
        transform 1.1s var(--cine-ease-out);
    transition-delay: calc(var(--d, 0) * 110ms);
}

.cine-js [data-cine="rise"] {
    transform: translate3d(0, 70px, 0) scale(0.94);
    transition-duration: 1.2s, 1.5s;
}

.cine-js [data-cine="scene"] {
    transform: translate3d(0, 40px, 0) scale(1.04);
    transition-duration: 1.3s, 1.6s;
}

.cine-js [data-cine="panel"] {
    transform: translate3d(0, 60px, 0);
    transition-duration: 1s, 1.3s;
}

.cine-js [data-cine="gallery"] {
    opacity: 1;
    transform: none;
}

.cine-js [data-cine].is-in {
    opacity: 1;
    transform: none;
}

/* Gallery: cards drift into place one after another. */
.cine-js [data-cine="gallery"] .sc-card {
    opacity: 0;
    transform: translate3d(0, 70px, 0) rotate(calc((var(--i) - 2) * 1.6deg));
    transition:
        opacity 0.9s var(--cine-ease),
        transform 1.2s var(--cine-ease-out);
    transition-delay: calc(var(--i) * 90ms + 120ms);
}

.cine-js [data-cine="gallery"].is-in .sc-card {
    opacity: 1;
    transform: none;
}

/* Headlines: word-by-word rise, split by landing.js. */
.cine-w {
    display: inline-block;
    overflow: hidden;
    padding: 0.06em 0.02em 0.12em;
    margin: -0.06em -0.02em -0.12em;
    vertical-align: top;
}

.cine-w > span {
    display: inline-block;
}

.cine-js [data-split] .cine-w > span {
    transform: translate3d(0, 110%, 0);
    transition: transform 1.1s var(--cine-ease-out);
    transition-delay: calc(var(--w, 0) * 70ms);
}

.cine-js [data-split].is-in .cine-w > span {
    transform: none;
}

/* ═══ Keyframes ═════════════════════════════════════════════════════ */

@keyframes cineHeroZoom {
    from { transform: scale(1.16); }
    to   { transform: scale(1.02); }
}

@keyframes cineSunRise {
    from { opacity: 0; transform: scale(0.82) translateY(4%); }
    to   { opacity: 1; transform: none; }
}

@keyframes cineSunBreathe {
    from { opacity: 1; }
    to   { opacity: 0.72; }
}

@keyframes cineMistA {
    from { transform: translate3d(-6%, 0, 0); }
    to   { transform: translate3d(8%, -3%, 0); }
}

@keyframes cineMistB {
    from { transform: translate3d(7%, 0, 0); }
    to   { transform: translate3d(-8%, 2%, 0); }
}

@keyframes cineTwinkle {
    from { opacity: 0.15; }
    to   { opacity: 0.95; }
}

@keyframes cineLineUp {
    from { opacity: 0; transform: translate3d(0, 105%, 0); }
    to   { opacity: 1; transform: none; }
}

@keyframes cineFadeUp {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
    to   { opacity: 1; transform: none; }
}

@keyframes cineRise {
    from { opacity: 0; transform: translate3d(0, 26px, 0); }
    to   { opacity: 1; transform: none; }
}

@keyframes cineScrollCue {
    0%   { transform: translateY(-18px); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateY(44px); opacity: 0; }
}

@keyframes cineMote {
    0%   { opacity: 0; transform: translate3d(0, 20px, 0); }
    25%  { opacity: 0.85; }
    75%  { opacity: 0.5; }
    100% { opacity: 0; transform: translate3d(14px, -70px, 0); }
}

@keyframes cineDot {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40%           { opacity: 1; transform: translateY(-1.5px); }
}

@keyframes cineSweep {
    0%   { transform: translateX(-110%); opacity: 0; }
    15%  { opacity: 1; }
    60%  { opacity: 1; }
    75%  { transform: translateX(190%); opacity: 0; }
    100% { transform: translateX(190%); opacity: 0; }
}

@keyframes cineCtaGlow {
    from {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 12px 32px rgba(201, 162, 39, 0.26),
            0 0 0 6px rgba(201, 162, 39, 0.08);
    }
    to {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 14px 40px rgba(201, 162, 39, 0.36),
            0 0 0 8px rgba(201, 162, 39, 0.12),
            0 0 70px rgba(233, 169, 75, 0.28);
    }
}

/* ═══ Reduced motion — a calm, complete, static composition ═════════ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .cine *,
    .cine *::before,
    .cine *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .cine-js [data-cine],
    .cine-js [data-cine="gallery"] .sc-card,
    .cine-js [data-split] .cine-w > span {
        opacity: 1;
        transform: none;
    }

    .cine-hero-img { transform: scale(1.02); }
    .cine-sun { opacity: 0.85; }
    .cine-mist { transform: none; }
    .cine-stars::after { opacity: 0.6; }
    .cine-motes i { opacity: 0.45; }
    .cine-sweep { display: none; }
    .cine-scroll-line::after { transform: translateY(14px); opacity: 1; }

    .cine-tree-art,
    .cine-roots-glow,
    .cine-nodes circle,
    .cine-finale-media,
    .cine-scene-light { opacity: 1; }

    .cine-roots-glow { opacity: 0.8; }
    .cine-tree-art img { transform: none; }
    .cine-threads path { stroke-dashoffset: 0; }
}
