@font-face {
    font-family: 'SquidBoy';
    src: url('../assets/fonts/SquidBoy-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Acumin';
    src: url('../assets/fonts/AcuminVariableConcept.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --black:    #0a0a0a;
    --white:    #ffffff;
    --border:   1px solid rgba(255, 255, 255, 0.22);
    --ff-disp:  'SquidBoy', sans-serif;
    --ff-mono:  'Acumin', sans-serif;
    --peek:     15vw;
    --gap:      8px;
    --z-loading: 9999;
}

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

html {
    scroll-behavior: smooth;
    overflow: auto;
    overscroll-behavior-x: none;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--ff-mono);
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body.loading-active {
    overflow: hidden !important;
}

html.intro-seen #loadingScreen {
    display: none !important;
}

#loadingScreen {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: var(--z-loading);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#loadingScreen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loadingFrame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 24vw, 800px);
    aspect-ratio: 1440 / 418;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    overflow: hidden;
    will-change: transform, width, height;
    transition:
        width 2.5s cubic-bezier(0.76, 0, 0.24, 1),
        height 2.5s cubic-bezier(0.76, 0, 0.24, 1),
        transform 2.5s cubic-bezier(0.76, 0, 0.24, 1);
}

#flipbookWindow {
    position: absolute;
    top: 3%;
    left: 50%;
    width: 49%;
    height: 92%;
    overflow: hidden;
    z-index: 5;
}

#flipbookFrame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#loadingFrame.active #flipbookFrame {
    opacity: 1;
}

#loadingLogoMask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    #loadingFrame {
        width: 90vw;
        aspect-ratio: 1440 / 418;
    }
}

.meta-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 24px;
    background: #0a0a0a;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 clamp(16px, 13vw, 320px);
}

.meta-bar > span:nth-child(1) { justify-self: start; }
.meta-bar > span:nth-child(2) { justify-self: center; }
.meta-bar > span:nth-child(3) { justify-self: end; }

.meta-bar__brand, .meta-bar__center {
    font-family: var(--ff-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.hero-nav {
    position: fixed;
    top: 24px; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--peek) + 24px);
    pointer-events: none;
    mix-blend-mode: screen;
}


.hero-nav .logo, .hero-nav .nav-links, .hero-nav .phone-nav { pointer-events: all; }

.logo {
    display: flex;
    align-items: center;
    margin-top: 5px;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    margin-left: 0;
}

.nav-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 1) 0%,
        rgba(10, 10, 10, 0.85) 20%,
        rgba(10, 10, 10, 0.6) 40%,
        rgba(10, 10, 10, 0.35) 60%,
        rgba(10, 10, 10, 0.15) 80%,
        rgba(10, 10, 10, 0) 100%
    );
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-gradient.nav-bg {
    opacity: 1;
}

.logo img {
    height: clamp(22px, 3.5vw, 45px);
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo img.logo-vertical { display: none; }
.logo:hover img { opacity: 1; }

.nav-links {
    display: flex;
    align-items: stretch;
    margin-top: 2px;
    background-image: url('https://res.cloudinary.com/dwgscyq8g/image/upload/f_auto,q_auto:best/v1776865763/fiftyfoot/ui/buttons.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: clamp(58px, 8vw, 65px);
    width: clamp(185px, 17vw, 240px);
    border: none;
    border-radius: 0;
    overflow: visible;
    padding-bottom: 0px;
}

.nav-links a {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 0 0 7% 0;
    background: transparent;
    font-family: var(--ff-disp);
    font-size: clamp(13px, 1.3vw, 18px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:nth-child(2) { transform: translateX(3px); }
.nav-links a:nth-child(3) { transform: translateX(-5px); }
.nav-links a:hover { opacity: 0.6; }
.nav-links a:last-child { border-right: none; }

.nav-toggle { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    padding: 9px;
    border: var(--border);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%; height: 1px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-label { display: none; }
.nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hero {
    position: relative;
    height: calc(100vh - 24px);
    min-height: 380px;
    overflow: hidden;
    background: var(--black);
    touch-action: pan-y pan-x;
}

.reel-track {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    display: flex;
    align-items: stretch;
    will-change: transform;
}

.reel-slide {
    flex-shrink: 0;
    width: calc(100vw - 2 * var(--peek) - 2 * var(--gap));
    margin: 0 var(--gap);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.reel-slide:first-child { margin-left:  calc(var(--peek) + var(--gap)); }
.reel-slide:last-child  { margin-right: calc(var(--peek) + var(--gap)); }

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.75) saturate(0.85);
    transform: scale(1.03);
    transition:
        filter    850ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 850ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reel-slide.active .slide-bg {
    filter: brightness(1) saturate(1);
    transform: scale(1);
}

.reel-slide:not(.active):hover .slide-bg {
    filter: brightness(0.9) saturate(1);
    transition: filter 0.4s ease;
}

.peek-zone {
    position: absolute;
    top: 0; bottom: 0;
    width: var(--peek);
    z-index: 20;
    cursor: pointer;
}
.peek-zone.left  { left: 0; }
.peek-zone.right { right: 0; }

.slide-counter {
    position: absolute;
    top: 14px;
    left: 50%; transform: translateX(-50%);
    font-family: var(--ff-mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    opacity: 0.42;
    pointer-events: none;
    z-index: 10;
    display: none;
}

.slide-sound {
    position: absolute;
    bottom: clamp(60px, 8vh, 90px);
    left: 0;
    padding: 8px 16px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.slide-sound:hover { opacity: 1; }

.slide-sound__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.slide-sound__icon {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.slide-sound__icon--off { display: none; }
.slide-sound.muted .slide-sound__icon--on  { display: none; }
.slide-sound.muted .slide-sound__icon--off { display: block; }

.slide-sound__bar {
    width: 55px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    position: relative;
    border-radius: 2px;
    padding: 5px 0;
    margin: -5px 0;
    box-sizing: content-box;
}

.slide-sound__fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--white);
    width: 0%;
    border-radius: 2px;
    pointer-events: none;
}

.film-nav-container {
    position: absolute;
    bottom: calc(24px + clamp(14px, 3.5vh, 42px));
    left: 50%; transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 10;
}

.film-arrow-btn {
    display: none;
}
.film-arrow-btn::before {
    content: '';
    display: block;
    width: 7px; height: 7px;
    border-top:  1px solid var(--white);
    border-left: 1px solid var(--white);
}
.film-arrow-btn.prev::before { transform: rotate(-45deg) translate(1px, 1px); }
.film-arrow-btn.next::before { transform: rotate(135deg) translate(1px, 1px); }

.scrub-area {
    height: 60px;
    width: auto;
    max-width: 720px;
    display: flex;
    align-items: center;
    user-select: none;
}

#slide-index {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    user-select: none;
    pointer-events: auto;
}
.si-group {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}
.si-num {
    display: block;
    height: 9px;
    width: auto;
    opacity: 0.9;
    transform: scaleX(1.1);
    transform-origin: center;
    transition: height 320ms cubic-bezier(.4,0,.2,1), opacity 320ms ease, transform 320ms ease;
}
.si-play {
    display: block;
    height: 6px;
    width: auto;
    opacity: 0.9;
    transition: height 320ms cubic-bezier(.4,0,.2,1), opacity 320ms ease;
}
.si-group.active .si-num {
    height: 34px;
    opacity: 1;
    transform: scaleX(1);
}
.si-group.active .si-play {
    height: 18px;
    opacity: 1;
}
.si-bars {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}
.si-bar {
    display: block;
    width: 2px;
    opacity: 0.9;
    transform-origin: center;
    transition: height 320ms cubic-bezier(.4,0,.2,1), opacity 320ms ease;
}

.hero.animating { pointer-events: none; }
.hero.animating .slide-sound { opacity: 0; pointer-events: none; }
.hero.teleporting .slide-bg,
.hero.teleporting .reel-track {
    transition: none !important;
}

.film-roll {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 24px;
    background: #0a0a0a;
    z-index: 200;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 clamp(16px, 13vw, 320px);
}

.film-roll > span:nth-child(1) { justify-self: start; }
.film-roll > span:nth-child(2) { justify-self: center; }
.film-roll > span:nth-child(3) { justify-self: end; }
.film-roll__arrow { font-size: 11px; color: rgba(255, 255, 255, 0.3); }

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: clamp(32px, 5vh, 64px) clamp(20px, 4vw, 80px);
    gap: 0;
}

.about__header {
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(5px, 0.6vh, 10px);
    margin-top: clamp(20px, 5vh, 100px);
    margin-bottom: clamp(-100px, -8vh, -40px);
}

.about__title {
    font-family: var(--ff-disp);
    font-size: clamp(28px, 4.5vw, 80px);
    letter-spacing: 0.35em;
    padding-left: 0.35em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--white);
}

.about__tagline {
    font-family: var(--ff-mono);
    font-size: clamp(8px, 0.7vw, 11px);
    letter-spacing: 1.1em;
    padding-left: 1.1em;
    text-transform: uppercase;
    color: var(--white);
}

.logo3d {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    cursor: grab;
}

.logo3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.about__statement {
    flex: 0 0 auto;
    max-width: 110ch;
    margin: 0 auto;
    margin-top: clamp(-140px, -11vh, -60px);
    padding-left: 0.55em;
    text-align: center;
    font-family: var(--ff-mono);
    font-size: clamp(11px, 0.95vw, 16px);
    letter-spacing: 0.55em;
    line-height: 2.4;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.work {
    padding: clamp(28px, 5vh, 80px) clamp(20px, 3.5vw, 80px);
}

.work__header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: clamp(20px, 4vh, 56px);
}

.work__heading {
    font-family: var(--ff-disp);
    font-size: clamp(22px, 3.5vw, 64px);
    letter-spacing: 0.12em;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.2vw, 40px) clamp(16px, 1.8vw, 32px);
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.work-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--ff-mono);
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.work-card__brand { text-align: left; }
.work-card__year  { text-align: right; }

.work-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.work-card__media img,
.work-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82) saturate(0.9);
    transform: scale(1.02);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.work-card:hover .work-card__media img,
.work-card:hover .work-card__media video {
    filter: brightness(1) saturate(1);
    transform: scale(1);
}

.work-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.work-card__index {
    text-align: left;
    opacity: 0.5;
}

.work-card__title {
    text-align: right;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
}

.work__footer {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px, 4vh, 56px);
}

.work__see-all {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.work__see-all:hover {
    color: var(--white);
}

.archive-main {
    padding: clamp(120px, 16vh, 180px) clamp(20px, 3.5vw, 60px) clamp(40px, 7vh, 80px);
    min-height: 100vh;
    background: var(--black);
}

.archive-main .work-grid {
    grid-template-columns: repeat(4, 1fr);
}

.archive-main .work__heading {
    font-size: clamp(16px, 2vw, 40px);
}

.team {
    display: flex;
    flex-direction: column;
    padding: clamp(60px, 8vw, 160px) 0 clamp(40px, 5vw, 100px) 0;
    background: var(--black);
}

.team-heading {
    font-family: var(--ff-disp);
    font-size: clamp(16px, 2vw, 42px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 100px);
    padding: 0 20px;
}

.slide-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.5vw, 40px);
    padding: clamp(20px, 4vw, 60px) clamp(24px, 6vw, 120px) clamp(40px, 6vw, 100px);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.slide-row {
    display: grid;
    gap: clamp(20px, 2.5vw, 48px);
    justify-items: center;
    align-items: start;
}

.slide-row--top { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 clamp(30px, 9vw, 180px); }
.slide-row--bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 clamp(6px, 2vw, 50px); }

.slide-card { max-width: clamp(180px, 22vw, 290px); }

.slide-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(4px, 1vw, 12px) clamp(10px, 3vw, 40px);
}

.slide-divider__line {
    display: block;
    height: 1px;
    background: #b83227;
    transform: translateX(-40%);
    width: 22%;
    min-width: 60px;
    justify-self: start;
}

.slide-divider__line--right {
    transform: translateX(40%);
    justify-self: end;
}

.slide-divider .team-heading {
    font-family: var(--ff-mono, 'Courier Prime', monospace);
    font-size: clamp(10px, 1.1vw, 14px);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    text-align: center;
}

.slide-card {
    --cardboard: #e8e1d0;
    --cardboard-shade: #c8bfa8;
    --rot: 0deg;
    position: relative;
    width: 100%;
    max-width: clamp(200px, 26vw, 320px);
    aspect-ratio: 1 / 1.08;
    padding: 14% 11% 16%;
    background:
        radial-gradient(ellipse 120% 90% at 30% 20%, #f1ead9 0%, var(--cardboard) 55%, var(--cardboard-shade) 100%);
    border-radius: clamp(6px, 1vw, 12px);
    box-shadow:
        0 14px 22px rgba(0, 0, 0, 0.55),
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(80, 60, 30, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: rotate(var(--rot));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    isolation: isolate;
    font-family: 'Courier Prime', 'Courier New', ui-monospace, monospace;
}

.slide-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    mix-blend-mode: multiply;
    opacity: 0.35;
    z-index: 2;
}

.slide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 82%, rgba(90, 60, 20, 0.18) 0, transparent 18%),
        radial-gradient(circle at 88% 22%, rgba(40, 20, 10, 0.12) 0, transparent 14%),
        linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.08) 100%);
    z-index: 3;
}

.slide-card:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.04);
    box-shadow:
        0 24px 40px rgba(0, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(80, 60, 30, 0.2);
    z-index: 10;
}

.slide-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.18;
    background: #b8352a;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.55),
        inset 0 3px 6px rgba(0, 0, 0, 0.65),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5),
        inset 4px 0 6px rgba(0, 0, 0, 0.35),
        inset -4px 0 6px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.slide-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: contrast(1.02) saturate(0.92);
}

.slide-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    font-size: clamp(14px, 2.6cqi, 22px);
    letter-spacing: 0.12em;
    line-height: 1.15;
    color: #f3e9d2;
    opacity: 0.85;
}

.slide-label {
    position: absolute;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: 700;
    font-size: clamp(8px, 1.1cqi, 11px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2a2419;
    z-index: 4;
    white-space: nowrap;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
}

.slide-label--name {
    left: 8%;
    bottom: 5.5%;
    transform: rotate(-0.6deg);
    max-width: 46%;
    white-space: normal;
    line-height: 1.15;
}

.slide-label--role {
    right: 8%;
    bottom: 5.5%;
    text-align: right;
    transform: rotate(0.8deg);
    max-width: 46%;
    white-space: normal;
    line-height: 1.15;
}

.slide-stamp {
    position: absolute;
    top: 4.5%;
    left: 8%;
    font-family: 'Courier Prime', monospace;
    font-size: clamp(7px, 0.95cqi, 10px);
    letter-spacing: 0.1em;
    color: #3d3423;
    opacity: 0.75;
    transform: rotate(-1.2deg);
    z-index: 4;
}

.slide-scribble {
    position: absolute;
    left: var(--sx, 50%);
    top: var(--sy, 8%);
    transform: rotate(var(--srot, -6deg));
    font-family: 'Caveat', 'Permanent Marker', cursive;
    font-weight: 700;
    font-size: clamp(16px, 3.4cqi, 28px);
    color: var(--ink, #1e3a8a);
    opacity: 0.82;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.08);
    mix-blend-mode: multiply;
}

.final-page {
    display: grid;
    grid-template-columns: minmax(200px, 30%) minmax(240px, 35%) 1fr;
    min-height: 100vh;
    background: var(--black);
}

.fp-left {
    display: block !important;
    padding: 6px;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.fp-left .fp-carousel:first-child,
.fp-left .fp-carousel:last-child {
    display: none !important;
}

.fp-left .fp-carousel:nth-child(2) {
    display: block !important;
    height: calc(100vh - 12px) !important;
}

.fp-carousel {
    position: relative;
    overflow: hidden;
    cursor: grab;
    background: #1a0a0a;
}
.fp-carousel:active { cursor: grabbing; }

.fp-carousel__track {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    will-change: transform;
}

.bts-slide {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.bts-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0.75) saturate(0.85);
    transition: filter 850ms;
}

.bts-slide.active img {
    filter: brightness(1) saturate(1);
}

.fp-woman {
    position: relative;
    overflow: visible;
    min-height: 100vh;
    background: var(--black);
    display: flex;
    align-items: flex-end;
}

.fp-woman img {
    position: relative;
    display: block;
    width: 108%;
    height: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

.fp-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 4vh, 64px);
    padding: 0 clamp(20px, 2.8vw, 70px);
}

.fp-info__title {
    font-family: var(--ff-disp);
    font-size: clamp(13px, 1.3vw, 32px);
    letter-spacing: 0.25em;
    margin-bottom: clamp(6px, 0.5vw, 12px);
}

.fp-info p {
    font-family: var(--ff-mono);
    font-size: clamp(9px, 0.75vw, 14px);
    line-height: 1.8;
    opacity: 0.6;
}

@media (max-width: 767px) {
    :root {
        --peek:         clamp(14px, 4vw, 28px);
        --gap:          0px;
        --bar-h:        clamp(22px, 4vh, 36px);   /* meta-bar / film-roll height */
        --index-h:      clamp(40px, 7vh, 64px);   /* index bar area */
    }

    #loadingFrame { width: 90vw; }

    .meta-bar,
    .film-roll {
        height: auto;
        padding: clamp(5px, 1.2vh, 10px) clamp(10px, 3vw, 20px);
    }

    .meta-bar__brand,
    .film-roll__arrow {
        font-size: clamp(6px, 1.6vw, 9px);
        letter-spacing: 0.15em;
    }

    .meta-bar__center { font-size: clamp(6px, 1.6vw, 9px); }

    .hero-nav {
        top: var(--bar-h);
        padding: clamp(10px, 3vw, 18px);
        z-index: 200;
    }

    .logo img.logo-horizontal { display: none !important; }

    .logo img.logo-vertical {
        display: block !important;
        height: clamp(56px, 16vw, 90px);
        width: auto;
        object-fit: cover;
        object-position: center 62%;
    }

    .hamburger,
    .nav-links {
        display: none !important;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(255, 255, 255, 0.08);
    }

    .hero {
        height: calc(100vh - var(--bar-h));
        height: calc(100svh - var(--bar-h));
        overflow: hidden;
        touch-action: pan-y;
    }

    .reel-track {
        top: 0;
        bottom: 0;
        align-items: flex-start;
    }

    .reel-slide {
        width: calc(100vw - 2 * var(--peek));
        height: calc(100% - var(--bar-h) - var(--index-h));
        max-height: none;
        margin: 0 var(--gap);
    }

    .reel-slide:first-child { margin-left: var(--peek); }
    .reel-slide:last-child  { margin-right: var(--peek); }

    .reel-slide.active .slide-bg {
        transform: none;
        filter: brightness(1);
    }

    .reel-slide:not(.active) .slide-bg {
        filter: brightness(0.4) saturate(0.6);
        transform: scale(0.97);
    }

    .film-arrow-btn { display: none; }
    .peek-zone { display: none; }
    .film-nav-container {
        display: flex;
        bottom: clamp(4px, 1vh, 12px);
        left: 50%;
        transform: translateX(-50%);
    }
    .slide-counter { display: none; }

    .si-num { height: clamp(4px, 0.7vh, 7px); }
    .si-play { height: clamp(3px, 0.6vh, 5px); }
    .si-group.active .si-num { height: clamp(16px, 3vh, 26px); }
    .si-group.active .si-play { height: clamp(9px, 1.7vh, 14px); }
    .si-bars { gap: clamp(10px, 2.5vw, 20px); }
    #slide-index { gap: clamp(8px, 2vw, 16px); }

    .about {
        padding: 80px 20px 40px;
        gap: 20px;
        justify-content: flex-start;
    }
    .about__header {
        margin-top: 0;
        margin-bottom: 0;
        gap: 8px;
    }
    .about__title {
        font-size: 26px;
        letter-spacing: 0.28em;
        padding-left: 0.28em;
    }
    .about__tagline {
        font-size: 8px;
        letter-spacing: 0.6em;
        padding-left: 0.6em;
    }
    .logo3d {
        height: 38vh;
        min-height: 200px;
        flex: 0 0 auto;
    }
    .about__statement {
        margin-top: 0;
        padding-left: 0.3em;
        max-width: 90%;
        font-size: 10px;
        letter-spacing: 0.3em;
        line-height: 2;
    }
    .work-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
    .archive-main .work-grid { grid-template-columns: repeat(2, 1fr); }

    .team { height: auto; padding: 100px 0; }
    .slide-grid { padding: 20px 18px 60px; gap: 28px; }
    .slide-row--top,
    .slide-row--bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        gap: 24px 14px;
    }
    .slide-divider { padding: 4px 8px; gap: 10px; }
    .slide-divider .team-heading { font-size: 10px; letter-spacing: 0.25em; white-space: normal; }
    .slide-card { max-width: clamp(130px, 42vw, 220px); }

    .final-page {
        grid-template-columns: 1fr;
        height: auto;
    }

    .fp-left { display: none !important; }
    .fp-left .fp-carousel:first-child,
    .fp-left .fp-carousel:last-child { display: block !important; }
    .fp-left .fp-carousel:nth-child(2) { height: auto !important; }

    .fp-woman {
        order: -1;
        min-height: 0;
        height: auto;
    }
    .fp-woman img {
        position: relative;
        width: 100%;
        height: auto;
        margin-left: 0;
        transform: none;
    }

    .fp-right {
        padding: 40px 24px 80px 24px;
        gap: 32px;
    }

    /* Phone nav */
    .phone-nav {
        position: relative;
        z-index: 300;
    }

    .phone-nav__btn {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        width: clamp(52px, 16vw, 72px);
        height: clamp(26px, 8vw, 36px);
        text-decoration: none;
        flex-shrink: 0;
    }

    .phone-nav__btn-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: fill;
        pointer-events: none;
    }

    .phone-nav__btn-label {
        position: relative;
        z-index: 1;
        color: var(--white);
        font-family: var(--ff-disp);
        font-size: clamp(7px, 2.2vw, 11px);
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }

    /* Items drop below the trigger without affecting nav layout */
    .phone-nav__items {
        position: absolute;
        top: calc(100% + clamp(3px, 1vw, 6px));
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: clamp(3px, 1vw, 6px);
        transform-origin: top center;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease;
    }

    .phone-nav.is-open .phone-nav__items {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .phone-nav__items .phone-nav__btn {
        transform-origin: top center;
        transition: opacity 0.2s ease;
    }
}

/* Hide phone-nav on desktop */
@media (min-width: 768px) {
    .phone-nav { display: none; }
    .phone-nav__overlay { display: none !important; } /* <--- MAGIA AQUI */
}

@media (min-width: 768px) and (max-width: 1279px) {
    :root { --peek: 15vw; }
    .reel-slide { width: calc(100vw - 2 * var(--peek) - 2 * var(--gap)); }
    .work-grid { grid-template-columns: repeat(3, 1fr); }
    .archive-main .work-grid { grid-template-columns: repeat(3, 1fr); }

    .about__header { margin-bottom: clamp(-70px, -6vh, -30px); }
    .about__statement {
        margin-top: clamp(-90px, -8vh, -40px);
        letter-spacing: 0.42em;
        padding-left: 0.42em;
    }
}

@media (min-width: 1280px) {
    :root { --peek: 15vw; }
}


@media (prefers-reduced-motion: reduce) {
    .grain-overlay, .reel-track, .slide-bg { animation: none; transition: none !important; }
    html { scroll-behavior: auto; }
}
