/* ── Cinematic home (index only) ─────────────────────────────────────── */

body.page-home .kw-header {
    border-bottom-color: transparent;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
    position: absolute;
    top: 0; left: 0; right: 0;
}

.cin {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 64px;
    overflow: hidden;
}

.cin-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

/* Copy */
.cin-copy { max-width: 520px; }
.cin-kicker {
    font: 700 10px/1 var(--k-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--k-text-4);
    margin: 0 0 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: cinIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.cin-title {
    font-size: clamp(42px, 7.2vw, 72px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0 0 22px;
    color: #fff;
    opacity: 0;
    transform: translateY(28px);
    animation: cinIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}
.cin-title em {
    font-style: normal;
    background: linear-gradient(120deg, #fff 0%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cin-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--k-text-2);
    line-height: 1.5;
    max-width: 34ch;
    margin: 0 0 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: cinIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}
.cin-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(16px);
    animation: cinIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.cin-cta .k-btn { padding: 12px 22px; font-size: 14px; }
.cin-trust {
    margin: 20px 0 0;
    font-size: 12.5px;
    color: var(--k-text-4);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: cinIn 1s ease 0.7s forwards;
}

@keyframes cinIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Stage / orbit */
.cin-stage {
    position: relative;
    height: clamp(440px, 64vh, 640px);
    perspective: 1400px;
    opacity: 0;
    animation: cinIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.cin-bloom {
    position: absolute;
    left: 52%;
    top: 48%;
    width: min(480px, 88%);
    height: min(480px, 88%);
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.10) 0%, transparent 44%),
        radial-gradient(circle at 38% 58%, rgba(120,140,255,0.12) 0%, transparent 52%);
    filter: blur(10px);
    animation: cinBloom 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes cinBloom {
    0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.05); }
}

.cin-orbit {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

/*
 * Phone frame — matches source screenshots (474×978 ≈ 0.4847).
 * Screens already include status bar / Dynamic Island — no fake notch.
 */
.cin-phone {
    position: absolute;
    left: 6%;
    top: 50%;
    width: min(248px, 44%);
    aspect-ratio: 474 / 978;
    border-radius: 34px;
    overflow: hidden;
    background: #050505;
    /* hairline rim + soft discrete edge glow */
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.16),
        0 0 0 2px rgba(0,0,0,0.55),
        0 28px 56px rgba(0,0,0,0.55),
        0 0 28px rgba(255,255,255,0.04),
        0 0 48px rgba(140,150,255,0.07);
    transform: translateY(-50%) rotateY(10deg) rotateX(3deg) rotateZ(-3deg);
    animation: cinPhoneFloat 7.5s ease-in-out infinite;
    z-index: 2;
}
@keyframes cinPhoneFloat {
    0%, 100% { transform: translateY(-50%) rotateY(10deg) rotateX(3deg) rotateZ(-3deg) translate3d(0, 0, 0); }
    50% { transform: translateY(-50%) rotateY(8deg) rotateX(2deg) rotateZ(-2.5deg) translate3d(0, -10px, 0); }
}

/* Extension popup — native 380×600 */
.cin-ext {
    position: absolute;
    right: 5%;
    top: 50%;
    width: min(268px, 48%);
    aspect-ratio: 380 / 600;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15),
        0 0 0 2px rgba(0,0,0,0.5),
        0 24px 52px rgba(0,0,0,0.58),
        0 0 24px rgba(255,255,255,0.035),
        0 0 44px rgba(140,150,255,0.06);
    transform: translateY(-42%) rotateY(-12deg) rotateX(4deg) rotateZ(2.5deg);
    animation: cinExtFloat 8.5s ease-in-out infinite;
    z-index: 3;
}
@keyframes cinExtFloat {
    0%, 100% { transform: translateY(-42%) rotateY(-12deg) rotateX(4deg) rotateZ(2.5deg) translate3d(0, 0, 0); }
    50% { transform: translateY(-42%) rotateY(-10deg) rotateX(3deg) rotateZ(2deg) translate3d(0, 10px, 0); }
}

/* Screen stacks — 1:1 with asset aspect, no crop artifacts */
.cin-screens {
    position: absolute;
    inset: 0;
    background: #000;
}
.cin-screens img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.9s ease;
    /* Exact fill — frame AR matches PNG AR */
    object-fit: fill;
}
.cin-screens img.is-on { opacity: 1; }

/* Second beat — single line */
.cin-beat {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 14vw, 140px) 24px;
    text-align: center;
    border-top: 1px solid var(--k-border-1);
}
.cin-beat-line {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.15;
    max-width: 16ch;
    margin: 0 auto 28px;
    color: #fff;
}
.cin-beat-sub {
    font-size: 15px;
    color: var(--k-text-3);
    max-width: 36ch;
    margin: 0 auto 36px;
    line-height: 1.55;
}
.cin-beat.is-in .cin-beat-line,
.cin-beat.is-in .cin-beat-sub,
.cin-beat.is-in .cin-cta {
    animation: cinIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cin-beat .cin-beat-line { opacity: 0; transform: translateY(24px); }
.cin-beat .cin-beat-sub { opacity: 0; transform: translateY(18px); animation-delay: 0.12s !important; }
.cin-beat .cin-cta { opacity: 0; transform: translateY(14px); animation-delay: 0.22s !important; justify-content: center; }

@media (max-width: 900px) {
    .cin-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cin-copy { max-width: none; margin: 0 auto; }
    .cin-sub { margin-left: auto; margin-right: auto; }
    .cin-cta { justify-content: center; }
    .cin-stage {
        height: clamp(360px, 52vh, 500px);
        order: -1;
        margin-bottom: 8px;
    }
    .cin-phone {
        left: 10%;
        width: min(190px, 40%);
    }
    .cin-ext {
        right: 6%;
        width: min(200px, 44%);
    }
}

@media (max-width: 520px) {
    .cin { padding-top: 88px; }
    .cin-stage { height: clamp(320px, 48vh, 420px); }
    .cin-phone { left: 4%; width: 44%; }
    .cin-ext { right: 2%; width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .cin-kicker, .cin-title, .cin-sub, .cin-cta, .cin-trust, .cin-stage {
        opacity: 1; transform: none; animation: none;
    }
    .cin-phone, .cin-ext, .cin-bloom {
        animation: none !important;
    }
    .cin-phone { transform: translateY(-50%); }
    .cin-ext { transform: translateY(-42%); }
}
