/* The welcome section of look a: full screen, dark, the phone in the middle.
   --p (0 → 1) is how far it has been scrolled: set from cine.js. */

.cine {
    --p: 0;
    position: relative;
    min-height: calc(100svh - 104px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 0 56px;
    overflow: hidden;
    background: radial-gradient(90% 70% at 50% 35%, #1a2f3b 0%, #0b161c 55%, #05090c 100%);
    color: #f5f7f8;
    text-align: center;
    isolation: isolate;
}

.cine-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.85;
}

.cine.has-video .cine-stage { display: none; }
/* With the clip, the phone is in the picture: the words stand below it */
.cine.has-video { justify-content: flex-end; padding-bottom: 52px; }
.cine.has-video .cine-video { object-position: center top; }
.cine.has-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 9, 12, 0.15) 30%, rgba(5, 9, 12, 0.85) 100%); }

/* ---- The drawn phone ---- */
.cine-stage {
    position: relative;
    display: grid;
    place-items: center;
    height: 500px;
    width: 100%;
    transform: translateY(calc(var(--p) * -60px)) scale(calc(1 - var(--p) * 0.22));
    opacity: calc(1 - var(--p) * 0.9);
}

.cine-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 90, 0.35) 0%, rgba(212, 175, 90, 0) 65%);
    filter: blur(10px);
    animation: cine-breathe 6s ease-in-out infinite;
}

.cine-device {
    position: relative;
    width: 230px;
    height: 470px;
    border-radius: 52px;
    padding: 9px;
    /* Titanium: a cool grey with light along the edge */
    background: linear-gradient(135deg, #8d8a84 0%, #e9e6df 18%, #77736c 40%, #d6d2ca 70%, #5f5c56 100%);
    box-shadow: 0 50px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: cine-rise 1.6s cubic-bezier(0.2, 0.7, 0.1, 1) both, cine-float 7s ease-in-out 1.6s infinite;
}

.cine-screen {
    position: relative;
    height: 100%;
    border-radius: 44px;
    overflow: hidden;
    background: linear-gradient(160deg, #f6dfa4 0%, #c9a24a 30%, #6a4a12 62%, #120d05 100%);
    background-size: 100% 220%;
    animation: cine-screen 9s ease-in-out infinite alternate;
    display: grid;
    place-items: start center;
}

.cine-island {
    margin-top: 14px;
    width: 96px;
    height: 28px;
    border-radius: 16px;
    background: #000;
}

.cine-time {
    position: absolute;
    top: 64px;
    inset-inline: 0;
    font-size: 64px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
    animation: cine-fade 1.2s ease 0.9s both;
}

/* A line of light passing over the glass */
.cine-sweep {
    position: absolute;
    inset: -40%;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
    animation: cine-sweep 5s ease-in-out 1.4s infinite;
}

/* ---- The words ---- */
.cine-text {
    position: relative;
    padding: 0 18px;
    transform: translateY(calc(var(--p) * 40px));
    opacity: calc(1 - var(--p) * 0.8);
}

.cine-kicker {
    margin: 0;
    color: #e6c877;
    font-weight: 700;
    font-size: 15px;
    animation: cine-fade 0.9s ease 0.5s both;
}

.cine-title {
    margin: 4px 0 0;
    font-size: clamp(40px, 9vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #cfd5d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    direction: ltr;
    animation: cine-fade 1s ease 0.7s both;
}

.cine-line {
    margin: 10px 0 0;
    font-size: clamp(16px, 2.4vw, 22px);
    color: #c9d1d6;
    animation: cine-fade 1s ease 0.95s both;
}

.cine-price {
    margin: 8px 0 0;
    font-size: 16px;
    color: #e6c877;
    font-weight: 700;
    min-height: 1.5em;
    animation: cine-fade 1s ease 1.1s both;
}

.cine-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    animation: cine-fade 1s ease 1.25s both;
}

.cine .btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cine-down {
    position: absolute;
    bottom: 14px;
    inset-inline: 0;
    margin: auto;
    width: 36px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    animation: cine-bob 2s ease-in-out infinite;
}

@keyframes cine-rise { from { transform: translateY(140px) rotate(-8deg) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cine-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes cine-screen { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes cine-sweep { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
@keyframes cine-breathe { 0%, 100% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes cine-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cine-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 600px) {
    .cine { min-height: calc(100svh - 96px); }
    .cine-stage { height: 270px; }
    .cine-device { width: 126px; height: 258px; border-radius: 30px; padding: 5px; }
    .cine-screen { border-radius: 25px; }
    .cine-title { font-size: clamp(32px, 9vw, 44px); }
    .cine-island { width: 70px; height: 21px; margin-top: 10px; }
    .cine-time { top: 40px; font-size: 38px; }
    .cine-glow { width: 300px; height: 300px; }
    .cine-actions .btn { min-height: 42px; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .cine *, .cine *::before, .cine *::after { animation: none !important; }
}

/* ---- The gold threads behind the hero (gold-shader.js, 2026-10-21) ---- */
.hero-gl { position: relative; isolation: isolate; }
.gold-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.gold-gl[hidden] { display: none; }

/* ---- The liquid glass button (from the owner's LiquidButton, in plain CSS) ---- */
.glass-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.btn-glass {
    position: relative;
    isolation: isolate;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(230, 200, 119, 0.28);
    padding: 0 26px;
    box-shadow:
        0 0 8px rgba(0, 0, 0, 0.03),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
        inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
        inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
        inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
        inset 0 0 6px 6px rgba(251, 231, 166, 0.10),
        inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
        0 0 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-glass:hover { transform: scale(1.05); filter: none; }
.btn-glass-blur {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    overflow: hidden;
    backdrop-filter: blur(6px) saturate(1.2);
    -webkit-backdrop-filter: blur(6px) saturate(1.2);
    /* The ripple where the browser can (Chrome, Edge); a plain frosted glass elsewhere */
    backdrop-filter: url("#liquidGlass");
}
.btn-glass-text { position: relative; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .btn-glass:hover { transform: none; }
}
/* The petals stay, quieter, so the threads and they do not crowd each other */
.hero-gl .hero-art { opacity: 0.55; }
