/* =====================================================
   THIAGO ARGOSINI — PORTFOLIO
   Dark / Cinematic / Darkroom
   ===================================================== */

:root {
    --bg: #0c0c0b;
    --bg-alt: #151412;
    --text: #ece7dc;
    --muted: #8c8579;
    --line: #2b2823;
    --accent: #c1432a;
    --accent-dim: #7a2c1c;

    --max-width: 1500px;
    --padding: clamp(24px, 5vw, 80px);

    --ease: cubic-bezier(.2, .7, .2, 1);

    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}


/* RESET */

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;

    background: var(--bg);
    color: var(--text);

    font-family: var(--font-body);

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

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

.mono {
    font-family: var(--font-mono);
}


/* FILM GRAIN OVERLAY */

.grain {
    position: fixed;
    inset: 0;

    z-index: 200;

    pointer-events: none;

    opacity: .05;
    mix-blend-mode: overlay;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* HEADER */

.header {
    width: 100%;
    max-width: var(--max-width);

    margin: auto;
    padding: 28px var(--padding);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;

    transition: opacity .25s ease;
}

.brand:hover {
    opacity: .65;
}

.rec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: var(--accent);

    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    color: var(--muted);

    font-size: 13px;

    transition: color .25s ease;
}

.navigation a:hover {
    color: var(--text);
}


/* GENERAL */

.section {
    max-width: var(--max-width);

    margin: auto;
    padding: 140px var(--padding);
}

.label {
    color: var(--accent);

    font-size: 11px;
    font-weight: 500;

    letter-spacing: .15em;
    text-transform: uppercase;
}


/* HERO */

.hero {
    position: relative;

    max-width: var(--max-width);
    min-height: 82vh;

    margin: auto;
    padding: 10vh var(--padding) 14vh;

    display: flex;
    align-items: center;
}

.countdown {
    position: absolute;
    top: 8vh;
    right: var(--padding);

    width: 130px;
    height: 130px;

    opacity: .9;
}

.countdown svg {
    width: 100%;
    height: 100%;
}

.countdown-ring {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.5;
}

.countdown-tick {
    stroke: var(--muted);
    stroke-width: 1.5;
}

.countdown-sweep {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;

    transform-origin: 100px 100px;

    animation: sweep 6s linear infinite;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.countdown-number {
    fill: var(--text);
    font-family: var(--font-mono);
    font-size: 34px;
}

.hero-content {
    max-width: 1050px;
}

.hero h1 {
    margin-top: 20px;

    font-family: var(--font-display);

    font-size: clamp(80px, 13vw, 190px);
    font-weight: 400;

    letter-spacing: .01em;
    line-height: .82;

    text-transform: uppercase;
}

.hero h1 span {
    color: var(--muted);
}

.intro {
    max-width: 430px;

    margin-top: 48px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.6;
}

.explore {
    display: inline-flex;

    align-items: center;
    gap: 12px;

    margin-top: 34px;
    padding-bottom: 7px;

    border-bottom: 1px solid var(--accent);

    color: var(--text);

    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;

    transition: gap .3s var(--ease);
}

.explore:hover {
    gap: 20px;
}


/* SECTION TITLE */

.section-title {
    margin-bottom: 60px;

    display: flex;
    align-items: baseline;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);

    padding-bottom: 22px;
}

.section-title h2 {
    font-family: var(--font-display);

    font-size: clamp(48px, 6vw, 96px);
    font-weight: 400;

    letter-spacing: .01em;
    line-height: .9;

    text-transform: uppercase;
}


/* PROJECTS */

.projects {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 100px clamp(25px, 5vw, 80px);
}

.project:nth-child(even) {
    margin-top: 120px;
}

.project-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.sprockets {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 10px;

    z-index: 2;

    background-image: radial-gradient(circle, var(--bg) 2px, transparent 2.5px);
    background-size: 16px 10px;
    background-position: 6px center;

    background-color: rgba(0,0,0,.35);
}

.sprockets--bottom {
    top: auto;
    bottom: 0;
}

.placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: flex-end;

    padding: 18px;

    transition: transform .7s var(--ease);
}

.placeholder--1 {
    background:
        linear-gradient(180deg, rgba(12,12,11,0) 40%, rgba(12,12,11,.9) 100%),
        linear-gradient(135deg, #2a1410, #151412 60%);
}

.placeholder--2 {
    background:
        linear-gradient(180deg, rgba(12,12,11,0) 40%, rgba(12,12,11,.9) 100%),
        linear-gradient(135deg, #1a1a1e, #151412 60%);
}

.placeholder--3 {
    background:
        linear-gradient(180deg, rgba(12,12,11,0) 40%, rgba(12,12,11,.9) 100%),
        linear-gradient(135deg, #241c10, #151412 60%);
}

.project-image:hover .placeholder {
    transform: scale(1.035);
}

.placeholder-tag {
    color: var(--muted);

    font-size: 11px;
    letter-spacing: .1em;

    border: 1px solid var(--line);
    padding: 4px 9px;
}


/* PROJECT DETAILS */

.project-details {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    margin-top: 15px;
    padding-top: 15px;

    border-top: 1px solid var(--line);
}

.number {
    color: var(--accent);

    font-size: 11px;
    letter-spacing: .04em;
}

.project-details h3 {
    margin-top: 6px;

    font-family: var(--font-display);

    font-size: 26px;
    font-weight: 400;

    letter-spacing: .01em;
    text-transform: uppercase;
}

.project-info {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ABOUT */

.about {
    padding-top: 190px;
    padding-bottom: 190px;
}

.about-grid {
    display: grid;

    grid-template-columns: 1.4fr .7fr;

    gap: 12vw;
}

.about-main {
    max-width: 850px;

    font-family: var(--font-display);

    font-size: clamp(36px, 4.6vw, 68px);
    font-weight: 400;

    line-height: 1.05;
    letter-spacing: .005em;

    text-transform: uppercase;
}

.about-text {
    max-width: 370px;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.7;
}

.contact-link {
    display: inline-flex;

    gap: 12px;

    margin-top: 30px;
    padding-bottom: 6px;

    border-bottom: 1px solid var(--accent);

    color: var(--text);

    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;

    transition: gap .3s ease;
}

.contact-link:hover {
    gap: 19px;
}


/* FOOTER */

.footer {
    max-width: var(--max-width);

    margin: auto;
    padding: 30px var(--padding) 45px;

    border-top: 1px solid var(--line);

    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 11px;
}

.footer a {
    transition: color .25s ease;
}

.footer a:hover {
    color: var(--text);
}


/* MOBILE */

@media (max-width: 760px) {

    .header {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .navigation {
        gap: 18px;
    }

    .countdown {
        width: 84px;
        height: 84px;
        top: 4vh;
    }

    .countdown-number {
        font-size: 30px;
    }

    .hero {
        min-height: 75vh;

        padding-top: 16vh;
        padding-bottom: 10vh;
    }

    .hero h1 {
        font-size: clamp(64px, 19vw, 108px);
    }

    .intro {
        margin-top: 38px;
    }

    .section {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .section-title {
        display: block;
        margin-bottom: 40px;
    }

    .section-title h2 {
        margin-top: 12px;
    }

    .projects {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .project:nth-child(even) {
        margin-top: 0;
    }

    .about {
        padding-top: 110px;
        padding-bottom: 110px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer {
        flex-direction: column;
        gap: 12px;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

    .countdown-sweep,
    .rec-dot {
        animation: none !important;
    }
}
