/* Cinematic hero: the poster stays visible while the film loads or cannot play. */
.cinematic-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(100px, 15.6dvh, 156px) 24px clamp(100px, 15dvh, 150px);
    overflow: hidden;
    color: #faf3e7;
    background: #211c19;
}
.hero-media, .hero-film, .hero-photo, .hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-media {
    z-index: -2;
}
.hero-film, .hero-photo { object-fit: cover; object-position: center; }
.hero-photo { opacity: 0; transition: opacity 2s ease-in-out; }
.hero-photo.is-visible { opacity: 1; }
.hero-film { z-index: 3; opacity: 0; transition: opacity 2s ease-in-out; }
.hero-film.is-ready { opacity: 1; }
.hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, rgba(17, 18, 21, .86), rgba(20, 19, 22, .63) 38%, rgba(20, 18, 20, .14) 72%),
        linear-gradient(0deg, rgba(18, 18, 22, .85), transparent 30%, transparent 75%, rgba(18, 18, 22, .4));
}
.hero-inner { width: 100%; max-width: 1232px; margin: 0 auto; }
.hero-copy { max-width: 650px; }
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .23em;
    text-transform: uppercase;
    color: #e1c798;
}
.hero-eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.hero-title {
    margin: 0 0 26px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(46px, 5.35vw, 78px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.045em;
    color: #faf3e7;
    text-wrap: balance;
}
.hero-title em { color: #e7c58e; font-weight: 400; }
.hero-description {
    max-width: 460px;
    margin-bottom: 34px;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 300;
    color: #e4ded5;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 17px 28px;
    border: 1px solid #dfbd81;
    border-radius: 4px;
    background: #e4c18a;
    color: #28211b;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}
.hero-create:hover { background: #f1d5a7; transform: translateY(-2px); }
.hero-how {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    color: #f4ebde;
    font-size: 13px;
    cursor: pointer;
}
.hero-how:hover { color: #e7c58e; }
.hero-how svg { width: 25px; height: 25px; }
.hero-reassurance { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 11px 22px; font-size: 11px; letter-spacing: .025em; color: #d1c8bd; }
.hero-reassurance span { display: inline-flex; align-items: center; gap: 7px; }
.hero-reassurance svg { width: 13px; height: 13px; color: #e7c58e; }
.hero-footer {
    position: absolute;
    bottom: 32px;
    left: 24px;
    right: 24px;
    max-width: 1232px;
    margin: 0 auto;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 241, 220, .2);
}
.hero-story { display: flex; align-items: center; gap: 30px; }
.hero-chapter { display: flex; align-items: center; gap: 9px; color: #c1b6a8; font-size: 11px; letter-spacing: .035em; transition: color .4s ease; }
.hero-chapter b { font-size: 9px; font-weight: 400; color: #ac9573; }
.hero-chapter.is-active { color: #fff3e0; }
.hero-footer-actions { display: flex; align-items: center; }
.hero-discover { display: inline-flex; align-items: center; gap: 11px; color: #e9dfd0; font-size: 11px; }
.cinematic-hero :focus-visible, #navbar :focus-visible { outline: 2px solid #e7c58e; outline-offset: 6px; }
#navbar:not(.nav-scrolled) .nav-brand { color: #faf3e7; }
#navbar:not(.nav-scrolled) .nav-links { color: #e5ded5; }
#navbar:not(.nav-scrolled) .nav-create { background: transparent; color: #f5e9d4; border: 1px solid rgba(240, 219, 185, .5); box-shadow: none; }
#navbar:not(.nav-scrolled) .nav-create:hover { background: rgba(240, 219, 185, .12); }
#navbar .nav-brand, #navbar .nav-links { transition: color .3s ease; }
@media (min-width: 1600px) { .hero-shade { background: linear-gradient(90deg, rgba(17, 18, 21, .85), rgba(20, 19, 22, .45) 50%, rgba(20, 18, 20, .1)), linear-gradient(0deg, rgba(18, 18, 22, .85), transparent 30%); } }
@media (max-width: 767px) {
    .cinematic-hero { align-items: end; padding: clamp(96px, 20dvh, 240px) 24px clamp(88px, 12dvh, 120px); }
    .hero-film, .hero-photo { object-position: 72% center; }
    .hero-shade { background: linear-gradient(0deg, rgba(18, 18, 22, .98) 6%, rgba(18, 18, 22, .85) 42%, rgba(18, 18, 22, .15) 78%, rgba(18, 18, 22, .5)); }
    .hero-eyebrow { font-size: 9px; letter-spacing: .17em; margin-bottom: 20px; gap: 10px; }
    .hero-title { font-size: clamp(40px, 10.6vw, 64px); margin-bottom: 20px; }
    .hero-description { font-size: 14px; line-height: 1.75; max-width: 390px; margin-bottom: 24px; }
    .hero-actions { gap: 18px; }
    .hero-create { padding: 15px 20px; font-size: 13px; gap: 14px; }
    .hero-how { font-size: 12px; }
    .hero-reassurance { margin-top: 23px; font-size: 10px; gap: 10px 16px; }
    .hero-footer { bottom: 24px; padding-top: 18px; align-items: center; gap: 10px; }
    .hero-story { gap: 15px; }
    .hero-chapter { font-size: 9px; gap: 5px; }
    .hero-discover { display: none; }
    .hero-footer-actions { gap: 0; }
    #navbar > div { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 359px) {
    .hero-story { gap: 10px; }
    .hero-chapter { font-size: 8px; }
    #navbar .nav-brand { font-size: 18px; letter-spacing: 0; }
    #navbar a:first-child > div { width: 28px; height: 28px; }
    #navbar .nav-create { padding: 8px 12px; font-size: 10px; }
}
@media (max-width: 767px) and (max-height: 700px) {
    .cinematic-hero { padding-top: 96px; padding-bottom: 84px; }
    .hero-eyebrow { margin-bottom: 14px; }
    .hero-title { font-size: clamp(32px, 10vw, 40px); margin-bottom: 16px; }
    .hero-description { font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
    .hero-actions { gap: 12px; }
    .hero-create { padding: 12px 16px; font-size: 12px; }
    .hero-reassurance { margin-top: 16px; }
    .hero-footer { bottom: 18px; padding-top: 14px; }
}
@media (min-width: 768px) and (max-height: 700px) {
    .cinematic-hero { padding-top: 104px; padding-bottom: 90px; }
    .hero-title { font-size: clamp(40px, 6.7dvh, 64px); }
    .hero-eyebrow { margin-bottom: 20px; }
    .hero-description { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .hero-film, .hero-photo, .hero-create, #navbar { transition: none; }
    #navbar svg { animation: none; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
