/* === JARVIS.CSS === */
/* assets/css/jarvis.css (mozg, премиум/luxe) */
/* НАЗНАЧЕНИЕ: hero-секция с видео-роботом и scroll-scrubbing (промотка видео по скроллу) */
/* СВЯЗИ: views/partials/jarvis.php, assets/js/jarvis-scroll.js, luxe.css (переменные) */

/* Секция ~1.6 экрана - поворот робота за меньший скролл (быстрее) */
.jarvis-hero {
    position: relative;
    height: 160vh;
    background: var(--bg, #0e0d0b);
}

/* Sticky-контейнер: липнет к верху, пока скроллим внутри секции */
.jarvis-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Canvas с кадрами на весь экран */
.jarvis-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
    /* постер-заглушка пока кадры грузятся */
    background: #0e0d0b url(/assets/video/jarvis-poster.jpg) center/cover no-repeat;
}

/* Затемнение для читаемости текста (тёплое, под luxe) */
.jarvis-sticky::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(14,13,11,.92) 0%, rgba(14,13,11,.55) 38%, transparent 62%),
        linear-gradient(0deg, rgba(14,13,11,.85) 0%, transparent 28%);
    pointer-events: none;
}

/* Текст поверх видео */
.jarvis-content {
    position: relative;
    z-index: 3;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}
.jarvis-text { max-width: 620px; }

.jarvis-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line, rgba(201,168,97,.18));
    border-radius: 30px;
    padding: 8px 18px;
    margin-bottom: 24px;
    background: linear-gradient(120deg, var(--gold-soft, rgba(201,168,97,.12)), transparent);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--muted, #9b9282);
}
.jarvis-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #5ec26a; box-shadow: 0 0 8px #5ec26a; flex-shrink: 0;
    animation: jarvis-pulse 2s ease-in-out infinite;
}
@keyframes jarvis-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.jarvis-title {
    font-family: var(--serif, 'Cormorant Garamond', serif);
    font-size: clamp(48px, 6.5vw, 92px);
    font-weight: 600;
    line-height: 1.02;
    color: #f0ebe0;
    margin-bottom: 24px;
}
.jarvis-title em {
    font-style: italic;
    color: var(--gold, #c9a861);
}

.jarvis-lead {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.65;
    color: rgba(240,235,224,.72);
    max-width: 520px;
    margin-bottom: 36px;
}

.jarvis-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Подсказка "скролл" внизу */
.jarvis-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--serif, 'Cormorant Garamond', serif);
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(240,235,224,.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: jarvis-bob 2s ease-in-out infinite;
}
.jarvis-scroll-hint .ic { transform: rotate(90deg); }
@keyframes jarvis-bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,6px)} }

/* Адаптив */
@media (max-width: 768px) {
    .jarvis-content { padding: 0 22px; }
    .jarvis-sticky::before {
        background: linear-gradient(0deg, rgba(14,13,11,.92) 0%, rgba(14,13,11,.4) 46%, transparent 72%);
    }
    .jarvis-text { max-width: 100%; }
    .jarvis-title { font-size: clamp(38px, 11vw, 60px); }
}

@media (prefers-reduced-motion: reduce) {
    .jarvis-scroll-hint, .jarvis-badge .dot { animation: none; }
}
