:root {
    --lime: #c8f034;
    --lime-deep: #9ccb22;
    --ink: #071210;
    --teal: #0a2422;
    --teal-2: #123f39;
    --teal-3: #1b5750;
    --paper: #f3f6f2;
    --mist: #dce7e1;
    --white: #ffffff;
    --muted: #8aa39a;
    --text: #1c2a27;
    --line: rgba(200, 240, 52, 0.16);
    --shadow: 0 24px 60px rgba(7, 18, 16, 0.28);
    --radius: 18px;
    --header: 92px;
    --font: "Outfit", system-ui, sans-serif;
    --display: "Syne", sans-serif;
    --cond: "Oswald", sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -40px;
    background: var(--lime);
    color: var(--ink);
    padding: 8px 12px;
    z-index: 120;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.nav-cta-mobile { display: none; }

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.eyebrow {
    font-family: var(--cond);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--lime-deep);
    margin-bottom: 10px;
}
.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow,
.section--ink .eyebrow,
.footer-cta .eyebrow,
.contact-aside .eyebrow,
.card--dark .eyebrow {
    color: var(--lime);
}

.progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 80;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--ink);
    display: grid;
    place-content: center;
    gap: 16px;
    z-index: 100;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader__mark img {
    height: 72px;
    width: auto;
}
.preloader p {
    color: var(--lime);
    font-family: var(--cond);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin: 0;
    text-align: center;
}
.preloader.is-done { opacity: 0; visibility: hidden; }

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: linear-gradient(180deg, rgba(7,18,16,.7), transparent);
    transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
    background: rgba(7, 18, 16, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.topbar {
    background: #05110f;
    color: var(--mist);
    font-size: 0.78rem;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}
.topbar__links { display: flex; gap: 18px; }
.topbar a:hover { color: var(--lime); }
.nav-bar__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--white);
}
.brand img {
    height: 44px;
    width: auto;
    max-width: none;
    background: transparent;
}
.brand--footer img {
    height: 48px;
    width: auto;
}
.brand strong, .brand--footer strong {
    display: block;
    font-family: var(--cond);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    color: var(--lime);
    line-height: 1;
}
.brand small, .brand--footer small {
    display: block;
    font-family: var(--cond);
    letter-spacing: 0.28em;
    font-size: 0.62rem;
    color: #c5d6cf;
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
    color: #e8f0ec;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -8px;
    width: 100%; height: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--lime); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--lime);
    margin: 6px 8px;
    transition: 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-overlay { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #d7ff5a; }
.btn--ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--dark { background: var(--teal); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--white);
    isolation: isolate;
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ken 22s ease-in-out infinite alternate;
}
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7,18,16,.88) 0%, rgba(10,36,34,.55) 48%, rgba(7,18,16,.35) 100%),
        linear-gradient(180deg, rgba(7,18,16,.3), rgba(7,18,16,.75));
}
.hero__geo {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 58%, rgba(10,36,34,.72) 58.1%),
        linear-gradient(200deg, rgba(200,240,52,.08), transparent 40%);
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 38% 100%);
}
.hero__inner { padding: 160px 0 100px; max-width: 760px; }
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    color: var(--white);
    margin: 0 0 18px;
}
.hero h1 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--lime);
}
.hero .lede {
    font-size: 1.15rem;
    color: #d5e4de;
    max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta {
    display: flex;
    gap: 28px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 0.92rem;
    color: #c9d9d3;
}
.hero__meta strong { display: block; color: var(--lime); font-size: 1.05rem; }

.page-hero {
    position: relative;
    padding: 170px 0 80px;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}
.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(7,18,16,.92), rgba(10,36,34,.62));
    z-index: -1;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 14ch; }

/* Marquee */
.marquee {
    background: var(--lime);
    color: var(--ink);
    overflow: hidden;
    border-block: 1px solid #b6dc2b;
}
.marquee__track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 28s linear infinite;
    padding: 14px 0;
    font-family: var(--cond);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section--dark { background: var(--teal); color: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.split img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -56px;
    position: relative;
    z-index: 2;
}
.stat {
    background: var(--white);
    padding: 28px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat b {
    display: block;
    font-family: var(--display);
    font-size: 2.2rem;
    color: var(--teal);
}
.stat span { color: #5d726c; font-size: 0.92rem; }

.cards-3, .cards-4 {
    display: grid;
    gap: 22px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(7,18,16,.08);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card__body { padding: 22px; }
.card h3 { font-size: 1.2rem; }
.card--dark {
    background: linear-gradient(180deg, #123f39, #0a2422);
    color: var(--white);
    padding: 28px;
    min-height: 220px;
    border: 1px solid var(--line);
}
.card--dark h3 { color: var(--lime); }

.service-bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 18px;
}
.service-tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    isolation: isolate;
}
.service-tile:first-child { grid-row: 1 / span 2; }
.service-tile img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.8s var(--ease);
}
.service-tile:hover img { transform: scale(1.08); }
.service-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(7,18,16,.88));
    z-index: -1;
}
.service-tile h3 { margin: 0 0 6px; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.filter {
    border: 1px solid #c7d5cf;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--teal);
}
.filter.is-active, .filter:hover {
    background: var(--teal);
    color: var(--lime);
    border-color: var(--teal);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    cursor: pointer;
    color: var(--white);
    isolation: isolate;
}
.project-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.6s var(--ease);
}
.project-card:hover img { transform: scale(1.07); }
.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(7,18,16,.92));
    z-index: -1;
}
.project-card__body { position: absolute; inset: auto 0 0; padding: 22px; }
.badge {
    display: inline-block;
    background: var(--lime);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.project-card.is-hidden { display: none; }

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.value-chip {
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--lime);
    background: rgba(200,240,52,.06);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.person {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    box-shadow: 0 12px 30px rgba(7,18,16,.08);
}
.avatar {
    width: 76px; height: 76px;
    border-radius: 18px;
    background: var(--teal);
    color: var(--lime);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 800;
}
.person a { color: var(--teal); font-weight: 600; }
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--lime-deep); font-weight: 600; margin-bottom: 10px; }
.person li { position: relative; padding-left: 14px; margin-bottom: 6px; color: #4d615c; }
.person li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--lime-deep); border-radius: 50%; }

.equip-grid, .staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.equip, .staff-item {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}
.equip b, .staff-item b {
    font-family: var(--display);
    font-size: 1.8rem;
    color: var(--lime);
    display: block;
}

.form {
    display: grid;
    gap: 14px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form label { font-size: 0.88rem; font-weight: 600; color: var(--teal); }
.form input, .form select, .form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #cddad4;
    border-radius: 10px;
    background: #fbfdfb;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 2px solid var(--lime);
    border-color: var(--lime-deep);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .hp { position: absolute; left: -9999px; }
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.alert--ok { background: #e7f8c8; color: #2a4a12; }
.alert--err { background: #fde2e2; color: #7a1d1d; }
.map {
    border: 0;
    width: 100%;
    min-height: 360px;
    border-radius: var(--radius);
    filter: grayscale(.2) contrast(1.05);
}

.contact-aside {
    background: var(--teal);
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius);
}
.contact-aside a { color: var(--lime); }

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
.process article {
    padding: 24px;
    border-top: 2px solid var(--lime);
    background: rgba(255,255,255,.04);
}
.process article::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: var(--display);
    color: var(--lime);
    font-size: 1.4rem;
}

.site-footer { background: #05110f; color: #c5d4ce; }
.footer-cta { background: var(--teal-2); color: var(--white); }
.footer-cta__inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    padding: 56px 0;
}
.footer-cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 56px 0 32px;
}
.footer-grid h3 { color: var(--white); font-size: 1rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand p { color: #9fb3ac; }
.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0 32px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 0.85rem;
}
.footer-credit {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.92;
}
.footer-credit img {
    height: 36px;
    width: auto;
    max-width: none;
}
.footer-credit:hover { opacity: 1; }

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: max(22px, env(safe-area-inset-bottom));
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    z-index: 40;
}
.whatsapp:hover { transform: scale(1.06); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

.split .process { grid-template-columns: 1fr 1fr; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__media img, .marquee__track, .reveal { animation: none; }
    .card, .project-card img, .service-tile img, .btn { transition: none; }
}

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 90; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,18,16,.72);
}
.modal__panel {
    position: relative;
    width: min(720px, calc(100% - 32px));
    margin: 8vh auto;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 84vh;
    overflow-y: auto;
}
.modal__panel img { width: 100%; height: 320px; object-fit: cover; }
.modal__body { padding: 24px; }
.modal__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 40px; height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.8s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
    .split, .cards-3, .cards-4, .project-grid, .stat-row, .service-bento,
    .equip-grid, .staff-grid, .process, .footer-grid, .team-grid, .form-row {
        grid-template-columns: 1fr 1fr;
    }
    .service-bento { grid-template-rows: auto; }
    .service-tile:first-child { grid-row: auto; min-height: 280px; }
    .footer-cta__inner { flex-direction: column; align-items: flex-start; }
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(320px, 86vw);
        background: var(--ink);
        flex-direction: column;
        padding: 100px 28px 28px;
        transform: translateX(110%);
        transition: transform 0.35s var(--ease);
        z-index: 55;
    }
    .nav.is-open { transform: none; }
    .nav-toggle { display: block; z-index: 60; }
    .header-cta { display: none; }
    .nav-cta-mobile { display: inline-flex; margin-top: 12px; width: max-content; }
    .nav-overlay.is-on {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 45;
    }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 700px) {
    .wrap { width: min(1180px, calc(100% - 28px)); }
    .topbar { display: none; }
    .split, .cards-3, .cards-4, .project-grid, .stat-row, .service-bento,
    .equip-grid, .staff-grid, .process, .footer-grid, .team-grid, .form-row {
        grid-template-columns: 1fr;
    }
    .hero__inner { padding-top: 130px; }
    .person { grid-template-columns: 1fr; }
    .footer-base { flex-direction: column; }
    .split img { height: 320px; }
}
