/* =========================================================
   Baseado Tecnológico — WIP landing
   Dark · Tipográfico · Grade quebrada · Mint-on-graphite
   ========================================================= */

:root {
    --bg:           #121416;
    --bg-soft:      #181b1e;
    --bg-card:      #1c2024;
    --ink:          #E2E8F0;
    --ink-mute:     #94a3b8;
    --ink-faint:    #4b5563;
    --mint:         #4ADE80;
    --mint-soft:    rgba(74, 222, 128, 0.18);
    --mint-glow:    rgba(74, 222, 128, 0.45);
    --green-deep:   #2A7B4C;
    --rule:         rgba(226, 232, 240, 0.08);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

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

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    /* very subtle ambient glow behind the whole composition */
    background:
        radial-gradient(60% 50% at 78% 38%, rgba(42, 123, 76, 0.22), transparent 70%),
        radial-gradient(45% 40% at 12% 82%, rgba(74, 222, 128, 0.08), transparent 75%),
        var(--bg);
}

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

/* ----- ambient circuit ------------------------------------ */
.ambient-circuit {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.ambient-circuit path {
    fill: none;
    stroke: url(#trace);
    stroke-width: 1;
    stroke-linecap: round;
}
.ambient-circuit .node {
    fill: var(--mint);
    opacity: 0.55;
    filter: drop-shadow(0 0 4px var(--mint-glow));
}

/* ----- stage / broken grid -------------------------------- */
.stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 64px) clamp(24px, 5vw, 88px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: clamp(16px, 2vw, 32px);
    row-gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

/* ----- brand mark ----------------------------------------- */
.brand {
    grid-column: 1 / span 7;
    grid-row: 1;
    display: flex;
    align-items: center;
    z-index: 3;
    /* let the logo bleed into the margin so it feels embedded in the bg */
    margin-left: clamp(-12px, -1vw, 0px);
}

.brand__logo {
    width: clamp(260px, 32vw, 460px);
    height: auto;
    object-fit: contain;
    /* mint halo so the logo feels rooted in the same atmosphere as the rest */
    filter: drop-shadow(0 0 32px rgba(74, 222, 128, 0.18))
            drop-shadow(0 0 8px rgba(42, 123, 76, 0.25));
}

/* ----- content (left half) -------------------------------- */
.content {
    grid-column: 1 / span 6;
    grid-row: 2;
    /* break the grid slightly downward */
    margin-top: clamp(8px, 2vw, 32px);
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.4vw, 32px);
    z-index: 3;
}

/* WIP indicator */
.wip-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink-mute);
    width: fit-content;
}

.wip-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 var(--mint-glow);
    animation: pulse 2.4s var(--ease) infinite;
}

.wip-indicator__circuit {
    width: 140px;
    height: 8px;
    overflow: visible;
}
.wip-indicator__circuit path {
    fill: none;
    stroke: var(--mint);
    stroke-opacity: 0.55;
    stroke-width: 1;
}
.wip-indicator__circuit circle { fill: var(--mint); }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 var(--mint-glow); }
    70%  { box-shadow: 0 0 0 14px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Headline */
.title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 6.2vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--ink);
}

.title__accent {
    display: block;
    color: var(--mint);
    font-weight: 600;
    text-shadow: 0 0 32px rgba(74, 222, 128, 0.18);
}

/* Body text */
.lede {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.65;
    color: var(--ink);
    max-width: 48ch;
    margin: 0;
}

.lede em {
    color: var(--mint);
    font-style: normal;
    font-weight: 500;
}

/* ----- hero photo (right) --------------------------------- */
.hero {
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
    position: relative;
    /* break the grid: nudge up to overlap brand row */
    margin-top: clamp(-32px, -2vw, 0px);
    aspect-ratio: 4 / 5;
    z-index: 2;
}

.hero__halo {
    position: absolute;
    inset: -8% -6% -4% -2%;
    background:
        radial-gradient(55% 55% at 55% 45%, rgba(42, 123, 76, 0.45), transparent 65%),
        radial-gradient(40% 40% at 30% 80%, rgba(74, 222, 128, 0.18), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    /* Dissolve original light background into the dark palette:
       darken whites, push tones cooler/greener, and fade edges. */
    filter:
        brightness(0.78)
        contrast(1.08)
        saturate(0.72)
        hue-rotate(-6deg);
    mix-blend-mode: luminosity;
    -webkit-mask-image:
        radial-gradient(120% 95% at 55% 42%,
            #000 38%,
            rgba(0,0,0,0.85) 55%,
            rgba(0,0,0,0.45) 72%,
            transparent 90%);
            mask-image:
        radial-gradient(120% 95% at 55% 42%,
            #000 38%,
            rgba(0,0,0,0.85) 55%,
            rgba(0,0,0,0.45) 72%,
            transparent 90%);
}

/* Color the dissolved background with a subtle deep-green wash:
   sits behind the photo, visible only where the mask fades.    */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 55% 45%, rgba(42, 123, 76, 0.35), transparent 70%),
        linear-gradient(180deg, rgba(18, 20, 22, 0.0) 30%, rgba(18, 20, 22, 0.85) 95%);
    z-index: 0;
}

/* Make the photo sit above the deep-green wash */
.hero__photo { z-index: 1; }

/* corner circuit accents around the photo */
.hero__circuit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.hero__circuit path {
    fill: none;
    stroke: var(--mint);
    stroke-opacity: 0.5;
    stroke-width: 1;
    stroke-linecap: round;
}
.hero__circuit circle {
    fill: var(--mint);
    filter: drop-shadow(0 0 5px var(--mint-glow));
}

/* ----- footer --------------------------------------------- */
.foot {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    border-top: 1px solid var(--rule);
    padding-top: 20px;
}
.foot__sep { opacity: 0.5; }

.foot__email {
    color: var(--ink-mute);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: none;
    border-bottom: 1px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot__email:hover,
.foot__email:focus-visible {
    color: var(--mint);
    border-bottom-color: var(--mint);
    outline: none;
}

/* =========================================================
   Responsive
   ========================================================= */

/* ----- Tablet & below: single column, stacked layout ----- */
@media (max-width: 960px) {
    .stage {
        grid-template-columns: repeat(6, 1fr);
        row-gap: clamp(28px, 5vw, 48px);
    }

    .brand {
        grid-column: 1 / -1;
        margin-left: 0;
    }

    .hero {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0;
        aspect-ratio: 4 / 5;
        max-height: 65vh;
    }

    .content {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 0;
    }

    .foot { grid-row: 4; }

    .title { font-size: clamp(36px, 9vw, 56px); }
}

/* ----- Mobile portrait (phones up to ~640px wide) ------ */
@media (max-width: 640px) {
    .stage {
        padding: 24px 20px 32px;
        row-gap: 32px;
    }

    /* Decorative full-page circuits distort badly on tall portraits — quiet them */
    .ambient-circuit { opacity: 0.4; }

    .brand__logo { width: min(82vw, 320px); }

    /* Square framing keeps the face visible without dominating the viewport */
    .hero {
        aspect-ratio: 1 / 1;
        max-height: none;
    }

    .hero__photo {
        object-position: 50% 28%;
        -webkit-mask-image:
            radial-gradient(115% 100% at 55% 40%,
                #000 40%,
                rgba(0,0,0,0.85) 58%,
                rgba(0,0,0,0.4) 76%,
                transparent 95%);
                mask-image:
            radial-gradient(115% 100% at 55% 40%,
                #000 40%,
                rgba(0,0,0,0.85) 58%,
                rgba(0,0,0,0.4) 76%,
                transparent 95%);
    }

    .title { font-size: clamp(32px, 10vw, 48px); }

    .lede {
        font-size: 15px;
        line-height: 1.6;
    }

    .wip-indicator {
        font-size: 10px;
        letter-spacing: 0.3em;
    }
    .wip-indicator__circuit { width: 110px; }

    .foot {
        flex-wrap: wrap;
        gap: 4px 10px;
        font-size: 10px;
        letter-spacing: 0.16em;
    }
    /* Separators only make sense when items are on the same row */
    .foot__sep { display: none; }

    /* Give the email its own line and a generous tap area */
    .foot__email {
        flex-basis: 100%;
        padding: 8px 0;
        font-size: 12px;
        letter-spacing: 0.08em;
    }
}

/* ----- Very small phones (e.g. iPhone SE) -------------- */
@media (max-width: 380px) {
    .stage { padding: 20px 16px 24px; }
    .brand__logo { width: 92vw; }
    .title { font-size: clamp(28px, 11vw, 40px); }
    .wip-indicator__circuit { width: 80px; }
}

/* ----- Phones in landscape with very short viewports --- */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        aspect-ratio: 16 / 10;
        max-height: 50vh;
    }
    .title { font-size: clamp(28px, 6vw, 40px); }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wip-indicator__dot { animation: none; }
}
