:root {
    --bg: #0A0A0C;
    --bg-alt: #111114;
    --ink: #F5F3EE;
    --ink-dim: rgba(245, 243, 238, 0.62);
    --accent: #C9A461;
    --accent-dim: rgba(201, 164, 97, 0.4);
    --accent-green: #4CAF7D;
    --line: rgba(245, 243, 238, 0.12);
    --nav-h: 76px;
    --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html.is-locked,
body.is-locked {
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    background: var(--bg);
    width: 100vw;
    font-family: 'Arial Black', sans-serif;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

#hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

#flipbook {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flipbook canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.16) saturate(1.28) brightness(1.03);
    transform-origin: 50% 50%;
    transition: none;
    will-change: transform;
}

/* Cinematic vignette */
#vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 45%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* Film grain */
#grain {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 6;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    animation: grainShift 0.4s steps(4) infinite;
}

@keyframes grainShift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-2%, 1%);
    }

    50% {
        transform: translate(1%, -2%);
    }

    75% {
        transform: translate(-1%, -1%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Letterbox bars for the climax + reveal */
#letterbox-top,
#letterbox-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0;
    background: #000;
    z-index: 8;
    pointer-events: none;
    transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

#letterbox-top {
    top: 0;
}

#letterbox-bottom {
    bottom: 0;
}

#letterbox-top.active,
#letterbox-bottom.active {
    height: 9vh;
}

#logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #15161B;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    z-index: 10;
}

#logo-overlay img {
    max-width: 80%;
    max-height: 70vh;
    object-fit: contain;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

#logo-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#logo-overlay.active img {
    transform: scale(1);
    opacity: 1;
}

#flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.08s ease;
}

#flash.active {
    opacity: 1;
}

#credit {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 15;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

#credit.show {
    opacity: 1;
}

#skip {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 20;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    transition: 0.3s;
    pointer-events: none;
    opacity: 0;
}

#skip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

#skip.show {
    pointer-events: auto;
    opacity: 1;
}

/* ===== Scroll cue ===== */
#scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

#scroll-cue.show {
    opacity: 1;
}

#scroll-cue span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#scroll-cue svg {
    width: 22px;
    height: 22px;
    animation: cueBounce 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    #scroll-cue svg {
        animation: none;
    }
}

@keyframes cueBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.55;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ===== Site nav ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.site-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.site-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    width: 100%;
    max-width: 900px;
}

.site-nav__link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-dim);
    text-decoration: none;
    position: relative;
    padding: 6px 2px;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transition: right 0.3s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--ink);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
    right: 0;
}

.hamburger {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: var(--nav-h);
    height: var(--nav-h);
    z-index: 101;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hamburger.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 34px;
    letter-spacing: 1px;
    color: var(--ink);
    text-decoration: none;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
    color: var(--accent);
}

/* ===== Sections ===== */
.section {
    position: relative;
    padding: 140px 32px;
    background: var(--bg);
    scroll-margin-top: var(--nav-h);
    overflow: hidden;
}

.section--alt {
    background: var(--bg-alt);
}

.section__inner {
    max-width: 720px;
    margin: 0 auto;
    padding-left: 40px;
}

.section__eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section__heading {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.02;
    color: var(--ink);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.section__body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-dim);
    max-width: 58ch;
}

.section__body+.section__body {
    margin-top: 18px;
}

.section__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
    padding-bottom: 4px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.section__contact-link:hover,
.section__contact-link:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

.section__tagline {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: 0.5px;
    color: var(--accent);
}

.contact-details {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.contact-details .section__contact-link {
    margin-top: 0;
}

.section__inner--wide {
    max-width: 860px;
}

/* ===== Team profiles ===== */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
    margin-top: 40px;
}

.team-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.team-card__photo {
    flex: 0 0 auto;
    width: 200px;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(155deg, #1c1c20, #0c0c0e);
    border: 1px solid var(--line);
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card__info {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.team-card__name {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: 0.5px;
    color: var(--accent-green);
    line-height: 1.1;
}

.team-card__title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 6px;
}

.team-card__blurb {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-dim);
    margin-top: 10px;
    max-width: 46ch;
}

@media (max-width: 640px) {
    .team-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-card__photo {
        width: 130px;
        height: 130px;
    }
}

/* Signature element: a 35mm film-strip rail echoing the intro montage */
.film-rail {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 24px 0;
    opacity: 0.5;
}

.film-rail span {
    width: 10px;
    height: 14px;
    border-radius: 2px;
    background: var(--line);
}

@media (max-width: 640px) {
    .film-rail {
        display: none;
    }

    .section__inner {
        padding-left: 0;
    }
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    background: #000;
    border-top: 1px solid var(--line);
    padding: 28px 32px;
}

.site-footer__rail {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 24px;
    opacity: 0.4;
}

.site-footer__rail span {
    width: 10px;
    height: 14px;
    border-radius: 2px;
    background: var(--line);
}

.site-footer__row {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--ink-dim);
}

.site-footer__legal p {
    line-height: 1.7;
}

.site-footer__top {
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 30px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.site-footer__top:hover,
.site-footer__top:focus-visible {
    color: var(--accent);
    border-color: var(--accent-dim);
}

@media (max-width: 640px) {
    .site-nav__list {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 100px 24px;
    }

    .site-footer__row {
        flex-direction: column;
        align-items: flex-start;
    }
}