:root {
    --card: #0b0d11;
    --ink: #e8eaee;
    --muted: #9aa0a6;
    --line: #23262d;
    --red: #e50914;
    --chip: #12151b;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --radius: 16px;
    --radius-sm: 12px;
    --wrap: min(1120px, 100%);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(229, 9, 20, .06), transparent 60%),
        radial-gradient(700px 360px at 10% 12%, rgba(229, 9, 20, .04), transparent 55%),
        linear-gradient(180deg,
            #000 0%, #000 15%, #1a0001 35%, #300205 50%, #7b0a0e 65%, #300205 80%, #1a0001 90%, #000 100%);
}

a {
    color: var(--red);
    text-decoration: none;
    transition: all .2s ease
}

a:hover {
    opacity: .9
}

/* ===== TOPBAR ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, .6);
    transition: background-color .3s ease, backdrop-filter .3s ease;
}

.topbar.scrolled {
    background: rgba(0, 0, 0, .82)
}

.topbar .inner {
    width: var(--wrap);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-left: auto;
    justify-content: flex-end;
}

.nav a {
    color: var(--ink)
}

.nav a:hover {
    color: var(--red)
}

/* ===== HAMBURGER TOGGLE ===== */
.menu-toggle {
    display: none;
    appearance: none;
    background: transparent;
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 0;
}

.menu-toggle:hover {
    border-color: var(--red);
    color: var(--red)
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px
}

.menu-box {
    position: relative;
    width: 22px;
    height: 16px;
    display: inline-block
}

.menu-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    display: block;
    border-radius: 2px;
    transform-origin: center;
    transition: transform .18s ease, opacity .18s ease, top .18s ease, background-color .18s ease;
}

.menu-bar:nth-child(1) {
    top: 2px
}

.menu-bar:nth-child(2) {
    top: 7px
}

.menu-bar:nth-child(3) {
    top: 12px
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
    top: 7px;
    transform: rotate(45deg)
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.6)
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg)
}

@media (max-width:820px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px
    }

    .nav {
        position: absolute;
        right: 20px;
        top: 56px;
        display: none;
        flex-direction: column;
        background: #0b0d11f2;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
        overflow: hidden;
        min-width: 220px;
    }

    .nav a {
        padding: 12px 14px;
        border-top: 1px solid rgba(255, 255, 255, .04);
        color: #fff
    }

    .nav a:first-child {
        border-top: none
    }

    .nav.open {
        display: flex;
        animation: menuIn .14s ease-out
    }
}

/* ===== CONTACT AUTO SEPARATORS ===== */
.contact .contact-item {
    display: inline-flex;
    align-items: center;
}

.contact .contact-item+.contact-item::before {
    content: "•";
    margin: 0 10px;
    color: var(--red);
    opacity: 0.85;
}

/* ===== MAIN ===== */
main {
    width: var(--wrap);
    margin: 0 auto;
    padding: 24px 20px 48px
}

/* ===== MASTHEAD ===== */
.mast {
    background: linear-gradient(180deg, #0e1116, #0a0c10);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--ink);
    position: relative;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 18px;
    align-items: center;
}

@media (max-width:640px) {
    .mast {
        grid-template-columns: 1fr
    }
}

.mast h1 {
    margin: 0 0 2px;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    font-family: "Sporting Grotesque", Inter, sans-serif;
    color: #fff;
}

.role {
    margin: 6px 0 14px;
    font-weight: 600;
    color: #fff
}

.contact {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    transition: all 0.25s ease;
}

.contact::-webkit-scrollbar {
    display: none
}

.contact:hover {
    color: rgba(255, 255, 255, 0.9)
}

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

.contact a:hover {
    color: var(--red)
}

@media (max-width:720px) {
    .contact {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal
    }
}

.mast-avatar {
    width: 110px;
    height: 110px;
    justify-self: end;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
    background: #101318;
}

.mast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px
}

@media (max-width:960px) {
    .grid {
        grid-template-columns: 1fr
    }
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.sec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

.rule {
    width: 40px;
    height: 2px;
    background: var(--red)
}

h2 {
    margin: 0;
    font-size: 18px;
    color: #fff
}

/* ===== ITEMS ===== */
.item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px dashed var(--line);
}

.item:first-child {
    border-top: none
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #e6e9ef;
    background: linear-gradient(180deg, #12151b, #0e1116);
    border: 1px solid var(--line);
}

.title {
    margin: 0;
    font-weight: 700;
    color: #fff
}

.sub {
    color: var(--muted);
    font-size: 13.5px
}

.desc {
    margin: 6px 0 0;
    color: var(--ink)
}

/* ===== CHIPS ===== */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--ink);
    background: var(--chip);
    transition: all .2s ease;
}

.chip:hover {
    border-color: var(--red);
    color: var(--red)
}

/* ===== LANGUAGES ===== */
.langs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

@media (max-width:640px) {
    .langs {
        grid-template-columns: 1fr
    }
}

.lang {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #0f1217, #0c0f14);
}

.flag {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: #141820;
    border: 1px solid var(--line);
}

/* ===== CONTACT ROW ===== */
.contact-row {
    margin-top: 22px
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.contact-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.contact-form .field.full {
    grid-column: 1 / -1
}

.contact-form label {
    font-size: 14px;
    color: var(--muted)
}

.contact-form input,
.contact-form textarea {
    background: #0f1217;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
}

.contact-form textarea {
    resize: vertical
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, .12);
}

.contact-form .actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.form-feedback {
    margin-top: 8px;
    color: var(--muted);
    opacity: 0;
    transition: opacity .2s ease;
}

.form-feedback.show {
    opacity: 1
}

.form-feedback.error {
    color: #ffb4b4
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px
}

.contact-list li {
    padding: 8px 0;
    border-top: 1px dashed var(--line)
}

.contact-list li:first-child {
    border-top: 0
}

.contact-list a {
    color: #fff
}

.contact-list a:hover {
    color: var(--red)
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-red {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

.btn-red:hover {
    filter: brightness(1.05)
}

.btn-ghost:hover {
    border-color: var(--red);
    color: var(--red)
}

.btn-whatsapp {
    text-transform: none
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px
}

.ventures {
    margin-top: 6px
}

.ventures .btn {
    padding: 9px 12px
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 40px 20px 28px;
    color: var(--muted)
}

.site-footer .pdf {
    appearance: none;
    border: 1px solid var(--line);
    background: transparent;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-block;
    margin-bottom: 18px;
}

.site-footer .pdf:hover {
    border-color: var(--red);
    color: var(--red)
}

.site-footer .copyright {
    margin: 6px 0 0;
    font-size: 14px
}

.site-footer .copyright a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all .2s ease;
}

.site-footer .copyright a:hover {
    color: var(--red);
    border-color: var(--red)
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity .5s ease, transform .6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0ms);
}

.reveal.inview {
    opacity: 1;
    transform: translateY(0) scale(1)
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-4px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important
    }

    .reveal,
    .reveal.inview {
        opacity: 1;
        transform: none
    }
}

img {
    max-width: 100%;
    height: auto
}