:root {
    --color-bg: #070708;
    --color-surface: #121214;
    --color-line: #2a2a2e;
    --color-text: #f3efe6;
    --color-muted: #9a958c;
    --color-accent: #d6ff3f;
    --color-accent-ink: #14160a;
    --font-display: "Syne", sans-serif;
    --font-body: "Manrope", sans-serif;
    --header-h: 64px;
    --pad: 20px;
}

@media (min-width: 768px) {
    :root { --pad: 40px; }
}

@media (min-width: 1100px) {
    :root { --pad: 64px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
    margin: 0;
    overflow-x: clip;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: var(--color-accent);
    color: var(--color-accent-ink);
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 80;
    padding: 10px 14px;
    background: var(--color-accent);
    color: var(--color-accent-ink);
    font-size: 14px;
}

.skip-link:focus { top: 16px; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 var(--pad);
}

.site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0;
    height: 148px;
    pointer-events: none;
    background: linear-gradient(180deg, rgb(7 7 8 / 84%) 0%, rgb(7 7 8 / 38%) 46%, rgb(7 7 8 / 0) 100%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 100%);
    transition: background 0.45s ease;
}

.site-header.is-scrolled::before {
    background: linear-gradient(180deg, rgb(7 7 8 / 94%) 0%, rgb(7 7 8 / 58%) 52%, rgb(7 7 8 / 0) 100%);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav a:hover { color: var(--color-accent); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible { color: var(--color-accent); }

@media (max-width: 799px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--pad) 18px;
        background: rgb(7 7 8 / 96%);
    }

    .site-header.is-open .site-nav { display: flex; }

    .site-nav a {
        font-size: 14px;
        letter-spacing: 0.12em;
    }
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--color-bg);
}

.hero__stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #070708;
}

.hero__wash {
    position: absolute;
    inset: -10% 0;
    background:
        radial-gradient(ellipse 42% 20% at 18% 6%, rgb(255 255 255 / 70%), transparent 68%),
        radial-gradient(ellipse 34% 16% at 62% 2%, rgb(190 190 190 / 55%), transparent 70%),
        radial-gradient(ellipse 22% 12% at 86% 12%, rgb(255 255 255 / 40%), transparent 72%),
        radial-gradient(ellipse 60% 18% at 30% 98%, rgb(255 255 255 / 48%), transparent 70%),
        radial-gradient(ellipse 36% 14% at 78% 100%, rgb(140 140 140 / 50%), transparent 72%),
        linear-gradient(180deg, #070708 0%, #141414 18%, #8a8a8a 32%, #f2f2f2 44%, #f7f7f7 58%, #bdbdbd 70%, #2a2a2a 84%, #070708 100%);
}

.hero__grain {
    position: absolute;
    inset: -20%;
    opacity: 0.35;
    mix-blend-mode: multiply;
    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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero__veil {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__veil--top {
    top: 0;
    height: 24vh;
    background: linear-gradient(180deg, rgb(7 7 8 / 78%) 0%, rgb(7 7 8 / 28%) 42%, rgb(7 7 8 / 0) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%);
}

.hero__veil--bottom {
    bottom: 0;
    height: 30vh;
    background: linear-gradient(0deg, #070708 0%, rgb(7 7 8 / 62%) 36%, rgb(7 7 8 / 0) 100%);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 20%, transparent 100%);
    mask-image: linear-gradient(0deg, #000 0%, #000 20%, transparent 100%);
}

.intro {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.intro__half {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
}

.intro__half--left { left: 0; transform: translateX(-105%); }
.intro__half--right { right: 0; transform: translateX(105%); }

html.is-reveal .intro__half--left,
html.is-reveal .intro__half--right { transform: none; }

.intro__media {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100vw;
    max-width: none;
    transform-origin: center center;
}

.intro__half--left .intro__media { left: 0; }
.intro__half--right .intro__media { right: 0; }

.intro__slash {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
    z-index: 5;
    width: 2px;
    background: var(--color-accent);
    box-shadow: 0 0 22px rgb(214 255 63 / 80%);
    transform: scaleY(0);
    transform-origin: center center;
}

.hero.is-open .intro { display: none; }

html.is-reveal .hero__line,
html.is-reveal .hero__ig,
html.is-reveal .hero__down { visibility: hidden; }

html.is-reveal.is-playing .hero__line,
html.is-reveal.is-playing .hero__ig,
html.is-reveal.is-playing .hero__down { visibility: visible; }

.hero__mark {
    position: relative;
    z-index: 2;
    padding: 0 var(--pad);
    color: #111111;
    text-align: center;
    perspective: 900px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: "Unbounded", var(--font-display), sans-serif;
    font-size: clamp(2.15rem, 8.4vw, 7.6rem);
    font-weight: 800;
    line-height: 0.84;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.hero__line {
    display: block;
    transform-origin: center center;
}

.hero__char {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.hero__char span {
    display: inline-block;
    will-change: transform;
}

.hero__line--a {
    margin-bottom: 0.16em;
    font-size: 0.3em;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero__ig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__ig svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero__check { color: #1d9bf0; }

.hero__ig:hover { color: var(--color-accent); }

.hero__down {
    position: absolute;
    z-index: 2;
    right: var(--pad);
    bottom: 18%;
    color: #111111;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero__down::before {
    content: "";
    display: block;
    width: 1px;
    height: 56px;
    margin: 0 0 12px auto;
    background: var(--color-accent);
}

.client-list {
    display: grid;
    gap: 4px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.client-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 8px 0;
}

.client-card__photo {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #4a4a4a, #141414 62%);
    color: var(--color-text);
    font-family: "Unbounded", var(--font-display), sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.client-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-card__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.client-card__name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.client-card__handle {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
}

.client-list a:hover .client-card__name,
.client-list a:focus-visible .client-card__name { color: var(--color-accent); }

.client-list a:hover .client-card__photo::after,
.client-list a:focus-visible .client-card__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px var(--color-accent);
    pointer-events: none;
}

.folio,
.contact {
    padding: 0 var(--pad);
    scroll-margin-top: 72px;
    overflow-x: clip;
}

.folio {
    position: relative;
    padding-top: 14vh;
    padding-bottom: 8vh;
    perspective: 1100px;
}

#trabajos::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18vh;
    background: linear-gradient(180deg, rgb(7 7 8 / 0) 0%, rgb(7 7 8 / 55%) 48%, #070708 100%);
    pointer-events: none;
}

.folio--visuales { padding-top: 6vh; padding-bottom: 12vh; }

.folio__head {
    display: grid;
    gap: 18px;
    align-items: end;
    margin-bottom: 28px;
}

.folio__title {
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 10vw, 7.4rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    transform-origin: 50% 100%;
}

.folio__head .folio__title { margin-bottom: 0; }

.folio__lede {
    max-width: 22em;
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.5;
}

.feature {
    display: grid;
    margin-bottom: 8px;
    color: inherit;
}

.feature__frame,
.piece__frame {
    overflow: hidden;
    background: var(--color-surface);
}

.feature__frame { aspect-ratio: 4 / 5; }
.feature__frame--story { aspect-ratio: 9 / 16; }
.feature__frame--feed { aspect-ratio: 4 / 5; }
.feature__frame--square { aspect-ratio: 1 / 1; }

.piece__frame--story { aspect-ratio: 9 / 16; }
.piece__frame--feed { aspect-ratio: 4 / 5; }
.piece__frame--square { aspect-ratio: 1 / 1; }
.piece__frame--wide { aspect-ratio: 2 / 1; }

.piece__pan {
    height: 100%;
}

.piece__pan img,
.piece__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    transform: scale(1.01);
    transition: transform 0.7s ease;
}

.feature:hover img,
.piece:hover img,
.piece:hover video,
.feature:focus-visible img,
.piece:focus-visible img,
.piece:focus-visible video { transform: scale(1.045); }

.feature__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 0 8px;
}

.feature__kicker {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.feature__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.feature:hover .feature__title { color: var(--color-accent); }

.band { margin-top: 42px; }

.band__label {
    margin: 0 0 16px;
    padding-top: 14px;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.band__grid {
    display: grid;
    gap: 28px 14px;
}

.piece {
    display: block;
    color: inherit;
}

.piece__title {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.piece:hover .piece__title { color: var(--color-accent); }

.piece__group {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reel { position: relative; }

.reel__scroller {
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
}

.reel__scroller::-webkit-scrollbar { display: none; }

.reel__list {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 18px 10vw 8px;
}

.reel__card {
    flex: 0 0 220px;
    transform: scale(0.9);
    transform-origin: center center;
    transition: transform 0.35s ease;
}

.reel--visual .reel__card { flex-basis: min(78vw, 720px); }

.reel__card.is-center { transform: scale(1.04); }

.reel--flat .reel__card {
    flex-basis: 180px;
    transform: none;
}

.reel__nav {
    position: absolute;
    top: 40%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgb(7 7 8 / 78%);
    color: var(--color-text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

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

.reel__nav--prev { left: 8px; }
.reel__nav--next { right: 8px; }

@media (prefers-reduced-motion: reduce) {
    .reel__card { transition: none; }
}

.works__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
}

.works__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.works__head p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.contact { padding-bottom: 8vh; }

.contact__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-line);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-align: center;
}

.contact__link span {
    flex: 0 0 auto;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.contact__link:hover { color: var(--color-accent); }
.contact__link:hover span { color: var(--color-text); }

.site-footer {
    padding: 8px var(--pad) 28px;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer .site-credit {
    margin-top: 8px;
    color: #5e5b56;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
}

.site-credit a { color: #9aa8bd; }
.site-credit a span { color: #67e8f9; }
.site-credit a:hover { color: #c5d0de; }
.site-credit a:hover span { color: #67e8f9; }

.dock {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    background: var(--color-accent);
    color: var(--color-accent-ink);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dock:hover { filter: brightness(1.05); }

@media (min-width: 800px) {
    .folio__head {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
        margin-bottom: 36px;
    }

    .folio__lede { justify-self: end; text-align: right; }

    .feature {
        grid-template-columns: 1.35fr 0.7fr;
        align-items: stretch;
        margin-bottom: 18px;
    }

    .feature__copy {
        justify-content: center;
        padding: 28px 8px 28px 40px;
        border-left: 1px solid var(--color-line);
    }

    .band--trio .band__grid { grid-template-columns: repeat(3, 1fr); }
    .band--pair .band__grid { grid-template-columns: repeat(2, 1fr); }

    #trabajos .band--trio .band__grid {
        grid-template-columns: repeat(3, minmax(0, 300px));
        justify-content: start;
    }

    #trabajos .band--pair .band__grid {
        grid-template-columns: repeat(2, minmax(0, 250px));
        justify-content: start;
    }

    #trabajos .feature__frame { max-width: 480px; }

    .client-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px 16px;
    }

    .dock { display: none; }

    @media (min-width: 1100px) {
        .client-list { grid-template-columns: repeat(7, 1fr); }

        .client-list a {
            flex-direction: column;
            align-items: center;
            gap: 12px;
            min-height: 0;
            padding: 8px 2px 0;
            text-align: center;
        }

        .client-card__photo {
            flex-basis: 96px;
            width: 96px;
            height: 96px;
            font-size: 15px;
        }
    }

    .site-footer { padding-bottom: 48px; }
}

@media (max-width: 799px) {
    .hero__down { bottom: 112px; }
    .site-footer { padding-bottom: 96px; }

    #trabajos .feature__frame { width: min(100%, 250px); }

    #trabajos .band__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }
}

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

    .hero__grain,
    .intro { display: none; }

    .piece__pan img,
    .piece__video,
    .site-header { transition: none; }
}
