/* =========================================================
   Studio Atlas — Variação B "Manifesto"
   Editorial bold · Space Grotesk + JetBrains Mono · accent #22c55e
   ========================================================= */

/* ---------- Reset (mínimo, focado) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Tokens ---------- */
:root {
    --bg:       #fafafa;
    --fg:       #0a0a0a;
    --inv-bg:   #0a0a0a;
    --inv-fg:   #fafafa;
    --dim:      rgba(10, 10, 10, 0.5);
    --border:   rgba(10, 10, 10, 0.12);
    --soft:     rgba(10, 10, 10, 0.04);
    --accent:   #22c55e;
    --accent-2: #16a34a;

    --pad-x:        56px;
    --pad-y-sec:    100px;
    --max:          1240px;

    --f-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

[data-theme="dark"] {
    --bg:     #0a0a0a;
    --fg:     #fafafa;
    --inv-bg: #fafafa;
    --inv-fg: #0a0a0a;
    --dim:    rgba(250, 250, 250, 0.55);
    --border: rgba(250, 250, 250, 0.18);
    --soft:   rgba(250, 250, 250, 0.06);
}

/* Default = light. Dark é opt-in via toggle (data-theme="dark" no <html>).
   prefers-color-scheme NÃO é mais respeitado automaticamente para garantir
   que a paleta publicada (claro com UMA banda escura na seção Serviços)
   apareça por padrão na primeira visita. */

/* ---------- Base ---------- */
html {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--f-display);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body { background: var(--bg); }

::selection { background: var(--accent); color: #0a0a0a; }

.mono { font-family: var(--f-mono); }
.dim  { color: var(--dim); }
.it   { font-style: italic; font-weight: 400; color: var(--dim); }
.accent { color: var(--accent); }

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--inv-bg); color: var(--inv-fg);
    padding: 12px 16px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Layout containers ---------- */
.wrap {
    width: 100%;
    margin: 0 auto;
    padding-inline: var(--pad-x);
    max-width: var(--max);
}

.sec {
    padding: var(--pad-y-sec) var(--pad-x);
}
.sec--inv {
    background: var(--inv-bg);
    color: var(--inv-fg);
}
.sec--inv .dim { color: color-mix(in srgb, currentColor 55%, transparent); }

.sec-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: baseline;
    max-width: var(--max);
    margin-inline: auto;
}
.sec-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--dim);
    text-transform: uppercase;
}
.sec-h {
    font-size: clamp(2.4rem, 6vw, 88px);
    line-height: 0.95;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.sec-h .it { display: block; }

.sec-inner {
    max-width: var(--max);
    margin-inline: auto;
}

/* ---------- Header ---------- */
.hd {
    position: sticky; top: 0; z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 60px;
    padding: 24px var(--pad-x);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: padding 0.2s ease, background 0.2s ease;
}
.hd.scrolled {
    padding-block: 16px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.brand {
    display: inline-flex; align-items: baseline; gap: 12px;
    text-decoration: none;
    color: var(--fg);
}
.brand__logo {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.04em;
    line-height: 1;
}
.brand__logo sup {
    font-size: 12px;
    color: var(--accent);
    margin-left: 2px;
    font-weight: 700;
}
.brand__tag {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.15em;
}

.nav {
    display: flex;
    gap: 36px;
    justify-content: center;
}
.nav a {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: var(--fg);
    transition: color 0.18s ease;
    position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a.on,
.nav a[aria-current="page"] { color: var(--accent); }

.hd__right {
    display: flex; align-items: center; gap: 16px;
}
.lang {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.04em;
    display: inline-flex; gap: 4px; align-items: center;
}
.lang a {
    color: var(--dim);
    text-decoration: none;
    font-weight: 700;
    padding: 4px;
    transition: color 0.15s ease;
}
.lang a:hover { color: var(--fg); }
.lang a.on { color: var(--fg); }
.lang span { opacity: 0.6; }

.theme-tg {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    color: var(--fg);
    transition: background 0.15s ease, color 0.15s ease;
}
.theme-tg:hover { background: var(--soft); color: var(--accent); }
.theme-tg svg { width: 18px; height: 18px; }
[data-theme="light"] .theme-tg .moon,
:root:not([data-theme]) .theme-tg .moon { display: block; }
[data-theme="light"] .theme-tg .sun,
:root:not([data-theme]) .theme-tg .sun  { display: none; }
[data-theme="dark"] .theme-tg .moon { display: none; }
[data-theme="dark"] .theme-tg .sun  { display: block; }

.send {
    display: inline-block;
    background: var(--inv-bg);
    color: var(--inv-fg);
    padding: 12px 22px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--fg) 22%, transparent);
    background: var(--accent);
    color: #0a0a0a;
}

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--fg); }

/* ---------- Hero (home) ---------- */
.hero {
    padding: 80px var(--pad-x) 100px;
    position: relative;
}
.hero__label {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.18em;
    margin-bottom: 32px;
    text-transform: uppercase;
}
.hero__h1 {
    font-size: clamp(3.5rem, 13vw, 168px);
    line-height: 0.88;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-wrap: balance;
}
.hero__h1 > div { display: block; }
.hero__h1 .row {
    display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
}
.hero__h1 .it {
    font-style: italic; font-weight: 400; color: var(--dim);
}
.hero__h1 .aux {
    font-family: var(--f-mono);
    font-size: clamp(0.75rem, 1vw, 14px);
    color: var(--dim);
    letter-spacing: 0.1em;
    font-weight: 600;
    align-self: flex-end;
    padding-bottom: 0.5em;
    text-transform: lowercase;
}
.hero__h1 .ul {
    border-bottom: 8px solid var(--accent);
    padding-bottom: 4px;
    display: inline-block;
}
.hero__h1 .end { color: var(--dim); }

.hero__sub {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: end;
    margin-top: 80px;
}
.hero__sub-label {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero__sub p {
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
    max-width: 640px;
}
.hero__cta {
    margin-top: 48px;
    display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}

/* CTA pills */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    line-height: 1.1;
}
.btn--primary {
    background: var(--inv-bg);
    color: var(--inv-fg);
    border-color: var(--inv-bg);
}
.btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.18);
}
.btn--ghost {
    background: transparent;
    color: var(--fg);
    border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--fg); }
.btn--lg { padding: 22px 36px; font-size: 18px; }

/* ---------- Stats band ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat {
    padding: 40px 28px;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__n {
    font-size: clamp(2.4rem, 5vw, 64px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.stat__l {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.1em;
    margin-top: 12px;
    text-transform: uppercase;
}

/* ---------- Services (banda invertida) ---------- */
.services-head {
    max-width: var(--max);
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: baseline;
}
.services-h {
    font-size: clamp(2.4rem, 6vw, 88px);
    line-height: 0.95;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.services-list {
    max-width: var(--max);
    margin: 0 auto;
    border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

.svc {
    display: grid;
    grid-template-columns: 120px 1fr 1.2fr;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    align-items: baseline;
    transition: padding-inline 0.25s ease;
}
.svc:hover { padding-inline: 8px; }
.svc__n {
    font-family: var(--f-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
}
.svc__t {
    font-size: clamp(1.6rem, 3vw, 44px);
    line-height: 1;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.svc__d {
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.75;
    max-width: 520px;
}

/* ---------- Cases (expertise) ---------- */
.cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto;
}
.case {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    background: var(--bg);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.case:hover {
    border-color: var(--accent);
    transform: scale(1.01);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.case--feat {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.case__head {
    display: flex; justify-content: space-between; align-items: baseline;
}
.case__sector {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
}
.case--feat .case__sector { color: var(--accent); }
.case__name {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 14px;
}
.case__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--dim);
    margin: 0;
}
.case__tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.case__tag {
    font-family: var(--f-mono);
    font-size: 10px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--dim);
    letter-spacing: 0.04em;
}

/* ---------- About (resumo na home) ---------- */
.about-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    max-width: var(--max);
    margin: 0 auto;
}
.about-row__h {
    font-size: clamp(2.4rem, 6vw, 88px);
    line-height: 0.92;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.045em;
}
.about-row__p {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 32px;
}
.about-row__cta {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    font-weight: 500;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.about-row__cta:hover { border-color: var(--accent); color: var(--accent); }

.points {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
}
.points li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}
.points__n {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.points__t {
    font-size: 18px;
    line-height: 1.45;
}

/* ---------- Contact (CTA gigante) ---------- */
.contact {
    padding: 120px var(--pad-x) 100px;
}
.contact__label {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.18em;
    margin-bottom: 32px;
    text-transform: uppercase;
}
.contact__h {
    font-size: clamp(3rem, 9vw, 140px);
    line-height: 0.92;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-wrap: balance;
}
.contact__h .it {
    font-style: italic;
    font-weight: 400;
    color: var(--dim);
    display: block;
}
.contact__row {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: end;
}
.contact__p {
    font-size: 18px;
    color: var(--dim);
    margin: 0;
    max-width: 480px;
}
.email-btn {
    display: inline-flex; align-items: center; gap: 20px;
    background: var(--inv-bg);
    color: var(--inv-fg);
    padding: 28px 40px;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 24px);
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.email-btn:hover {
    background: var(--accent);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.email-btn span:last-child { font-size: 28px; }

.contact__alt {
    margin-top: 24px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--dim);
    letter-spacing: 0.05em;
}
.contact__alt a {
    color: var(--fg);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 4px;
}
.contact__alt a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Footer ---------- */
.ft {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    padding: 28px var(--pad-x);
    border-top: 1px solid var(--border);
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ft a { color: var(--fg); text-decoration: none; }
.ft a:hover { color: var(--accent); }
.ft__center { text-align: center; }

/* ---------- Sobre — page-specific ---------- */
.sobre-hero {
    padding: 100px var(--pad-x) 60px;
}
.sobre-hero__h {
    font-size: clamp(3rem, 12vw, 168px);
    line-height: 0.88;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-wrap: balance;
}
.sobre-hero__h .it { display: block; font-style: italic; font-weight: 400; color: var(--dim); }
.sobre-hero__sub {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: end;
    margin-top: 64px;
}
.sobre-hero__sub p {
    font-size: 22px; line-height: 1.4; margin: 0; max-width: 640px;
}

/* Timeline */
.tl {
    border-top: 1px solid var(--border);
}
.tl-row {
    display: grid;
    grid-template-columns: 180px 1fr 1.6fr;
    gap: 48px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}
.tl-row:last-child { border-bottom: 0; }
.tl-row .yr {
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.tl-row.now .yr::after {
    content: "•";
    color: var(--accent);
    margin-left: 8px;
    font-size: 22px;
    vertical-align: -2px;
}
.tl-row .role {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.tl-row .co {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 0.6;
    text-transform: uppercase;
}
.tl-row .desc { font-size: 16px; line-height: 1.55; }
.tl-row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-row .tag {
    font-family: var(--f-mono);
    font-size: 10px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    letter-spacing: 0.04em;
}

/* Skills (banda invertida) */
.skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    max-width: var(--max);
    margin: 0 auto;
}
.skill {
    padding: 32px 28px;
    border-right: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.skill:nth-child(3n) { border-right: 0; }
.skill__h {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.skill__t {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
}
.skill__d {
    font-size: 14px;
    line-height: 1.5;
    color: color-mix(in srgb, currentColor 55%, transparent);
}

/* ---------- Forms (Contato, página) ---------- */
.form-page-h {
    font-size: clamp(2.4rem, 7vw, 88px);
    line-height: 0.95;
    margin: 0 0 24px;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.form-page-sub {
    font-size: 20px;
    color: var(--dim);
    margin: 0 0 56px;
    max-width: 640px;
    line-height: 1.5;
}
.form {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}
.form__row {
    display: grid;
    gap: 8px;
}
.form__row--two { grid-template-columns: 1fr 1fr; gap: 28px; }
.form__row label {
    font-family: var(--f-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dim);
    font-weight: 500;
}
.form__row label .opt { color: var(--dim); text-transform: none; letter-spacing: normal; }
.req { color: var(--accent); margin-left: 2px; }

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg);
    font-family: var(--f-display);
    font-size: 17px;
    border-radius: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.form textarea { resize: vertical; min-height: 9em; line-height: 1.5; }
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.form__err {
    color: var(--accent);
    font-size: 13px;
}
.form__actions {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 24px; margin-top: 12px;
}

.alert {
    padding: 16px 20px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    font-size: 15px;
}
.alert--err {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
}

.honeypot {
    position: absolute; left: -9999px; top: -9999px;
    width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Scroll reveals ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    :root { --pad-x: 32px; --pad-y-sec: 80px; }
    .hero { padding: 60px var(--pad-x) 80px; }
    .sec-head,
    .services-head,
    .about-row,
    .hero__sub,
    .sobre-hero__sub,
    .contact__row { grid-template-columns: 1fr; gap: 32px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .cases { grid-template-columns: repeat(2, 1fr); }
    .skills { grid-template-columns: repeat(2, 1fr); }
    .skill:nth-child(3n) { border-right: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
    .skill:nth-child(2n) { border-right: 0; }
    .svc { grid-template-columns: 60px 1fr; gap: 24px; }
    .svc__d { grid-column: 2; max-width: none; }
    .tl-row { grid-template-columns: 140px 1fr; gap: 24px; }
    .tl-row .desc { grid-column: 1 / -1; padding-left: 0; }
}

@media (max-width: 720px) {
    :root { --pad-x: 24px; --pad-y-sec: 64px; }
    html { font-size: 16px; }
    .hd { padding: 16px var(--pad-x); gap: 16px; }
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px var(--pad-x);
        gap: 0;
    }
    .nav.open a {
        padding: 14px 0;
        border-top: 1px solid var(--border);
    }
    .nav-toggle { display: inline-flex; }
    .brand__tag { display: none; }
    .lang { display: none; }

    .hero__h1 .row { gap: 12px; }
    .hero__sub p,
    .sobre-hero__sub p { font-size: 18px; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0 !important; border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: 0; }
    .cases { grid-template-columns: 1fr; }
    .skills { grid-template-columns: 1fr; }
    .skill { border-right: 0 !important; }
    .svc { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
    .svc__t { font-size: 30px; }
    .tl-row { grid-template-columns: 1fr; gap: 12px; }
    .form__row--two { grid-template-columns: 1fr; gap: 20px; }
    .ft { grid-template-columns: 1fr; gap: 12px; }
    .ft__center { text-align: left; }
    .contact__row { grid-template-columns: 1fr; }
    .email-btn { padding: 22px 28px; font-size: 18px; }
    .email-btn span:last-child { font-size: 22px; }
}
