@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* Liquid glass */
.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.15) 80%,
        rgba(255, 255, 255, 0.45) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Hide default navbar until scroll past hero */
.navbar.navbar--on-hero {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.navbar.navbar--on-hero.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Cinematic hero */
.cinematic-hero {
    position: relative;
    min-height: 100vh;
    background: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cinematic-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.cinematic-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(17%);
    opacity: 0;
    will-change: opacity;
}

.cinematic-hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 50%),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 35%,
            rgba(0, 0, 0, 0.72) 100%
        );
    pointer-events: none;
}

.cinematic-hero-layout {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Nav */
.cinematic-nav {
    position: relative;
    z-index: 20;
    padding: 1.5rem;
}

.cinematic-nav-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cinematic-nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cinematic-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
}

.cinematic-nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cinematic-nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.cinematic-nav-links a:hover {
    color: #ffffff;
}

.cinematic-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cinematic-nav-text-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    transition: opacity 0.2s;
}

.cinematic-nav-text-btn:hover {
    opacity: 0.75;
}

.cinematic-nav-login {
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.cinematic-nav-login:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .cinematic-nav-links {
        display: flex;
    }
}

/* Hero content — editorial layout */
.cinematic-hero-content.hero-editorial {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0 1.5rem 2rem;
    text-align: left;
    transform: none;
}

.hero-editorial-inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: end;
}

@media (min-width: 900px) {
    .cinematic-hero-content.hero-editorial {
        padding: 0 2.5rem 2.5rem;
    }

    .hero-editorial-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 2.5rem;
    }
}

.hero-editorial-copy {
    max-width: 38rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.75rem, 9vw, 5.5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.15rem;
}

.hero-title em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.72);
}

.hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn svg {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn--primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.hero-btn--primary:hover {
    transform: translateY(-2px);
}

.hero-btn--primary:hover svg {
    transform: translateX(3px);
}

.hero-btn--ghost {
    color: rgba(255, 255, 255, 0.88);
    border: none;
}

.hero-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.hero-stats-float {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem;
    border-radius: 1.15rem;
    width: 100%;
}

@media (min-width: 900px) {
    .hero-stats-float {
        justify-self: end;
        max-width: 22rem;
    }
}

.hero-stat {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.hero-stat-divider {
    width: 1px;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 2rem auto 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-scroll-hint:hover {
    color: rgba(255, 255, 255, 0.75);
}

.hero-scroll-line {
    display: block;
    width: 1px;
    height: 2.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    animation: heroScrollPulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes heroScrollPulse {
    0% { top: -100%; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Hero entrance animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--hero-delay, 0s);
}

.hero-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-scroll-line::after {
        animation: none;
    }

    .hero-btn:hover {
        transform: none;
    }
}

.cinematic-social {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0 1.5rem 2rem;
}

@media (min-width: 900px) {
    .cinematic-social {
        position: absolute;
        right: 2rem;
        bottom: 2.5rem;
        padding: 0;
        flex-direction: column;
    }
}

.cinematic-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.cinematic-social-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
