*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0d12;
    --bg2: #10151d;
    --surface: #141b25;
    --border: rgba(189, 208, 230, .12);
    --white: #edf1f5;
    --white-dim: #a4afbd;
    --white-faint: #738092;
    --cyan: #5fe3e3;
    --cyan-dim: rgba(95, 227, 227, .09);
    --cyan-glow: rgba(95, 227, 227, .15);
    --blue: #1a8cff;
    /* Formas: um raio para cards, pílula para controles, canto leve para etiquetas. */
    --r-card: 14px;
    --r-pill: 999px;
    --r-chip: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(95, 227, 227, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.08s;
}

@media (max-width: 900px) {
    .cursor, .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* NAV */
nav:where(:not(.mobile-nav)) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5vw;
    transition: padding 0.3s, background 0.3s;
}

nav.scrolled {
    background: rgba(8, 11, 16, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 5vw;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    text-decoration: none;
    z-index: 1;
}

.brand-lockup {
    display: block;
    width: 154px;
    height: 40px;
}

.logo-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
}

.logo-text span {
    color: var(--cyan);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
    align-items: center;
    z-index: 1;
}

nav ul a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--white-dim);
    transition: color 0.2s;
}

nav ul a:hover {
    color: var(--cyan);
}

.nav-contact {
    color: var(--cyan) !important;
    border: 1px solid rgba(95, 227, 227, 0.3);
    padding: 8px 16px;
    border-radius: var(--r-pill);
    transition: background 0.2s, border-color 0.2s !important;
}

.nav-contact:hover {
    background: var(--cyan-dim) !important;
    border-color: var(--cyan) !important;
}

.nav-lang {
    color: var(--white-dim) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    transition: color 0.2s, border-color 0.2s !important;
}

.nav-lang:hover {
    color: var(--cyan) !important;
    border-color: rgba(95, 227, 227, 0.4) !important;
}

/* ── HAMBURGER BUTTON ───────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(95, 227, 227, 0.2);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 600;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--cyan);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease;
    transform-origin: center;
}

/* X state */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1180px) {
    nav ul {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

/* ── MOBILE OVERLAY ─────────────────────────────────────────── */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 16, 0.7);
    backdrop-filter: blur(4px);
    z-index: 480;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.mobile-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* ── PULAR PARA O CONTEÚDO ──────────────────────────────────── */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 13px 18px;
    background: var(--cyan, #5fe3e3);
    color: #080b10;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--r-chip);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* ── MOBILE DRAWER ──────────────────────────────────────────── */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    background: #0a0f18;
    border-left: 1px solid rgba(95, 227, 227, 0.1);
    /* Abaixo da barra (z-index 500), para o X do menu ficar sempre à vista. */
    z-index: 490;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px 36px 48px;
    transform: translateX(100%);
    /* visibility tira os links do foco do teclado e do leitor de tela enquanto o menu está fechado */
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
}

/* subtle cyan glow on left edge */
.mobile-drawer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
    transparent 0%,
    rgba(95, 227, 227, 0.5) 40%,
    rgba(95, 227, 227, 0.5) 60%,
    transparent 100%);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    text-decoration: none;
    color: var(--white-dim);
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s, padding-left 0.25s;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--cyan);
    padding-left: 6px;
}

.mobile-nav-num {
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--cyan);
    opacity: 0.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.mobile-nav-contact {
    color: var(--cyan) !important;
    margin-top: 8px;
}

.mobile-nav-lang {
    margin-top: 8px;
    font-size: 16px;
}

.mobile-drawer-footer {
    position: absolute;
    bottom: 36px;
    left: 36px;
    font-size: 14px;
    color: var(--white-dim);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 5vw 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: 5%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(95, 227, 227, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 140, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero illustration — right side */
.hero-illustration {
    position: absolute;
    top: 50%;
    right: 4vw;
    transform: translateY(-50%);
    width: min(460px, 42vw);
    opacity: 0.9;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-illustration {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
}

.hero-tag {
    font-size: 16px;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--cyan);
    flex-shrink: 0;
}

.hero-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(52px, 8vw, 108px);
    line-height: 0.95;
    font-weight: 400;
    max-width: 55vw;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .hero-headline {
        max-width: 100%;
        font-size: clamp(44px, 11vw, 72px);
    }
}

.hero-headline .line-italic {
    font-style: italic;
    color: var(--cyan);
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 900px) {
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero-desc {
    font-size: 15px;
    color: var(--white-dim);
    line-height: 1.7;
    max-width: 380px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-cta-group {
        align-items: flex-start;
    }
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cyan);
    color: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 30px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--cyan-glow);
}

.scroll-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* DIVIDER */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0 5vw;
}

/* SERVICES */
.services-section {
    padding: 100px 5vw;
}

/* PROCESS */
.process-section {
    padding: 100px 5vw;
}

.process-header {
    max-width: 620px;
    margin-bottom: 64px;
}

.process-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 18px;
}

.process-subtitle {
    font-size: 15px;
    color: var(--white-dim);
    line-height: 1.7;
    max-width: 440px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.process-step {
    background: var(--bg);
    padding: 32px 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background 0.3s;
}

.process-step:hover {
    background: var(--bg2);
}

.process-step-num {
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--cyan);
}

.process-illustration {
    display: block;
    width: 176px;
    max-width: 100%;
    height: auto;
    margin: 2px 0 8px;
}

.process-step-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
}

.process-step-desc {
    font-size: 13px;
    color: var(--white-dim);
    line-height: 1.65;
}

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

@media (max-width: 700px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.services-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.05;
}

.services-subtitle {
    font-size: 14px;
    color: var(--white-dim);
    max-width: 260px;
    line-height: 1.6;
    text-align: right;
}

@media (max-width: 700px) {
    .services-subtitle {
        text-align: left;
    }
}

.service-row {
    display: grid;
    grid-template-columns: 52px 1fr 28px;
    align-items: center;
    gap: 28px;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.service-row:last-child {
    border-bottom: 1px solid var(--border);
}

.service-row:hover .service-row-title {
    color: var(--cyan);
    transform: translateX(8px);
}

.service-row:hover .service-row-num {
    color: var(--cyan);
}

.service-row-num {
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--white-dim);
    transition: color 0.3s;
}

.service-row-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-row-title {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 600;
    line-height: inherit;
    margin: 0;
    transition: color 0.3s, transform 0.3s;
}

.service-row-desc {
    font-size: 16px;
    color: var(--white-dim);
    line-height: 1.55;
    max-width: 580px;
}

.service-row-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #b6cce0;
    background: rgba(190, 214, 234, 0.07);
    padding: 4px 8px;
    border-radius: var(--r-chip);
    letter-spacing: 0.03em;
}

/* PRODUCT */
.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 36px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--white-dim);
}

.feature-dot {
    width: 5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(95, 227, 227, 0.4);
    color: var(--cyan);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    text-decoration: none;
    border-radius: var(--r-pill);
    transition: all 0.25s;
}

.btn-outline:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    box-shadow: 0 0 30px var(--cyan-glow);
}

/* WORK SHOWCASE */
.work-section {
    padding: 100px 5vw;
}

.work-header {
    margin-bottom: 36px;
}

.work-heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 12px;
}

.work-lead {
    font-size: 14px;
    color: var(--white-dim);
    max-width: 520px;
    line-height: 1.65;
}

.work-rows {
    list-style: none;
    border-top: 1px solid var(--border);
}

.work-rows li {
    border-bottom: 1px solid var(--border);
}

.work-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 20px 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s;
}

.work-row:hover,
.work-row:focus-visible {
    background: rgba(95, 227, 227, 0.035);
}

.work-row:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

.work-thumb {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg2);
}

.work-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-row:hover .work-thumb img {
    transform: scale(1.06);
}

.work-kind {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--white-dim);
}

.work-kind::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
}

.work-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.work-row:hover .work-title {
    color: var(--cyan);
}

.work-desc {
    max-width: 560px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--white-dim);
}

.work-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--cyan);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.work-row:hover .work-arrow {
    background: var(--cyan-dim);
    border-color: rgba(95, 227, 227, 0.4);
    transform: translateX(4px);
}

@media (max-width: 700px) {
    .work-section {
        padding: 72px 5vw;
    }

    .work-row {
        grid-template-columns: 96px 1fr;
        gap: 16px;
        padding: 18px 0;
    }

    .work-title {
        font-size: 22px;
    }

    .work-desc {
        font-size: 13px;
    }

    .work-arrow {
        display: none;
    }
}

/* ABOUT */
.about-section {
    padding: 100px 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.about-illustration {
    width: 100%;
}

.about-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 22px;
}

.about-text {
    font-size: 16px;
    color: var(--white-dim);
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 36px;
}

.about-stat {
    background: var(--bg);
    padding: 20px;
    text-align: center;
}

.about-stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 14px;
    color: var(--white-dim);
}

/* CONTACT */
.contact-section {
    padding: 120px 5vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DM Serif Display', serif;
    font-size: clamp(80px, 16vw, 200px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.022);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* Texto puramente decorativo: fica fora do DOM (via data-text) para não ser auditado como texto de baixo contraste */
.contact-bg-text::before {
    content: attr(data-text);
}

.contact-title {
    position: relative;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(42px, 4.8vw, 68px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 14px;
}

.contact-desc {
    position: relative;
    font-size: 16px;
    color: var(--white-dim);
    margin-bottom: 44px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.contact-actions .btn-cta {
    font-size: 18px;
    padding: 20px 48px;
    box-shadow: 0 0 40px var(--cyan-glow);
}

.contact-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-cta-hint {
    font-size: 14px;
    color: var(--white-dim);
}

.contact-email-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    color: var(--white-dim);
    text-decoration: none;
    min-height: 44px;
    padding: 4px 8px;
    border: none;
    border-radius: var(--r-chip);
    transition: color 0.3s;
    word-break: break-all;
}

.contact-email-link svg {
    width: 18px;
    height: 18px;
}

.contact-email-link:hover {
    color: var(--cyan);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 26px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
}

.footer-copy {
    font-size: 14px;
    color: var(--white-dim);
    white-space: nowrap;
}

.footer-right {
    font-size: 14px;
    color: var(--white-dim);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-right svg {
    color: var(--cyan);
}

/* Atrasos da entrada do hero */
.d1 {
    animation-delay: 0.1s;
}

.d2 {
    animation-delay: 0.2s;
}

.d3 {
    animation-delay: 0.3s;
}

/* HERO: entra só com transform, sem esconder o texto (opacity 0) nem depender de JS.
   O conteúdo do hero é o LCP da home; então não pode esperar o main.js para aparecer. */
@keyframes hero-rise {
    from {
        transform: translateY(24px);
    }
    to {
        transform: none;
    }
}

.hero-rise {
    animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-headline .hero-rise {
    display: inline-block;
}

/* SERVICE ACCORDION
   Sem JS os detalhes ficam abertos. Com JS (.is-collapsible) o painel anima de 0fr para
   1fr, então a altura acompanha o texto em qualquer largura de tela. */
.service-row-toggle {
    all: unset;
    cursor: pointer;
    display: inline;
}

.service-row-toggle:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 2px;
}

.service-row-expand {
    display: grid;
    grid-template-rows: 1fr;
}

.service-row-expand-inner {
    min-height: 0;
    overflow: hidden;
}

.service-row.is-collapsible .service-row-expand {
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.service-row.is-initializing .service-row-expand {
    transition: none;
}

.service-row-expand p {
    font-size: 16px;
    color: var(--white-dim);
    line-height: 1.7;
    margin-top: 12px;
}

.service-row-expand p + p {
    margin-top: 8px;
}

.service-row.is-collapsible.open .service-row-expand {
    grid-template-rows: 1fr;
    opacity: 1;
}

.service-row.open .service-row-title {
    color: var(--cyan);
}

.service-row.open .service-row-num {
    color: var(--cyan);
}

/* O ícone vira "menos" com a linha aberta. Sem JS a linha já vem aberta e o ícone some. */
.service-row-icon {
    flex-shrink: 0;
    color: var(--cyan);
    opacity: 0.75;
    transition: opacity 0.2s;
}

.service-row-icon-v {
    transition: opacity 0.2s;
}

.service-row:hover .service-row-icon,
.service-row.open .service-row-icon {
    opacity: 1;
}

.service-row.open .service-row-icon-v {
    opacity: 0;
}

.service-row:not(.is-collapsible) .service-row-icon {
    visibility: hidden;
}

/* FOCUS VISIBLE — keyboard navigation */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.services-more {
    margin-top: 40px;
}


.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.product-link {
    font-size: 14px;
    color: var(--white-dim);
    text-decoration: none;
    transition: color 0.25s;
}

.product-link:hover {
    color: var(--cyan);
}

.work-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 44px;
    margin-bottom: 28px;
    border: 1px solid rgba(95, 227, 227, 0.22);
    border-radius: 10px;
    background:
            radial-gradient(80% 90% at 0% 0%, rgba(95, 227, 227, 0.09), transparent 65%),
            var(--bg2);
    box-shadow: 0 0 70px -34px var(--cyan-glow);
}

.work-featured-media {
    position: relative;
    display: block;
    text-decoration: none;
}

.work-featured-media:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 6px;
    border-radius: 8px;
}

.work-featured-screen {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-featured-screen img,
.work-featured-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.work-featured-phone {
    position: absolute;
    right: -16px;
    bottom: -24px;
    width: 21%;
    border: 5px solid #1f2733;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 44px -8px rgba(0, 0, 0, 0.75);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-featured-media:hover .work-featured-screen {
    transform: translateY(-4px);
}

.work-featured-media:hover .work-featured-phone {
    transform: translateY(-8px);
}

.work-featured-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.04;
    margin-bottom: 16px;
}

.work-featured-desc {
    max-width: 520px;
    margin-bottom: 24px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--white-dim);
}

.work-featured .product-features {
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .work-featured {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 28px 24px 32px;
    }

    .work-featured-phone {
        right: -6px;
        bottom: -18px;
        width: 24%;
    }
}

@media (max-width: 700px) {
    .work-featured {
        padding: 22px 18px 28px;
    }
}

/* ══ STUDIO: camada visual da home (antes em css/studio.css) ══════════ */
/* abt studio — graphite, brushed silver and restrained cyan. Os tokens ficam no :root do topo. */

body { cursor: auto; }
::selection { color: #0a0d12; background: var(--cyan); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
section[id] { scroll-margin-top: 100px; }
nav:where(:not(.mobile-nav)) { padding: 27px 6vw; }
nav.scrolled { padding: 18px 6vw; background: rgba(10, 13, 18, .88); }
.logo-text { font-size: 13px; letter-spacing: .16em; }
.logo-text span { color: #c2d8e3; }
nav ul { gap: 27px; }
nav ul a { display: inline-block; padding: 10px 0; color: #b1bac5; }
.nav-contact { color: var(--white) !important; border-color: rgba(203, 226, 235, .28); padding: 11px 20px; }
.nav-lang { border: 0; }

.hero {
    --hero-light-x: 77%;
    --hero-light-y: 46%;
    min-height: 810px;
    min-height: min(900px, max(810px, 100svh));
    padding: 160px 6vw 0;
    justify-content: center;
    isolation: isolate;
    background: radial-gradient(
        ellipse 76% 84% at var(--hero-light-x) var(--hero-light-y),
        #152b38, #101d28 36%, var(--bg) 90%
    );
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../images/illustrations/hero-grain.webp') repeat;
    mask-image: radial-gradient(
        ellipse 84% 78% at var(--hero-light-x) var(--hero-light-y),
        #000 12%, #0009 48%, transparent 92%
    );
    mix-blend-mode: screen;
    opacity: .12;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#5fe3e310 1px, transparent 1px),
        linear-gradient(90deg, #5fe3e310 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(
        ellipse 64% 70% at var(--hero-light-x) var(--hero-light-y),
        #000 8%, transparent 86%
    );
    pointer-events: none;
}
.hero-glow-1, .hero-glow-2 { display: none; }
.hero-content { width: 53%; padding: 0 0 120px; }
.hero-tag { margin-bottom: 30px; }
.hero-tag::before { width: 18px; }
.hero-headline { font-size: clamp(64px, 7.65vw, 114px); line-height: .96; letter-spacing: -.035em; max-width: none; margin-bottom: 30px; }
.hero-headline .line-italic { color: var(--cyan); }
.hero-bottom { flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-desc { max-width: 470px; font-size: 18px; line-height: 1.7; }
.hero-cta-group { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-cta {
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bg);
    padding: 16px 24px;
    gap: 14px;
}
.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cyan);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: background .25s;
}
.btn-cta::after {
    content: '';
    order: -1;
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    background: currentColor;
    opacity: .7;
}
.btn-cta:hover { background: transparent; box-shadow: none; }
.btn-cta:hover::before { background: var(--white); }
.btn-cta:active { transform: translateY(1px); }
.hero-work-link { color: var(--white); font-size: 14px; text-decoration: none; display: inline-flex; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(202, 223, 236, .3); }
.hero-work-link span { color: var(--cyan); }
.hero-art {
    position: absolute;
    right: 1.5vw;
    top: 48%;
    width: 49%;
    aspect-ratio: 960 / 700;
    transform: translateY(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse closest-side, #244b6138, transparent);
}
.hero-art img, .hero-art-canvas {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
}
.hero-art img {
    inset: 0;
    padding: 4% 3%;
    object-fit: contain;
    filter: hue-rotate(169deg) saturate(1.06);
    mask-image: radial-gradient(ellipse 49% 49% at center, #000 68%, #000d 83%, transparent 100%);
}
.hero-art-canvas {
    inset: -17% 0;
    height: 134%;
    opacity: 0;
    filter: drop-shadow(0 0 18px #4cbcec24);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .hero-art.is-rendered img { opacity: 0; transition: opacity .32s ease; }
    .hero-art.is-rendered .hero-art-canvas { opacity: 1; transition: opacity .4s ease; }
}
.hero-signature { position: absolute; bottom: 0; left: 6vw; right: 6vw; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); font-size: 14px; color: #8392a5; }

.work-section, .services-section, .process-section { padding: 112px 6vw; }
.work-section { background: linear-gradient(180deg, #10151c 0%, #0b0f15 100%); border-bottom: 1px solid var(--border); }
.work-header { margin-bottom: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px 64px; align-items: end; }
.work-heading, .services-title, .process-title { font-size: clamp(42px, 4.8vw, 68px); letter-spacing: -.025em; line-height: 1.05; }
.work-heading { margin: 0; }
.work-lead { max-width: 420px; margin: 0 0 4px auto; font-size: 16px; line-height: 1.8; }
.work-featured { grid-template-columns: 1.35fr 1fr; gap: 48px; border: 1px solid rgba(192, 214, 236, .16); padding: 0; border-radius: var(--r-card); overflow: hidden; box-shadow: none; background: #131a24; }
.work-featured-media { min-height: 500px; height: 100%; padding: 86px 30px 90px; display: flex; align-items: center; background: radial-gradient(ellipse at 30% 25%, #53687d55, transparent 70%), linear-gradient(145deg, #273745, #151e2b); overflow: hidden; }
.work-featured-media::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#c4dce00a 1px, transparent 1px), linear-gradient(90deg, #c4dce00a 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(#000, transparent); pointer-events: none; }
.work-featured-screen { position: relative; width: 95%; transform: perspective(1000px) rotateY(8deg) rotateX(3deg); border: 5px solid #374555; border-radius: 12px; box-shadow: 0 35px 65px #0007; }
.work-featured-phone { right: 22px; bottom: 50px; width: 20%; border-color: #465363; z-index: 1; }
.work-featured-media:hover .work-featured-screen { transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-4px); }
.work-featured-body { padding: 40px 36px 40px 0; }
.work-kind { line-height: 1.6; color: #b1bfce; margin-bottom: 16px; }
.work-kind::before { background: var(--cyan); }
.work-featured-title { font-size: clamp(36px, 3.6vw, 48px); }
.work-featured-desc { font-size: 16px; }
.work-featured .product-features { margin-bottom: 24px; }
.btn-outline { border-color: #9dc5d14d; color: #d7ecee; }
.product-actions { gap: 16px; }
.product-link { display: inline-flex; align-items: center; min-height: 44px; }
.work-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border: 0; }
.work-rows li { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: #111720; transition: border-color .25s; }
.work-rows li:hover { border-color: #9fc5d94d; }
.work-row { height: 100%; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.work-row:hover { background: transparent; }
.work-thumb { border: 0; border-radius: 0; aspect-ratio: 1.5; padding: 28px 24px 0; background: #e1e4df; overflow: hidden; }
.work-rows li:nth-child(2) .work-thumb { background: #243348; }
.work-rows li:nth-child(3) .work-thumb { background: #c8d9df; }
.work-thumb img { height: auto; min-height: 100%; border-radius: 6px 6px 0 0; object-fit: cover; box-shadow: 0 12px 24px #0003; }
.work-body { padding: 26px 26px 32px; }
.work-title { font-size: 32px; margin-bottom: 12px; }
.work-desc { font-size: 15px; line-height: 1.7; padding-right: 12px; }
.work-arrow { display: flex; position: absolute; bottom: 23px; right: 18px; width: 26px; height: 26px; border: 0; }

.services-header { margin-bottom: 40px; }
.services-subtitle { font-size: 16px; line-height: 1.8; max-width: 350px; }
.service-row { grid-template-columns: 38px minmax(0, 1fr) 160px 28px; gap: 26px; padding: 28px 0; }
.service-row-illustration { display: block; width: 160px; max-width: 100%; height: auto; }
.service-row-title { font-size: clamp(22px, 2.25vw, 32px); letter-spacing: -.02em; }
.service-row-desc { color: var(--white-dim); line-height: 1.8; max-width: 650px; }
.service-row-tags .tag { color: #a2b4c6; }
.service-row:hover .service-row-title { transform: none; }
.service-row:hover { background: linear-gradient(90deg, transparent, #5fe3e305, transparent); }

.about-section { padding: 100px 6vw; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #10151c; }
.about-visual { position: relative; }
.about-illustration { display: block; height: auto; }
.about-title { letter-spacing: -.025em; }
.about-stats { border-radius: var(--r-card); overflow: hidden; }
.process-section { background: radial-gradient(ellipse at 50% 100%, #526f9310, transparent 70%); }
.process-grid { border: 0; background: transparent; gap: 20px; }
.process-step { position: relative; border: 1px solid var(--border); border-radius: var(--r-card); background: linear-gradient(145deg, #1a253055, #0c1119); padding: 26px 24px 30px; gap: 16px; }
.process-step:hover { background: #141d28; }
.process-step-num { color: #94a8bd; }
.process-illustration { width: 154px; margin: 0 0 4px; }
.process-step-title { font-size: 18px; }
.process-step-desc { font-size: 15px; color: #a4afbd; }
.contact-section {
    padding: 120px 6vw;
    background: radial-gradient(ellipse at 50% 90%, #5fe3e310, transparent 65%);
}
/* A ilustração só entra quando sobra margem ao lado do texto, para não passar por trás dele. */
@media (min-width: 1360px) {
    .contact-section {
        background:
            url("/images/illustrations/contact-signal.svg") right -16px top 24% / 440px auto no-repeat,
            radial-gradient(ellipse at 50% 90%, #5fe3e310, transparent 65%);
    }
}
.contact-title { letter-spacing: -.03em; }
.contact-bg-text { opacity: .025; }
.divider { margin-inline: 6vw; }
footer { padding-inline: 6vw; }

@media (min-width: 1600px) {
    .hero-art { width: 750px; right: calc((100vw - 1500px) / 2); }
    .hero-content { max-width: 670px; }
}
@media (max-width: 1100px) {
    nav ul { gap: 20px; }
    .hero { min-height: 790px; padding-top: 150px; }
    .hero-art { width: 47%; right: 0; }
    .hero-content { width: 57%; }
    .hero-headline { font-size: 8.3vw; }
    .work-featured { grid-template-columns: 1.1fr 1fr; gap: 28px; }
    .work-featured-media { padding-inline: 20px; }
    .work-featured-body { padding-right: 24px; }
    .work-featured .product-features { display: none; }
    .work-body { padding: 22px 20px 30px; }
    .work-thumb { padding: 20px 16px 0; }
}
@media (max-width: 900px) {
    .hero { --hero-light-x: 58%; --hero-light-y: 70%; min-height: auto; padding: 140px 6vw 0; }
    .hero-grid { background-size: 72px 72px; }
    .hero-content { width: 100%; padding-bottom: 28px; order: 0; }
    .hero-headline { font-size: clamp(62px, 10vw, 88px); max-width: 630px; }
    .hero-desc { max-width: 500px; }
    .hero-art { order: 1; position: relative; top: auto; right: auto; width: min(520px, 88%); align-self: center; margin: -15px 0 20px; transform: none; }
    .hero-signature { order: 2; position: relative; left: auto; right: auto; width: 100%; min-height: 75px; }
    .hero-signature span:nth-child(2) { display: none; }
    .work-featured { grid-template-columns: 1fr; gap: 0; }
    .work-featured-media { min-height: 380px; padding: 52px 42px 64px; }
    .work-featured-screen { width: 93%; }
    .work-featured-phone { width: 17%; right: 35px; bottom: 26px; }
    .work-featured-body { padding: 36px; }
    .work-featured .product-features { display: grid; }
    .work-featured-title { font-size: 44px; }
    .work-header { grid-template-columns: 1fr; gap: 16px; }
    .work-lead { margin: 0; max-width: 550px; }
    .work-rows { gap: 16px; }
    .work-title { font-size: 27px; }
    .work-desc { font-size: 14px; }
    .work-thumb { aspect-ratio: 1.2; padding: 20px 12px 0; }
    .work-body { padding: 20px 16px 32px; }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-row { grid-template-columns: 28px minmax(0, 1fr) 120px 24px; gap: 18px; }
    .service-row-illustration { width: 120px; }
}
@media (max-width: 600px) {
    nav { padding: 20px 6vw; }
    .brand-lockup { width: 130px; height: auto; }
    .hero { padding-top: 120px; }
    .hero-tag { font-size: 15px; gap: 8px; margin-bottom: 28px; }
    .hero-headline { font-size: clamp(54px, 13vw, 76px); line-height: .99; margin-bottom: 25px; }
    .hero-desc { font-size: 16px; line-height: 1.7; }
    .hero-bottom { gap: 22px; }
    .hero-cta-group { gap: 18px; }
    .btn-cta { padding: 14px 20px; font-size: 15px; }
    .hero-work-link { gap: 12px; }
    .hero-art { width: 100%; margin: -4px 0 18px; }
    .hero-signature { min-height: 65px; gap: 6px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 0; }
    .work-section, .services-section, .process-section { padding: 72px 6vw; }
    .work-heading, .services-title, .process-title { font-size: 43px; }
    .work-header { margin-bottom: 30px; }
    .work-featured { margin-bottom: 22px; }
    .work-featured-media { min-height: 260px; padding: 38px 16px 55px; }
    .work-featured-screen { width: 93%; border-width: 3px; border-radius: 7px; }
    .work-featured-phone { width: 20%; right: 12px; bottom: 20px; border-width: 3px; border-radius: 13px; }
    .work-featured-body { padding: 28px 24px; }
    .work-featured-title { font-size: 34px; }
    .work-featured .product-features { display: none; }
    .work-rows { grid-template-columns: 1fr; gap: 22px; }
    .work-thumb { aspect-ratio: 1.5; padding: 30px 24px 0; }
    .work-body { padding: 26px; }
    .work-title { font-size: 32px; }
    .work-desc { font-size: 15px; }
    .work-arrow { bottom: 18px; right: 12px; }
    .services-header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .service-row { grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 10px; padding: 24px 0; }
    .service-row-content { grid-column: 2; }
    .service-row-illustration { grid-column: 2; grid-row: 1; width: 130px; margin-bottom: 12px; }
    .service-row-num { grid-column: 1; grid-row: 1; align-self: start; margin-top: 14px; }
    .service-row-icon { grid-column: 3; grid-row: 1; }
    .service-row-title { font-size: 22px; }
    .service-row-tags { flex-wrap: wrap; }
    .about-section { padding: 72px 6vw; }
    .process-grid { grid-template-columns: 1fr; gap: 14px; }
    .process-step { padding: 22px 18px; }
    .process-step-title { line-height: 1.4; }
    .process-step-desc { font-size: 15px; }
    .process-illustration { width: 120px; }
    .contact-section { padding: 90px 6vw; }
    footer { flex-wrap: wrap; row-gap: 10px; }
}
@media (max-width: 360px) {
    .hero-cta-group { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .hero-rise { transform: none !important; }
}

/* Shared browser mockups preserve each project's own visual identity. */
.work-rows li .work-thumb.work-thumb--mockup {
    container-type: inline-size;
    display: grid;
    place-items: center;
    padding: 8% 7%;
    aspect-ratio: 3 / 2;
    background: radial-gradient(ellipse at 30% 20%, #53687d33, transparent 75%), #1a2430;
}
.work-browser {
    width: 100%;
    overflow: hidden;
    border: 1px solid #8297aa55;
    border-radius: 7px;
    background: #24313e;
    box-shadow: 0 16px 30px -10px #0009, 0 2px 5px #0003;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.work-browser-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(16px, 6cqw, 26px);
    border-bottom: 1px solid #a4b7c622;
    color: #bac6d0;
}
.work-browser-dots {
    position: absolute;
    left: 4%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #91a4b5;
    box-shadow: 6px 0 #91a4b5, 12px 0 #91a4b5;
}
.work-browser-address {
    padding-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(5px, 2cqw, 9px);
    letter-spacing: .01em;
}
.work-thumb--mockup .work-browser img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 8 / 5;
    border-radius: 0;
    object-fit: cover;
    object-position: top;
    box-shadow: none;
    transform: none;
}
.work-row:is(:hover, :focus-visible) .work-browser { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
    .work-row:is(:hover, :focus-visible) .work-browser { transform: none; }
}

/* ══ CONVERSÃO E ECOSSISTEMA ═════════════════════════════════════════ */

/* Convite curto para iniciar um projeto no meio da página */
.inline-cta {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    padding: 28px 32px;
    border: 1px solid rgba(95, 227, 227, .22);
    border-radius: var(--r-card);
    background: radial-gradient(120% 160% at 0% 0%, rgba(95, 227, 227, .08), transparent 60%), #111821;
}
.inline-cta-title { font-family: 'DM Serif Display', serif; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: var(--white); }
.inline-cta-sub { margin-top: 6px; max-width: 56ch; font-size: 15px; line-height: 1.6; color: var(--white-dim); }
.inline-cta .btn-cta { flex-shrink: 0; }

/* Três frentes da empresa: desenvolvimento, ABT AI e abt studio */
.fronts { margin-top: 72px; }
.fronts-header { margin-bottom: 28px; }
.fronts-title { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.fronts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.front-card {
    --accent: var(--cyan);
    --accent-soft: rgba(95, 227, 227, .1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px 26px;
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    background: radial-gradient(120% 90% at 0% 0%, var(--accent-soft), transparent 65%), #111821;
    box-shadow: inset 0 2px 0 var(--accent);
}
.front-card--ai { --accent: #8b6cff; --accent-soft: rgba(108, 71, 255, .18); border-color: rgba(139, 108, 255, .35); background-color: #120f1c; }
.front-card--studio { --accent: #e7d8bd; --accent-soft: rgba(231, 216, 189, .09); }
.front-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.front-card-logo { display: block; height: 14px; width: auto; }
.front-card-logo--tech { height: 30px; }
.front-card-logo--studio { height: 36px; }
.front-card-badge { padding: 4px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.front-card--ai .front-card-badge { background: #8b6cff; color: #0f0a1c; }
.front-card-title { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--white); }
.front-card p { font-size: 15px; line-height: 1.65; color: var(--white-dim); }
.front-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.front-card-tags span { padding: 4px 8px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--white-dim); font: 13px 'JetBrains Mono', monospace; letter-spacing: .03em; }
.front-card-link { margin-top: auto; min-height: 44px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: none; }
.front-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Selo com um resultado real de cada trabalho */
.work-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--cyan);
}
.work-proof::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px var(--cyan); }
.work-featured-body .work-proof { margin: 0 0 22px; }

/* O que acontece depois do formulário */
.contact-steps { position: relative; max-width: 760px; margin: 56px auto 0; text-align: left; }
.contact-steps-title { margin-bottom: 14px; text-align: center; font-size: 14px; color: var(--white-dim); }
.contact-steps ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-steps li { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: #10161fcc; font-size: 15px; line-height: 1.5; color: var(--white); }
.contact-step-num { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--cyan); }

/* Menu: seção atual e atalho de contato no celular */
nav ul a.is-active { color: var(--cyan); }
.nav-mobile-contact { display: none; }
@media (max-width: 1180px) {
    .nav-mobile-contact {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-left: auto;
        margin-right: 12px;
        padding: 0 16px;
        border: 1px solid rgba(95, 227, 227, .35);
        border-radius: var(--r-pill);
        color: var(--white);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }
    .nav-mobile-contact:hover { border-color: var(--cyan); color: var(--cyan); }
}

@media (max-width: 900px) {
    .fronts-grid { grid-template-columns: 1fr; }
    .inline-cta { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
}

/* Celular: menos rolagem. Ilustrações decorativas menores ou fora, cards mais enxutos. */
@media (max-width: 600px) {
    .inline-cta { margin-top: 36px; }
    .fronts { margin-top: 56px; }
    .front-card { padding: 24px 20px 20px; }
    .contact-steps { margin-top: 44px; }
    .contact-steps ol { grid-template-columns: 1fr; }
    .contact-steps li { flex-direction: row; align-items: baseline; gap: 12px; padding: 14px 16px; }

    .work-rows li .work-thumb.work-thumb--mockup { aspect-ratio: 16 / 9; padding: 5% 7% 0; align-items: end; }
    .work-thumb--mockup .work-browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .work-body { padding: 20px 20px 24px; }
    .work-title { font-size: 26px; margin-bottom: 8px; }
    .work-rows { gap: 16px; }

    .service-row-illustration { display: none; }
    .service-row-num { margin-top: 6px; }
    .service-row { padding: 22px 0; }

    .process-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: start; }
    .process-step > * { grid-column: 2; }
    .process-step .process-illustration { grid-column: 1; grid-row: 1 / span 3; width: 64px; margin: 0; }
    .process-step-num { grid-row: 1; }

    .about-illustration { max-width: 240px; margin: 0 auto; }
    .nav-mobile-contact { padding: 0 12px; margin-right: 10px; }
}
@media (max-width: 360px) {
    .nav-mobile-contact { display: none; }
}

/* Celular: trabalhos, frentes e artigos viram faixas que deslizam para o lado. O próximo
   card aparece pela metade, para deixar claro que há mais. */
@media (max-width: 600px) {
    .work-rows, .fronts-grid {
        display: flex;
        gap: 14px;
        margin-inline: -6vw;
        padding: 4px 6vw 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 6vw;
        scrollbar-width: none;
    }
    .work-rows::-webkit-scrollbar, .fronts-grid::-webkit-scrollbar { display: none; }
    .work-rows > li, .fronts-grid > .front-card {
        flex: 0 0 84%;
        min-width: 0;
        scroll-snap-align: start;
    }
}
