/* =====================================================================
   MATEBOARD — build limpo e semântico
   Tokens extraídos do render real (cores amostradas dos pixels,
   tipografia: Nexa Trial Black + Azeret Mono)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Nexa Black';
    src: url('assets/nexa-black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #000;
    --fg: #fff;
    --ink: #0d0d0d;
    --muted: #b9bec0;
    --line: rgba(255, 255, 255, 0.20);
    --hair: rgba(0, 0, 0, 0.12);

    --card-a: linear-gradient(180deg, #e9edee 0%, #c3cfd4 100%);
    --card-b: linear-gradient(180deg, #f7f8f8 0%, #dfe5e6 100%);
    --tile-a: linear-gradient(180deg, #eef1f2 0%, #c3cfd4 100%);
    --tile-b: linear-gradient(180deg, #eef1f2 0%, #e4e9ea 100%);

    --soc-whats: linear-gradient(160deg, #ffd6bf 0%, #ff8a4c 100%);
    --soc-link: linear-gradient(160deg, #e7eef1 0%, #7f97a2 100%);
    --soc-inst: linear-gradient(160deg, #f4ddff 0%, #dc9bff 100%);

    --mono: 'Azeret Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --disp: 'Nexa Black', var(--mono);
    --sans: Helvetica, Arial, sans-serif;
    --header-h: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

/* ================= HEADER ================= */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 0 18px;
    background: #000;
    border-bottom: 1px solid var(--line);
}
.brand {
    font-family: var(--disp);
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.topnav { display: flex; justify-content: center; gap: clamp(3rem, 11vw, 10rem); }
.topbar a.nav-link,
.topbar .topcta {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}
.topbar a.nav-link:hover,
.topbar .topcta:hover { color: #fff; }
.topbar a.nav-link.is-active { color: #fff; }
.topcta { justify-self: end; }

/* ================= HERO MARQUEE ================= */
.marquee {
    overflow: hidden;
    background: #000;
    padding-top: var(--header-h);
    border-bottom: 1px solid var(--line);
}
.marquee__track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    font-family: var(--disp);
    font-size: clamp(78px, 13.5vw, 196px);
    line-height: 0.86;
    letter-spacing: -0.01em;
    padding: 0.06em 0;
    animation: marquee 26s linear infinite;
}
.marquee__track span { padding-right: 0.22em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ================= INTRO ================= */
.intro { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.intro__left { background: #000; padding: 2.25rem 2rem; min-height: 210px; }
.intro__left p { max-width: 27ch; font-size: 14px; line-height: 1.5; }
.intro__right {
    background: #e9edee;
    color: var(--ink);
    padding: 2.25rem 2.5rem;
    text-align: right;
}
.intro__right p { font-size: 14px; line-height: 1.85; }

/* ================= GRID 2x2 ================= */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.panel {
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 1.6rem 2rem 2.6rem;
    position: relative;
    min-height: 235px;
}
.panel:nth-child(2n) { border-right: 0; }
.panel::before {
    content: "";
    position: absolute;
    top: 1.1rem; left: 1.1rem;
    width: 7px; height: 7px;
    background: #fff;
}
.panel h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    margin-top: 1.6rem;
    max-width: 22ch;
}
.panel p { margin-top: 1rem; font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 44ch; }

/* ================= MOSAIC ================= */
.mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "imga   cards"
        "crowd  tilesA"
        "dna    tilesB"
        "imgb   agende";
    border-bottom: 1px solid var(--line);
}
.mosaic > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mosaic > *:nth-child(2n) { border-right: 0; }

.mosaic__img--a { grid-area: imga; background: #050505; position: relative; }
.mosaic__img--b { grid-area: imgb; background: #050505; }
.mosaic__img img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__caption {
    position: relative;
    left: 3rem;
    right: 2rem;
    bottom: 29rem;
    max-width: 18ch;
    font-size: clamp(40px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: #fff;
}

.stack-cards { grid-area: cards; display: flex; flex-direction: column; border-right: 0; }
.card {
    flex: 1;
    padding: 2.4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--ink);
    border-bottom: 1px solid var(--hair);
}
.card:last-child { border-bottom: 0; }
.card--1, .card--3 { background: var(--card-a); }
.card--2 { background: var(--card-b); }
.card__num { font-size: 12px; color: #5a5f61; margin-bottom: 0.7rem; }
.card h3 {
    font-weight: 600;
    font-size: clamp(19px, 1.9vw, 27px);
    line-height: 1.14;
    text-transform: uppercase;
}
.card--2 h3 { text-transform: none; }

.photo--crowd { grid-area: crowd; position: relative; overflow: hidden; background: #000; }
.photo--crowd img { width: 100%; height: 100%; object-fit: cover; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tiles--a { grid-area: tilesA; border-right: 0; }
.tiles--b { grid-area: tilesB; border-right: 0; }
.tile {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: clamp(12px, 2vw, 16px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    min-height: 150px;
    border-right: 1px solid var(--hair);
}
.tile:last-child { border-right: 0; }
.tile--grad { background: var(--tile-a); }
.tile--grid {
    background-color: #f1f4f4;
    background-image:
        linear-gradient(#d9dfe0 1px, transparent 1px),
        linear-gradient(90deg, #d9dfe0 1px, transparent 1px);
    background-size: 44px 44px;
}
.tile--light { background: var(--tile-b); }

.panel--light { background: #e9edee; color: var(--ink); }
.panel--light::before { background: var(--ink); }
.panel--light p { color: #3a3f41; }

.panel--dna { grid-area: dna; }
.panel--agende { grid-area: agende; border-right: 0; }

/* ================= CONNECT / SOCIAL ================= */
.connect { background: #000; padding: 3rem 2rem 4.5rem; }
.connect h2 { font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 2rem; }
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.4rem); }
.soc {
    position: relative;
    min-height: 300px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--ink);
    transition: transform 0.25s ease;
}
.soc:hover { transform: translateY(-4px); }
.soc svg { width: 38px; height: 38px; }
.soc span {
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.2;
    text-transform: uppercase;
    max-width: 14ch;
}
.soc--whats { background: var(--soc-whats); }
.soc--link { background: var(--soc-link); }
.soc--inst { background: var(--soc-inst); }

/* ================= FOOTER ================= */
.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--line);
    background: #000;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.foot a:hover { color: #fff; }
.foot__copy { color: var(--muted); }

/* ================= PÁGINAS (legais) ================= */
.page { padding: calc(var(--header-h) + 3.5rem) 3rem 4rem; }
.page__title {
    text-align: center;
    font-weight: 400;
    font-size: clamp(22px, 2.6vw, 34px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3rem;
}
.prose { display: grid; grid-template-columns: minmax(180px, 340px) 1fr; gap: 3rem; align-items: start; }
.prose__lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; }
.prose__body { max-width: 78ch; }
.prose__body p { font-size: 14px; line-height: 1.75; color: #e9ebeb; margin-bottom: 1.1rem; }
.prose__body h2 { font-size: 14px; font-weight: 700; margin: 1.7rem 0 0.6rem; }

/* ================= AGENDA ================= */
.agenda { padding: calc(var(--header-h) + 3.5rem) 3rem 4rem; }
.agenda__title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1;
    margin-bottom: 4.5rem;
}
.schedule { max-width: 820px; margin: 0 auto; }
.schedule__lead {
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
}
.field input,
.field select {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-family: var(--mono);
    font-size: 14px;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.2s;
}
.field input:focus,
.field select:focus { outline: none; border-color: #fff; }
.field input::placeholder { color: #7c8082; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.submit {
    width: 100%;
    background: #fff;
    color: #000;
    border: 0;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 0.9rem;
    cursor: pointer;
    margin-top: 0.6rem;
    transition: opacity 0.2s;
}
.submit:hover { opacity: 0.85; }

/* ================= RESPONSIVO ================= */
@media (max-width: 860px) {
    .intro,
    .grid2,
    .mosaic,
    .socials { grid-template-columns: 1fr; }
    .mosaic {
        grid-template-areas:
            "imga" "cards" "crowd" "tilesA"
            "dna" "tilesB" "imgb" "agende";
    }
    .mosaic > * { border-right: 0; }
    .topnav { gap: 2rem; }
    .prose { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
    .page, .agenda { padding-left: 1.4rem; padding-right: 1.4rem; }
    .photo--crowd figcaption { font-size: 52px; }
}
@media (max-width: 520px) {
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: 1fr; }
    .foot { justify-content: flex-start; }
}
