/* ============================================================
   CINEARTH — Aerial Cinematic Specialists
   Cinematic minimal redesign
   Signature: letterbox reveal — the page opens like a film.
   ============================================================ */

:root {
    --bar-height: clamp(20px, 3.2vh, 34px);
    --ink: #040404;
    --white: #fafaf8;
    --white-70: rgba(250, 250, 248, 0.7);
    --white-45: rgba(250, 250, 248, 0.45);
    --hairline: rgba(250, 250, 248, 0.28);
    --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   Letterbox bars — the opening title moment.
   Two bars sweep back from centre to a slim 2.39:1-style frame.
   ------------------------------------------------------------ */
body::before,
body::after {
    content: '';
    position: fixed;
    left: 0;
    width: 100%;
    height: var(--bar-height);
    background: var(--ink);
    z-index: 20;
    pointer-events: none;
}

body::before {
    top: 0;
    animation: barTop 1.6s var(--ease-cinema) both;
}

body::after {
    bottom: 0;
    animation: barBottom 1.6s var(--ease-cinema) both;
}

@keyframes barTop {
    from { height: 50vh; }
    to   { height: var(--bar-height); }
}

@keyframes barBottom {
    from { height: 50vh; }
    to   { height: var(--bar-height); }
}

/* Video Background */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: reelIn 2.4s var(--ease-cinema) both;
}

@keyframes reelIn {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

/* ------------------------------------------------------------
   Overlay — a grade, not a wash.
   Vignette + bottom lift for legibility + faint film grain.
   ------------------------------------------------------------ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background:
        radial-gradient(ellipse 120% 90% at 50% 40%, transparent 45%, rgba(4, 4, 4, 0.55) 100%),
        linear-gradient(to top, rgba(4, 4, 4, 0.72) 0%, rgba(4, 4, 4, 0.25) 22%, transparent 45%),
        linear-gradient(to bottom, rgba(4, 4, 4, 0.35) 0%, transparent 18%);
}

.overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
header {
    position: fixed;
    top: var(--bar-height);
    left: 0;
    width: 100%;
    padding: 1.75rem 2rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeDown 1.2s var(--ease-cinema) 1.2s both;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header-logo {
    height: 1.75rem;
    width: auto;
    opacity: 0.95;
}

.contact-btn {
    font-family: inherit;
    background: transparent;
    color: var(--white);
    padding: 0.65rem 1.75rem;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-indent: 0.28em; /* optically recentre tracked caps */
    border: 1px solid var(--hairline);
    border-radius: 9999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.4s var(--ease-cinema),
                color 0.4s var(--ease-cinema),
                border-color 0.4s var(--ease-cinema);
}

.contact-btn:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.contact-btn:focus-visible,
.mute-btn:focus-visible {
    outline: 1px solid var(--white);
    outline-offset: 3px;
}

/* ------------------------------------------------------------
   Main content — the title card
   ------------------------------------------------------------ */
main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 23rem; /* clears the testimonial at mobile wrap widths */
    z-index: 8;
    pointer-events: none;
}

.content-wrapper {
    text-align: center;
    max-width: 52rem;
    padding: 0 2rem;
    animation: fadeUp 1.4s var(--ease-cinema) 0.9s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hairline above the tagline — a quiet title-card rule */
.content-wrapper::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--hairline);
    margin: 0 auto 1.5rem;
}

.tagline {
    font-family: 'Marcellus', 'Inter', serif;
    color: var(--white);
    font-size: clamp(1.05rem, 2.4vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.42em;
    text-indent: 0.42em; /* optically recentre tracked caps */
    line-height: 1.7;
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------
   Mute button — glass pill, sits above the bottom bar
   ------------------------------------------------------------ */
.mute-btn {
    position: fixed;
    bottom: calc(var(--bar-height) + 1.5rem);
    right: 2rem;
    font-family: inherit;
    background: rgba(250, 250, 248, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    border: 1px solid var(--hairline);
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.4s var(--ease-cinema),
                border-color 0.4s var(--ease-cinema);
    z-index: 10;
    animation: fadeUp 1.2s var(--ease-cinema) 1.5s both;
}

.mute-btn:hover {
    background: rgba(250, 250, 248, 0.16);
    border-color: rgba(250, 250, 248, 0.5);
}

.icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.9;
}

.hidden {
    display: none;
}

/* ------------------------------------------------------------
   Testimonial — end credit, not a slab.
   Gradient lightened so the reel reads through it.
   ------------------------------------------------------------ */
.testimonial {
    position: fixed;
    bottom: var(--bar-height);
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem 2.25rem;
    text-align: center;
    z-index: 9;
    animation: fadeUp 1.4s var(--ease-cinema) 1.3s both;
}

.testimonial-text {
    color: var(--white-70);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    font-style: italic;
    max-width: 44rem;
    margin: 0 auto 1.25rem;
    text-wrap: balance;
}

.testimonial-author {
    color: var(--white);
    font-size: 0.8125rem;
}

/* Hairline between quote and credit */
.testimonial-author::before {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1px;
    background: var(--hairline);
    margin: 0 auto 0.9rem;
}

.author-name {
    font-family: 'Marcellus', 'Inter', serif;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.author-title {
    color: var(--white-45);
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (min-width: 768px) {
    header {
        padding: 2rem 3rem;
    }

    .header-logo {
        height: 2.25rem;
    }

    .mute-btn {
        right: 3rem;
    }

    main {
        padding-bottom: 19rem; /* quote wraps to ~4 lines at this width */
    }
}

/* Short viewports — tighten the whole lower stack */
@media (max-height: 640px) {
    main {
        padding-bottom: 15.5rem;
    }

    .testimonial {
        padding: 1.5rem 2rem 1.25rem;
    }

    .testimonial-text {
        font-size: 0.8125rem;
        line-height: 1.6;
        margin-bottom: 0.9rem;
    }

    .content-wrapper::before {
        margin-bottom: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tagline {
        letter-spacing: 0.28em;
        text-indent: 0.28em;
    }

    .testimonial-text {
        font-size: 0.875rem;
    }

    .contact-btn {
        padding: 0.55rem 1.25rem;
    }
}

/* ------------------------------------------------------------
   Reduced motion — everything lands instantly
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    #bgVideo,
    header,
    .content-wrapper,
    .mute-btn,
    .testimonial {
        animation: none;
    }
}