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

html {
    scroll-behavior: auto;
    background: #050505;
}

body {
    background: transparent;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

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

:root {
    --teal: #00A19B;
    --ink: #102d2e;
    --paper: #f2f0ea;
}

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    z-index: 10000;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width .25s ease, height .25s ease;
}

.cursor.large {
    width: 75px;
    height: 75px;
}

@media (pointer: coarse) {
    .cursor {
        display: none;
    }
}

.top-nav { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex; 
    align-items: center; 
    padding: 0 50px; 
    height: 80px; 
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00A19B;
    z-index: 1000;
}

.logo { 
    color: #00A19B; 
    font-size: 1.5rem; 
    font-family: 'JetBrains Mono', monospace; 
    font-weight: bold; 
    text-decoration: none; 
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    position: absolute; 
    left: 50px; 
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

nav a { 
    color: #cccccc; 
    text-decoration: none; 
    font-size: 1.1rem; 
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.3s ease, text-shadow 0.3s ease; 
}

nav a:hover { 
    color: #ffffff;
    text-shadow: 0 0 10px #00A19B, 0 0 20px #00A19B; 
}

@media (max-width: 800px) {
    .top-nav { padding: 22px; }
    .nav-center { gap: 14px; }
    .nav-link { font-size: 8px; }
    .nav-right { display: none; }
}

.global-wallpaper {
    position: fixed;
    top: -20%; 
    left: 0;
    width: 100%; 
    height: 140vh;
    background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.8) 100%), url('img/f1-car.jpg');
    background-size: cover;
    background-position: center;
    z-index: -10;
    will-change: transform;
}

.projects-intro {
    position: relative;
    min-height: 46vh;
    padding: 20vh 8vw 4vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
}

.intro-label {
    margin-bottom: 22px;
    color: #8fa8aa;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.intro-title {
    color: #ffffff;
    font-size: clamp(5rem, 13vw, 13rem);
    line-height: .75;
    font-weight: 900;
    letter-spacing: -.095em;
}

.back-home {
    position: absolute;
    right: 8vw;
    bottom: 5vh;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 21px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    color: #ffffff;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    transition: background .35s ease, color .35s ease, transform .35s ease;
}

.back-home span {
    font-size: 15px;
    transition: transform .35s ease;
}

.back-home:hover {
    background: #ffffff;
    color: #050505;
    transform: translateY(-3px);
}

.back-home:hover span {
    transform: translate(3px,-3px);
}

.project-reel {
    position: relative;
    height: 560vh;
    background: transparent;
}

.project-stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    min-height: 650px;
    overflow: hidden;
    background: transparent;
    color: #ffffff;
    isolation: isolate;
}

.stage-top {
    position: absolute;
    left: 6vw;
    right: 6vw;
    top: 18px;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    color: currentColor;
    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .55;
}

.stage-bottom {
    position: absolute;
    left: 6vw;
    right: 6vw;
    bottom: 28px;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stage-line {
    width: 90px;
    height: 1px;
    background: currentColor;
    opacity: .45;
}

.stage-counter {
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .65;
}

.reel-project {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
}

.project-media {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.media-frame {
    position: relative;
    width: min(78vw, 1040px);
    height: min(70vh, 700px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 50px 100px rgba(0,0,0,.3);
    transform-origin: center center;
    will-change: transform, border-radius;
}

.media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.25));
    pointer-events: none;
}

.media-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    will-change: transform;
}

.mask-organic { border-radius: 55% 45% 38% 62% / 38% 55% 45% 62%; }
.mask-circle { width: min(62vw, 760px); height: min(72vh, 760px); border-radius: 50%; }
.mask-soft { border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%; }
.mask-circle-wide { width: min(70vw, 900px); height: min(65vh, 650px); border-radius: 50%; }

.project-copy {
    position: absolute;
    left: 8vw;
    right: 8vw;
    bottom: 9vh;
    z-index: 20;
    max-width: 800px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
    pointer-events: none;
}

.project-category {
    margin-bottom: 20px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .7;
}

.project-title {
    font-size: clamp(4rem, 8vw, 9rem);
    line-height: .78;
    font-weight: 800;
    letter-spacing: -.08em;
}

.project-title span {
    color: var(--teal);
}

.project-description {
    max-width: 520px;
    margin-top: 28px;
    font-size: 13px;
    line-height: 1.75;
    opacity: .85;
}

.project-actions {
    margin-top: 22px;
    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
    opacity: .65;
}

.project-dark { color: #f2f1ec; }
.project-dark .project-title { color: #ffffff; }
.project-dark .project-description { color: rgba(255,255,255,.85); }
.project-dark .project-actions { color: rgba(255,255,255,.75); }
.project-dark .stage-top, .project-dark .stage-bottom { color: #ffffff; }

@media (max-width: 850px) {
    .projects-intro { min-height: 38vh; padding: 18vh 22px 5vh; }
    .intro-title { font-size: clamp(4rem, 19vw, 8rem); }
    .back-home { right: 22px; bottom: 4vh; }
    .project-reel { height: auto; padding: 0 0 40px; }
    .project-stage { position: relative; height: auto; min-height: 0; overflow: visible; }
    .stage-top, .stage-bottom { display: none; }
    .reel-project { position: relative; inset: auto; min-height: 100svh; margin: 0; opacity: 1 !important; visibility: visible !important; overflow: hidden; display: block; }
    .project-media { position: relative; min-height: 64vh; padding: 80px 22px 20px; display: grid; place-items: center; }
    .media-frame, .mask-circle, .mask-circle-wide { width: 92vw; height: 55vh; transform: none !important; border-radius: 28px; }
    .project-copy { position: relative; left: auto; right: auto; bottom: auto; padding: 25px 22px 70px; }
    .project-title { font-size: clamp(3.4rem, 16vw, 6rem); }
    .project-description { max-width: 100%; font-size: 13px; }
}

.intro-title span {
    position: relative;
    display: inline-block;
    animation: bounce .4s ease infinite alternate;
    text-shadow: 0 1px 0 #00A19B, 0 2px 0 #00A19B, 0 3px 0 #00A19B, 0 4px 0 #00A19B, 0 5px 0 #00A19B, 0 6px 0 transparent, 0 7px 0 transparent, 0 8px 0 transparent, 0 9px 0 transparent, 0 10px 10px rgba(0,0,0,.4);
}

.intro-title span:nth-child(2) { animation-delay: .1s; }
.intro-title span:nth-child(3) { animation-delay: .2s; }
.intro-title span:nth-child(4) { animation-delay: .3s; }
.intro-title span:nth-child(5) { animation-delay: .4s; }
.intro-title span:nth-child(6) { animation-delay: .5s; }
.intro-title span:nth-child(7) { animation-delay: .6s; }
.intro-title span:nth-child(8) { animation-delay: .7s; }

@keyframes bounce {
    100% {
        top: -20px;
        text-shadow: 0 1px 0 #00A19B, 0 2px 0 #00A19B, 0 3px 0 #00A19B, 0 4px 0 #00A19B, 0 5px 0 #00A19B, 0 6px 0 #00A19B, 0 7px 0 #00A19B, 0 8px 0 #00A19B, 0 9px 0 #00A19B, 0 50px 30px rgba(0,0,0,.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}