:root {
    --bg: #0f0f0f;
    --bg-2: #181818;
    --surface: #212121;
    --surface-2: #272727;
    --border: #303030;
    --text: #f1f1f1;
    --text-dim: #aaaaaa;
    --red: #ff0000;
    --red-2: #cc0000;
    --radius: 14px;
    --maxw: 1280px;
    --nav-h: 64px;
    font-synthesis: none;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(15,15,15,0);
    transition: background .25s ease, border-color .25s ease;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(15,15,15,.92);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border);
}
.nav__inner {
    width: 100%; max-width: var(--maxw); margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand__mark {
    background: var(--red); color: #fff;
    font-weight: 900; letter-spacing: -1px;
    padding: 4px 8px; border-radius: 6px;
    font-size: 18px; line-height: 1;
}
.brand__txt { font-size: 13px; color: var(--text-dim); font-weight: 500; letter-spacing: .5px; }
.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a { font-size: 15px; color: var(--text-dim); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__links + .nav__actions { margin-left: 0; }

.lang {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-dim); border-radius: 999px;
    padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
    display: flex; gap: 6px; align-items: center; transition: border-color .2s;
}
.lang:hover { border-color: var(--red); }
.lang__opt { transition: color .2s; }
.lang__opt.is-active { color: var(--red); }
.lang__sep { color: var(--border); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: var(--nav-h) 24px 60px;
    overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255,0,0,.12), transparent 55%),
        linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
}
.hero__overlay {
    position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(90% 70% at 50% 50%, transparent 0%, rgba(15,15,15,.55) 75%, rgba(15,15,15,.9) 100%),
        linear-gradient(180deg, rgba(15,15,15,.45) 0%, rgba(15,15,15,.2) 40%, rgba(15,15,15,.95) 100%);
}
.hero__content { position: relative; z-index: 3; max-width: 820px; }
.hero__eyebrow {
    text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 700;
    color: var(--red); margin-bottom: 18px;
}
.hero__title {
    font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.05;
    letter-spacing: -1.5px; margin-bottom: 22px;
}
.hero__text { font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--text-dim); max-width: 620px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
    cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-2); }
.btn--ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--text-dim); }
.btn--lg { padding: 16px 34px; font-size: 17px; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero__scroll span {
    display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--red); border-radius: 2px; animation: scroll 1.6s infinite;
}
@keyframes scroll { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.work { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.work__head { margin-bottom: 28px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -1px; }
.section__sub { color: var(--text-dim); margin-top: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
    background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
    padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all .18s ease; white-space: nowrap;
}
.filter:hover { color: var(--text); border-color: var(--text-dim); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.filter__count { opacity: .65; font-size: 12px; margin-left: 6px; }

.cat { margin-bottom: 64px; scroll-margin-top: 90px; }
.cat__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.cat__title { font-size: 1.5rem; font-weight: 700; }
.cat__bar { flex: 1; height: 1px; background: var(--border); }
.cat__count { color: var(--text-dim); font-size: 14px; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.grid.grid--short { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; transition: transform .2s ease, border-color .2s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: #444; }
.card__media { position: relative; background: #000; overflow: hidden; }
.card__media.is-landscape { aspect-ratio: 16 / 9; }
.card__media.is-short { aspect-ratio: 9 / 16; }
.card__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__thumb { transform: scale(1.05); }
.card__play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45));
    opacity: 1; transition: background .2s;
}
.card__play::before {
    content: ""; width: 56px; height: 56px; border-radius: 50%;
    background: var(--red); position: relative; transition: transform .2s, background .2s;
    box-shadow: 0 6px 22px rgba(255,0,0,.4);
}
.card__play::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid; border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}
.card:hover .card__play::before { transform: scale(1.08); background: var(--red-2); }
.badge--short {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: rgba(15,15,15,.85); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 9px; border-radius: 6px; letter-spacing: .5px; text-transform: uppercase;
}
.card__body { padding: 14px 16px 16px; }
.card__title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
    font-size: 11px; color: var(--text-dim); background: var(--surface-2);
    border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px;
}

.empty { text-align: center; color: var(--text-dim); padding: 40px 0; }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about__inner { max-width: 900px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.about__text { color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.2rem); margin: 22px auto 0; max-width: 720px; }
.about__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin-top: 48px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--red); line-height: 1; }
.stat__lbl { color: var(--text-dim); font-size: 14px; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact__inner { max-width: 720px; margin: 0 auto; padding: 100px 24px; text-align: center; }
.contact__text { color: var(--text-dim); font-size: 1.15rem; margin: 16px 0 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 30px 24px;
    display: flex; align-items: center; gap: 16px; color: var(--text-dim); font-size: 14px;
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); backdrop-filter: blur(6px); }
.lightbox__dialog { position: relative; z-index: 1; width: 100%; max-width: 980px; }
.lightbox__dialog.is-short { max-width: 420px; }
.lightbox__close {
    position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff;
    font-size: 36px; line-height: 1; cursor: pointer; opacity: .8;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.lightbox__dialog.is-short .lightbox__frame { aspect-ratio: 9 / 16; }
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__caption { color: var(--text-dim); text-align: center; margin-top: 14px; font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .nav__links {
        position: fixed; inset: var(--nav-h) 0 auto 0;
        background: rgba(15,15,15,.98); flex-direction: column; gap: 0;
        padding: 8px 24px 20px; border-bottom: 1px solid var(--border);
        transform: translateY(-120%); transition: transform .28s ease; margin-left: 0;
    }
    .nav__links.is-open { transform: none; }
    .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
    .burger { display: flex; }
    .grid.grid--short { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .about__stats { gap: 30px; }
}
