:root {
    --blue: #2065fb;
    --blue-deep: #134fe0;
    --ink: #111214;
    --black: #0a0a0b;
    --charcoal: #1b1c1e;
    --graphite: #323438;
    --muted: #72767d;
    --line: #e3e5e8;
    --soft: #f5f6f7;
    --white: #ffffff;
    --success: #128c55;
    --container: 1320px;
    --radius: 0px;
    --shadow: 0 22px 70px rgba(17,18,20,.09);
    --header-h: 104px;
    --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--blue); color: var(--white); }

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    transform: translateY(-160%);
    padding: 10px 14px;
    background: var(--black);
    color: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow--light { color: rgba(255,255,255,.68); }
.eyebrow--blue { color: var(--blue); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}
h1 { font-size: clamp(2.8rem, 5.2vw, 5.7rem); }
h2 { font-size: clamp(2.2rem, 3.5vw, 4.1rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 2rem); }
p { margin-bottom: 1.1em; }

.section { padding: clamp(78px, 9vw, 132px) 0; }
.section--compact { padding: clamp(62px, 7vw, 94px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--black); color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr);
    gap: clamp(32px, 7vw, 110px);
    align-items: end;
    margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head h2 { margin-bottom: 0; max-width: 880px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p:last-child { color: rgba(255,255,255,.62); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    font-size: .86rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .02em;
    transition: .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--white); }
.btn--blue { border-color: var(--blue); background: var(--blue); color: var(--white); }
.btn--blue:hover, .btn--blue:focus-visible { border-color: var(--blue-deep); background: var(--blue-deep); }
.btn--light { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { background: transparent; color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { border-color: var(--white); background: var(--white); color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    height: var(--header-h);
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(17,18,20,.08);
    backdrop-filter: blur(12px);
}
.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 248px; height: auto; max-height: 84px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.primary-nav > a:not(.nav-cta) {
    position: relative;
    padding: 38px 0 34px;
    font-size: .87rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.primary-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 28px;
    height: 2px;
    background: var(--blue);
    transition: right .2s ease;
}
.primary-nav > a:not(.nav-cta):hover::after,
.primary-nav > a:not(.nav-cta)[aria-current="page"]::after { right: 0; }
.nav-cta {
    padding: 11px 15px;
    border: 1px solid var(--ink);
    font-size: .78rem;
    font-weight: 700;
}
.nav-cta:hover { background: var(--ink); color: var(--white); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
}
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s ease; }

/* Home hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    min-height: clamp(600px, calc(100vh - var(--header-h)), 660px);
    background: var(--blue);
}
.hero__copy {
    display: flex;
    align-items: center;
    color: var(--white);
    padding: clamp(44px, 4.1vw, 62px) clamp(48px, 4.6vw, 74px) clamp(44px, 4.1vw, 62px) max(48px, calc((100vw - var(--container))/2 + 24px));
}
.hero__copy-inner { max-width: 660px; }
.hero h1 {
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(3.35rem, 4.15vw, 4.55rem);
    line-height: 1.035;
}
.hero__lead {
    max-width: 610px;
    margin-bottom: 27px;
    color: rgba(255,255,255,.88);
    font-size: clamp(.98rem, 1.05vw, 1.12rem);
    line-height: 1.5;
}
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 27px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.38);
    color: rgba(255,255,255,.76);
    font-size: .8rem;
    letter-spacing: .035em;
}
.hero__visual { position: relative; min-height: 520px; overflow: hidden; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__visual::after {
    content: "";
    position: absolute;
    inset: auto auto 28px 0;
    width: 34px;
    height: 3px;
    background: var(--white);
}

/* segment cards */
.segment-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); }
.segment-card {
    position: relative;
    min-height: 305px;
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    border-right: 1px solid var(--line);
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.segment-card:last-child { border-right: 0; }
.segment-card:nth-child(even) { background: var(--ink); color: var(--white); border-color: #2c2e31; }
.segment-card__number { margin-bottom: auto; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.segment-card h3 { margin: 42px 0 14px; font-size: 1.5rem; }
.segment-card p { margin: 0 0 28px; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.segment-card:nth-child(even) p { color: rgba(255,255,255,.58); }
.segment-card__link { margin-top: auto; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.segment-card:hover { z-index: 2; transform: translateY(-4px); box-shadow: var(--shadow); }

/* solutions */
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid #303236; border-left: 1px solid #303236; }
.solution-card { min-height: 330px; padding: 38px; border-right: 1px solid #303236; border-bottom: 1px solid #303236; color: var(--white); background: var(--black); }
.solution-card__kicker { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.solution-card h3 { margin: 66px 0 15px; font-size: clamp(1.45rem, 2vw, 2rem); }
.solution-card p { min-height: 82px; color: rgba(255,255,255,.58); font-size: .94rem; }
.solution-card a { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.solution-card a span { color: var(--blue); font-size: 1.15em; }

/* method */
.method { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(42px, 8vw, 120px); align-items: start; }
.method__intro { position: sticky; top: calc(var(--header-h) + 36px); }
.method__intro h2 { margin-bottom: 24px; }
.method__intro p { max-width: 520px; color: var(--muted); }
.method-list { counter-reset: method; border-top: 1px solid var(--line); }
.method-item {
    counter-increment: method;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.method-item::before { content: "0" counter(method); color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .08em; padding-top: 4px; }
.method-item h3 { margin: 0 0 8px; font-size: 1.28rem; }
.method-item p { margin: 0; color: var(--muted); }

/* cases */
.case-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.case-card { position: relative; min-height: 330px; overflow: hidden; background: var(--ink); color: var(--white); }
.case-card--wide { grid-column: span 7; }
.case-card--narrow { grid-column: span 5; }
.case-card--third { grid-column: span 4; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.case-card:hover img { transform: scale(1.025); }
.case-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.82) 100%); }
.case-card__content { position: absolute; inset: auto 28px 25px; z-index: 2; }
.case-card__content p { margin: 0 0 5px; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.case-card__content h3 { margin: 0; font-size: 1.45rem; }
.case-card--porto { display: flex; flex-direction: column; justify-content: space-between; padding: 38px; background: var(--blue); }
.case-card--porto::after { content: "PT"; position: absolute; right: 24px; top: 16px; color: rgba(255,255,255,.11); font-size: 9rem; font-weight: 800; line-height: 1; }
.case-card--porto h3 { max-width: 390px; font-size: clamp(2rem, 3vw, 3.3rem); }
.case-card--porto p { max-width: 450px; color: rgba(255,255,255,.78); }
.case-card--porto a { align-self: flex-start; border-bottom: 1px solid rgba(255,255,255,.55); font-size: .82rem; font-weight: 800; }

/* insights */
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.insight-card { display: flex; flex-direction: column; min-height: 310px; padding: 30px; border: 1px solid var(--line); background: var(--white); }
.insight-card__meta { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.insight-card h2,
.insight-card h3 {
    margin: 46px 0 18px;
    font-size: clamp(1.9rem, 2.1vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    overflow-wrap: normal;
    hyphens: auto;
}
.insight-card p { color: var(--muted); font-size: .92rem; }
.insight-card a { margin-top: auto; font-size: .8rem; font-weight: 800; }

/* internal hero */
.page-hero { padding: clamp(74px, 9vw, 126px) 0 clamp(70px, 8vw, 112px); border-bottom: 1px solid var(--line); background: var(--white); }
.page-hero--dark { background: var(--black); color: var(--white); border-color: #292b2e; }
.page-hero--blue { background: var(--blue); color: var(--white); border-color: transparent; }
.page-hero__grid { display: grid; grid-template-columns: 1.08fr .72fr; gap: clamp(40px, 8vw, 126px); align-items: end; }
.page-hero h1 { max-width: 880px; margin: 0; font-size: clamp(2.8rem, 5.6vw, 5.8rem); }
.page-hero__lead { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; }
.page-hero--dark .page-hero__lead, .page-hero--blue .page-hero__lead { color: rgba(255,255,255,.72); }
.breadcrumbs { margin-bottom: 35px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px 11px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .75rem; letter-spacing: .04em; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 11px; opacity: .45; }
.page-hero--dark .breadcrumbs ol, .page-hero--blue .breadcrumbs ol { color: rgba(255,255,255,.55); }

/* listings */
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.listing-card { min-height: 300px; padding: 38px; background: var(--white); }
.listing-card:nth-child(4n+2), .listing-card:nth-child(4n+3) { background: var(--ink); color: var(--white); }
.listing-card__eyebrow { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.listing-card h2, .listing-card h3 { margin: 52px 0 15px; font-size: clamp(1.6rem, 2.3vw, 2.4rem); }
.listing-card p { max-width: 580px; color: var(--muted); }
.listing-card:nth-child(4n+2) p, .listing-card:nth-child(4n+3) p { color: rgba(255,255,255,.58); }
.listing-card a { display: inline-block; margin-top: 16px; border-bottom: 1px solid currentColor; font-size: .8rem; font-weight: 800; }

/* solution detail */
.detail-intro { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(44px, 8vw, 120px); }
.detail-intro__label { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-intro__copy { font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.45; letter-spacing: -.02em; }
.detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(26px, 5vw, 70px); }
.detail-box { padding-top: 28px; border-top: 2px solid var(--ink); }
.detail-box h2 { margin-bottom: 26px; font-size: 1.65rem; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid var(--line); }
.clean-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 2px; background: var(--blue); }

.faq { max-width: 960px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; padding: 24px 52px 24px 0; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 20px; color: var(--blue); font-size: 1.55rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 800px; padding: 0 0 25px; color: var(--muted); }

.related-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); }
.related-strip a { min-height: 160px; padding: 25px; border-right: 1px solid var(--line); }
.related-strip a:last-child { border-right: 0; }
.related-strip span { display: block; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.related-strip strong { display: block; margin-top: 36px; font-size: 1.1rem; line-height: 1.2; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.about-grid img { width: 100%; min-height: 520px; object-fit: cover; }
.about-copy h2 { margin-bottom: 25px; }
.about-copy p { color: var(--muted); font-size: 1.03rem; }
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle span { color: var(--blue); font-size: .75rem; font-weight: 800; }
.principle h3 { margin: 54px 0 12px; }
.principle p { margin: 0; color: var(--muted); font-size: .9rem; }

/* case porto */
.porto-hero { min-height: 600px; display: flex; align-items: flex-end; padding: 90px 0; background: var(--blue); color: var(--white); overflow: hidden; position: relative; }
.porto-hero::after { content: "PORTO"; position: absolute; right: -2vw; top: 8%; color: rgba(255,255,255,.08); font-size: clamp(7rem, 22vw, 22rem); font-weight: 800; line-height: .8; letter-spacing: -.08em; }
.porto-hero__content { position: relative; z-index: 2; max-width: 900px; }
.porto-hero h1 { margin-bottom: 28px; }
.porto-hero p { max-width: 650px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); }
.case-fact { padding: 30px; border-right: 1px solid var(--line); }
.case-fact:last-child { border-right: 0; }
.case-fact span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.case-fact strong { display: block; margin-top: 16px; font-size: 1.25rem; font-weight: 600; }

/* article */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: clamp(46px, 8vw, 120px); justify-content: center; align-items: start; }
.article-content .article-intro { font-size: 1.35rem; line-height: 1.55; letter-spacing: -.015em; }
.article-content section { padding: 32px 0; border-top: 1px solid var(--line); }
.article-content section h2 { margin-bottom: 16px; font-size: 1.65rem; }
.article-content section p { color: #54585e; }
.article-aside { position: sticky; top: calc(var(--header-h) + 30px); padding: 28px; background: var(--soft); }
.article-aside p { color: var(--muted); font-size: .88rem; }
.article-aside a { display: inline-block; margin-top: 8px; font-weight: 800; border-bottom: 1px solid currentColor; }

/* contact */
.contact-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(42px, 7vw, 100px); align-items: start; }
.contact-info { position: sticky; top: calc(var(--header-h) + 30px); }
.contact-info h2 { margin-bottom: 22px; }
.contact-info p { color: var(--muted); }
.contact-lines { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-lines a, .contact-lines span { display: block; padding: 8px 0; }
.contact-form { padding: clamp(30px, 4vw, 52px); background: var(--soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 19px 20px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.field label .optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid #d7dade;
    border-radius: 0;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
    outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(32,101,251,.10); }
.field textarea { min-height: 145px; resize: vertical; }
.form-help { margin: 20px 0; color: var(--muted); font-size: .8rem; }
.form-status { min-height: 24px; margin-top: 13px; font-size: .86rem; font-weight: 700; }
.form-status.is-error { color: #a52b2b; }
.form-status.is-success { color: var(--success); }

/* final CTA */
.final-cta { position: relative; min-height: 500px; display: flex; align-items: center; color: var(--white); background: url('/assets/images/cta-fundo.webp') center/cover no-repeat; overflow: hidden; }
.final-cta__overlay { position: absolute; inset: 0; background: rgba(7,8,9,.78); }
.final-cta__inner { position: relative; z-index: 2; padding-block: 86px; }
.final-cta h2 { max-width: 880px; margin-bottom: 24px; }
.final-cta p { max-width: 620px; color: rgba(255,255,255,.7); font-size: 1.02rem; }
.final-cta .button-row { margin-top: 32px; }

/* footer */
.site-footer { padding: 72px 0 24px; background: var(--black); color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr .8fr .65fr .9fr; gap: 55px; padding-bottom: 58px; }
.site-footer__brand img { width: 235px; height: auto; margin-bottom: 25px; }
.site-footer__brand p { max-width: 390px; color: rgba(255,255,255,.6); }
.site-footer__location { font-size: .82rem; }
.site-footer h2 { margin-bottom: 20px; color: rgba(255,255,255,.48); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--white); }
.site-footer address { color: rgba(255,255,255,.64); font-style: normal; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid #2a2c30; color: rgba(255,255,255,.42); font-size: .76rem; }
.site-footer__bottom p { margin: 0; }

/* 404 */
.error-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 80px 0; background: var(--blue); color: var(--white); }
.error-page__inner { max-width: 850px; }
.error-code { color: rgba(255,255,255,.18); font-size: clamp(6rem, 20vw, 14rem); font-weight: 800; line-height: .8; letter-spacing: -.08em; }
.error-page h1 { margin: 26px 0 20px; }
.error-page p { max-width: 600px; color: rgba(255,255,255,.78); }

@media (max-width: 1120px) {
    .primary-nav { gap: 17px; }
    .primary-nav > a:not(.nav-cta) { font-size: .81rem; }
    .nav-cta { display: none; }
    .segment-grid { grid-template-columns: repeat(3, 1fr); }
    .segment-card { border-bottom: 1px solid var(--line); }
    .segment-card:nth-child(even) { border-color: #2c2e31; }
    .segment-card:nth-child(3) { border-right: 0; }
    .segment-card:nth-child(4) { border-left: 0; }
    .segment-card:last-child { border-right: 1px solid var(--line); }
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .site-footer__grid > :last-child { grid-column: 2 / 4; }
}

@media (max-width: 860px) {
    :root { --header-h: 78px; }
    .container { width: min(calc(100% - 32px), var(--container)); }
    .brand img { width: 205px; max-height: 66px; }
    .nav-toggle { display: block; position: relative; z-index: 1002; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 22px 24px 40px;
        background: var(--white);
        transform: translateX(100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav > a:not(.nav-cta) { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .primary-nav > a:not(.nav-cta)::after { display: none; }
    .nav-cta { display: inline-flex; justify-content: center; margin-top: 24px; padding: 15px; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero__copy { padding: 72px 26px 66px; }
    .hero__visual { min-height: 440px; }
    .hero__visual::after { left: 26px; }
    .section-head, .page-hero__grid, .detail-intro, .about-grid, .contact-layout { grid-template-columns: 1fr; }
    .section-head { align-items: start; }
    .segment-grid { grid-template-columns: repeat(2, 1fr); }
    .segment-card:nth-child(odd), .segment-card:nth-child(even) { border-right: 1px solid var(--line); }
    .segment-card:nth-child(2n) { border-right: 0; }
    .solution-grid { grid-template-columns: 1fr 1fr; }
    .method { grid-template-columns: 1fr; }
    .method__intro { position: static; }
    .case-card--wide, .case-card--narrow { grid-column: span 6; }
    .case-card--third { grid-column: span 4; }
    .insight-grid { grid-template-columns: 1fr; }
    .insight-card { min-height: 270px; }
    .listing-grid { grid-template-columns: 1fr; }
    .listing-card:nth-child(4n+2), .listing-card:nth-child(4n+3) { background: var(--white); color: var(--ink); }
    .listing-card:nth-child(even) { background: var(--ink); color: var(--white); }
    .listing-card:nth-child(4n+2) p, .listing-card:nth-child(4n+3) p { color: var(--muted); }
    .listing-card:nth-child(even) p { color: rgba(255,255,255,.58); }
    .related-strip { grid-template-columns: repeat(2, 1fr); }
    .related-strip a:nth-child(2) { border-right: 0; }
    .related-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .principles-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside, .contact-info { position: static; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid > :last-child { grid-column: auto; }
}

@media (max-width: 620px) {
    body { font-size: 15.5px; }
    .brand img { width: 190px; max-height: 62px; }
    .section { padding: 72px 0; }
    .hero__copy { padding-top: 58px; }
    .hero__visual { min-height: 330px; }
    .button-row { flex-direction: column; align-items: stretch; }
    .button-row .btn { width: 100%; }
    .segment-grid, .solution-grid, .detail-columns, .principles-grid, .form-grid { grid-template-columns: 1fr; }
    .segment-card, .segment-card:nth-child(odd), .segment-card:nth-child(even) { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
    .segment-card:nth-child(even) { border-color: #2c2e31; }
    .solution-card { min-height: 280px; padding: 30px; }
    .solution-card h3 { margin-top: 48px; }
    .method-item { grid-template-columns: 48px 1fr; gap: 12px; }
    .case-grid { grid-template-columns: 1fr; }
    .case-card--wide, .case-card--narrow, .case-card--third { grid-column: auto; min-height: 330px; }
    .page-hero { padding-top: 58px; }
    .related-strip { grid-template-columns: 1fr; }
    .related-strip a { border-right: 0; border-bottom: 1px solid var(--line); }
    .related-strip a:last-child { border-bottom: 0; }
    .about-grid img { min-height: 360px; }
    .case-facts { grid-template-columns: 1fr; }
    .case-fact { border-right: 0; border-bottom: 1px solid var(--line); }
    .case-fact:last-child { border-bottom: 0; }
    .form-grid .field { grid-column: 1; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; }
}

/* V.13.2.1 — reforço de marca e ajuste cirúrgico dos cards de Conteúdo */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================
   V.13.1 — Projetos, Portfólio e projeto Portugal
   ========================================================== */

/* Dropdown Projetos */
.nav-group { position: relative; flex: 0 0 auto; }
.nav-group__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 38px 0 34px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: .87rem;
    line-height: 1.65;
    font-weight: 600;
    letter-spacing: .01em;
}
.nav-group__trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 28px;
    height: 2px;
    background: var(--blue);
    transition: right .2s ease;
}
.nav-group__trigger:hover::after,
.nav-group__trigger:focus-visible::after,
.nav-group.is-open .nav-group__trigger::after,
.nav-group.is-current .nav-group__trigger::after { right: 0; }
.nav-group__trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.nav-group__chevron { display: inline-block; transform: translateY(-1px); transition: transform .2s ease; font-size: 1rem; }
.nav-group.is-open .nav-group__chevron { transform: translateY(1px) rotate(180deg); }
.nav-submenu {
    position: absolute;
    z-index: 1100;
    top: calc(100% - 10px);
    left: -22px;
    width: 330px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 24px 65px rgba(17,18,20,.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-group.is-open .nav-submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-submenu a { display: block; padding: 15px 16px; border-left: 2px solid transparent; transition: background .18s ease, border-color .18s ease; }
.nav-submenu a + a { border-top: 1px solid var(--line); }
.nav-submenu a:hover, .nav-submenu a:focus-visible, .nav-submenu a[aria-current="page"] { background: var(--soft); border-left-color: var(--blue); }
.nav-submenu a span { display: block; font-size: .92rem; font-weight: 700; line-height: 1.25; }
.nav-submenu a small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.35; }

/* Portfolio */
.portfolio-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.portfolio-toolbar__copy h2 { margin-bottom: 0; font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
.portfolio-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.portfolio-filter {
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #d2d5d9;
    background: transparent;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.portfolio-filter:hover, .portfolio-filter:focus-visible, .portfolio-filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-flow: dense; gap: 12px; }
.portfolio-item {
    position: relative;
    min-height: 370px;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
    text-align: left;
}
.portfolio-item--wide { grid-column: span 2; min-height: 430px; }
.portfolio-item[hidden] { display: none !important; }
.portfolio-item img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .42s ease; }
.portfolio-item:hover img, .portfolio-item:focus-visible img { transform: scale(1.025); }
.portfolio-item:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.portfolio-item__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 44%, rgba(0,0,0,.8) 100%); }
.portfolio-item__caption { position: absolute; z-index: 2; left: 24px; right: 60px; bottom: 23px; }
.portfolio-item__caption span { display: block; margin-bottom: 5px; color: rgba(255,255,255,.68); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-item__caption strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.portfolio-item__expand { position: absolute; z-index: 2; right: 23px; bottom: 22px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.58); font-size: .85rem; }
.portfolio-note { max-width: 780px; margin: 28px 0 0; color: var(--muted); font-size: .82rem; }
.portfolio-bridge__grid { display: grid; grid-template-columns: 1fr .72fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.portfolio-bridge h2 { margin-bottom: 0; }
.portfolio-bridge p { color: rgba(255,255,255,.78); }

.portfolio-lightbox { width: min(1180px, 94vw); max-width: 94vw; height: min(860px, 92vh); max-height: 92vh; padding: 0; border: 0; background: var(--black); color: var(--white); overflow: hidden; }
.portfolio-lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.portfolio-lightbox__bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px 14px 24px; border-bottom: 1px solid #2c2e31; }
.portfolio-lightbox__bar span { display: block; color: rgba(255,255,255,.48); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-lightbox__bar strong { display: block; margin-top: 3px; font-size: 1rem; font-weight: 600; }
.portfolio-lightbox__close { width: 44px; height: 44px; border: 1px solid #3b3d41; background: transparent; color: var(--white); font-size: 1.7rem; line-height: 1; }
.portfolio-lightbox__stage { position: relative; height: calc(100% - 76px); display: grid; place-items: center; padding: 22px 72px; }
.portfolio-lightbox__stage img { width: 100%; height: 100%; object-fit: contain; }
.portfolio-lightbox__nav { position: absolute; z-index: 2; top: 50%; width: 44px; height: 54px; border: 1px solid #414348; background: rgba(10,10,11,.72); color: var(--white); transform: translateY(-50%); }
.portfolio-lightbox__nav--prev { left: 14px; }
.portfolio-lightbox__nav--next { right: 14px; }

/* Projeto Natualma — Porto */
.porto-hero__actions { margin-top: 31px; }
.project-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-fact { min-height: 150px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-fact span { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.project-fact strong { display: block; margin-top: 20px; font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.project-story { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(45px, 8vw, 120px); align-items: start; }
.project-story__title h2 { max-width: 760px; }
.project-story__copy { padding-top: 28px; border-top: 2px solid var(--ink); }
.project-story__copy p { color: var(--muted); }
.project-story__copy .project-story__lead { color: var(--ink); font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.52; letter-spacing: -.015em; }
.project-media-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 12px; }
.project-media-placeholder { position: relative; grid-column: span 5; min-height: 300px; margin: 0; display: flex; align-items: flex-end; padding: 28px; overflow: hidden; border: 1px solid #d8dbdf; background: #eef0f2; }
.project-media-placeholder--hero { grid-column: span 7; grid-row: span 2; min-height: 612px; background: var(--ink); color: var(--white); border-color: var(--ink); }
.project-media-placeholder--wide { grid-column: span 12; min-height: 340px; background: var(--blue); color: var(--white); border-color: var(--blue); }
.project-media-placeholder::before, .project-media-placeholder::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 140%; height: 1px; background: rgba(17,18,20,.08); transform-origin: center; }
.project-media-placeholder::before { transform: translate(-50%,-50%) rotate(28deg); }
.project-media-placeholder::after { transform: translate(-50%,-50%) rotate(-28deg); }
.project-media-placeholder--hero::before, .project-media-placeholder--hero::after, .project-media-placeholder--wide::before, .project-media-placeholder--wide::after { background: rgba(255,255,255,.11); }
.project-media-placeholder div { position: relative; z-index: 2; }
.project-media-placeholder span { display: block; margin-bottom: 38px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.project-media-placeholder--hero span, .project-media-placeholder--wide span { color: rgba(255,255,255,.62); }
.project-media-placeholder strong { display: block; font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 600; letter-spacing: -.025em; }
.project-media-placeholder small { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.project-media-placeholder--hero small, .project-media-placeholder--wide small { color: rgba(255,255,255,.55); }
.project-principles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid #303236; border-left: 1px solid #303236; }
.project-principles article { min-height: 290px; padding: 30px; border-right: 1px solid #303236; border-bottom: 1px solid #303236; }
.project-principles span { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.project-principles h3 { margin: 72px 0 13px; font-size: 1.45rem; }
.project-principles p { margin-bottom: 0; color: rgba(255,255,255,.58); font-size: .9rem; }
.project-progress__head { max-width: 780px; margin-bottom: 55px; }
.project-progress__head p:last-child { color: var(--muted); }
.project-progress__steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-progress__steps li { position: relative; min-height: 190px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-progress__steps li::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: transparent; }
.project-progress__steps li.is-complete::before { background: var(--ink); }
.project-progress__steps li.is-current::before { background: var(--blue); }
.project-progress__steps span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.project-progress__steps strong { display: block; margin-top: 46px; font-size: 1.18rem; font-weight: 600; }
.project-progress__steps small { display: block; margin-top: 5px; color: var(--muted); }
.project-origin__grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(40px, 8vw, 120px); }
.project-origin__grid p { color: var(--muted); }

@media (max-width: 1120px) {
    .nav-group__trigger { font-size: .81rem; }
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .portfolio-item--wide { grid-column: span 1; }
    .project-principles { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
    .nav-group { width: 100%; border-bottom: 1px solid var(--line); }
    .nav-group__trigger { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 1rem; text-align: left; }
    .nav-group__trigger::after { display: none; }
    .nav-submenu { position: static; display: none; width: 100%; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .nav-group.is-open .nav-submenu { display: block; }
    .nav-submenu a { padding: 14px 14px 14px 18px; background: var(--soft); }
    .nav-submenu a + a { border-top: 1px solid #dde0e3; }
    .portfolio-toolbar { align-items: flex-start; flex-direction: column; }
    .portfolio-filters { justify-content: flex-start; }
    .portfolio-bridge__grid, .project-story, .project-origin__grid { grid-template-columns: 1fr; }
    .project-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .project-media-placeholder--hero { grid-column: span 12; grid-row: auto; min-height: 470px; }
    .project-media-placeholder { grid-column: span 6; }
    .project-media-placeholder--wide { grid-column: span 12; }
    .project-progress__steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item, .portfolio-item--wide { min-height: 330px; grid-column: auto; }
    .portfolio-filters { width: 100%; }
    .portfolio-filter { flex: 1 1 calc(50% - 8px); }
    .portfolio-lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; }
    .portfolio-lightbox__stage { padding: 15px 48px; }
    .portfolio-lightbox__nav { width: 38px; }
    .portfolio-lightbox__nav--prev { left: 5px; }
    .portfolio-lightbox__nav--next { right: 5px; }
    .project-facts, .project-principles, .project-progress__steps { grid-template-columns: 1fr; }
    .project-media-grid { grid-template-columns: 1fr; }
    .project-media-placeholder, .project-media-placeholder--hero, .project-media-placeholder--wide { grid-column: auto; min-height: 320px; }
    .project-media-placeholder--hero { min-height: 420px; }
}


/* =========================================================
   Technical landing pages — preserved V.12 content / V.13.2 visual system
   ========================================================= */
.technical-landing .service-hero {
    padding: clamp(64px, 8vw, 104px) 0;
    background: var(--black);
    color: var(--white);
}
.technical-landing .service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .86fr);
    gap: clamp(44px, 7vw, 100px);
    align-items: center;
}
.technical-landing .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    color: rgba(255,255,255,.54);
    font-size: .77rem;
}
.technical-landing .breadcrumb a:hover { color: var(--white); }
.technical-landing .service-kicker,
.technical-landing .section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: .74rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.technical-landing .service-hero h1 {
    max-width: 820px;
    margin-bottom: 24px;
    color: var(--white);
    font-size: clamp(3rem, 5.8vw, 6.3rem);
}
.technical-landing .service-lead {
    max-width: 730px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.84);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.62;
}
.technical-landing .service-hero-note {
    max-width: 720px;
    margin: 26px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.60);
    font-size: .92rem;
}
.technical-landing .service-hero-actions,
.technical-landing .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.technical-landing .btn-primary-sanse,
.technical-landing .btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--white);
    font-size: .83rem;
    font-weight: 800;
    transition: .2s ease;
}
.technical-landing .btn-primary-sanse { background: var(--white); color: var(--ink); }
.technical-landing .btn-outline-light { background: transparent; color: var(--white); }
.technical-landing .btn-primary-sanse:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.technical-landing .btn-outline-light:hover { background: var(--white); color: var(--ink); }
.technical-landing .service-hero-image {
    position: relative;
    margin: 0;
    min-height: 460px;
    overflow: hidden;
    background: var(--charcoal);
}
.technical-landing .service-hero-image img {
    width: 100%;
    height: clamp(460px, 52vw, 650px);
    object-fit: cover;
}
.technical-landing .service-hero-image figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 20px;
    background: rgba(10,10,11,.82);
    color: rgba(255,255,255,.75);
    font-size: .78rem;
    line-height: 1.5;
}
.technical-landing .trust-strip { border-bottom: 1px solid var(--line); background: var(--soft); }
.technical-landing .trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.technical-landing .trust-item {
    min-height: 144px;
    padding: 30px 28px;
    border-right: 1px solid var(--line);
    background: var(--white);
}
.technical-landing .trust-item:last-child { border-right: 0; }
.technical-landing .trust-item strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 1rem; }
.technical-landing .trust-item span { color: var(--muted); font-size: .9rem; line-height: 1.55; }

.technical-landing .service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(44px, 7vw, 92px);
    align-items: start;
}
.technical-landing .service-article { min-width: 0; }
.technical-landing .service-article > section { margin-bottom: clamp(58px, 7vw, 94px); }
.technical-landing .service-article > section:last-child { margin-bottom: 0; }
.technical-landing .service-article h2,
.technical-landing .section-header h2,
.technical-landing .cta-band h2 { margin-bottom: 20px; font-size: clamp(2rem, 3.2vw, 3.55rem); }
.technical-landing .service-article h3 { margin-bottom: 10px; font-size: clamp(1.24rem, 1.6vw, 1.72rem); }
.technical-landing .service-article p,
.technical-landing .section-header p,
.technical-landing .cta-band p,
.technical-landing details p { color: var(--graphite); font-size: 1.02rem; line-height: 1.8; }
.technical-landing .lead-block {
    padding: clamp(34px, 5vw, 58px);
    background: var(--blue);
    color: var(--white);
}
.technical-landing .lead-block .section-eyebrow { color: rgba(255,255,255,.68); }
.technical-landing .lead-block h2,
.technical-landing .lead-block p { color: var(--white); }
.technical-landing .lead-block p { color: rgba(255,255,255,.82); }

.technical-landing .check-grid,
.technical-landing .benefit-grid,
.technical-landing .application-grid,
.technical-landing .related-grid {
    display: grid;
    gap: 1px;
    margin-top: 30px;
    border: 1px solid var(--line);
    background: var(--line);
}
.technical-landing .check-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.technical-landing .benefit-grid,
.technical-landing .application-grid,
.technical-landing .related-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.technical-landing .check-card,
.technical-landing .benefit-card,
.technical-landing .application-card,
.technical-landing .related-card {
    padding: 28px;
    background: var(--white);
}
.technical-landing .check-card strong { display: block; margin-bottom: 8px; color: var(--ink); }
.technical-landing .check-card span,
.technical-landing .benefit-card p,
.technical-landing .application-card p,
.technical-landing .related-card p { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.technical-landing .related-card a { color: var(--blue); font-weight: 700; }
.technical-landing .related-card a:hover { color: var(--ink); }

.technical-landing .process-list {
    counter-reset: technical-step;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.technical-landing .process-list li {
    counter-increment: technical-step;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.technical-landing .process-list li::before {
    content: counter(technical-step, decimal-leading-zero);
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .10em;
}
.technical-landing .process-list strong { display: block; margin-bottom: 5px; color: var(--ink); }
.technical-landing .process-list span { color: var(--muted); line-height: 1.65; }

.technical-landing .service-sidebar { position: sticky; top: calc(var(--header-h) + 34px); }
.technical-landing .sidebar-card { margin-bottom: 1px; padding: 32px; background: var(--black); color: var(--white); }
.technical-landing .sidebar-card.light { background: var(--soft); color: var(--ink); }
.technical-landing .sidebar-card h3 { color: inherit; font-size: 1.35rem; }
.technical-landing .sidebar-card p,
.technical-landing .sidebar-card li { color: rgba(255,255,255,.66); font-size: .92rem; line-height: 1.65; }
.technical-landing .sidebar-card.light p,
.technical-landing .sidebar-card.light li { color: var(--muted); }
.technical-landing .sidebar-card ul { padding-left: 18px; }
.technical-landing .sidebar-card .btn-primary-sanse { width: 100%; margin-top: 14px; border-color: var(--blue); background: var(--blue); color: var(--white); }
.technical-landing .sidebar-card .btn-primary-sanse:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.technical-landing .section-soft { background: var(--soft); }
.technical-landing .section-header { max-width: 900px; margin-bottom: 38px; }
.technical-landing .cta-band {
    padding: clamp(38px, 5vw, 64px);
    background: var(--blue);
    color: var(--white);
}
.technical-landing .cta-band h2,
.technical-landing .cta-band p { color: var(--white); }
.technical-landing .cta-band p { color: rgba(255,255,255,.82); max-width: 820px; }
.technical-landing .cta-band .btn-primary-sanse { margin-top: 20px; }

.technical-landing .faq-list { display: grid; gap: 1px; border-top: 1px solid var(--line); }
.technical-landing .faq-list details { border-bottom: 1px solid var(--line); background: var(--white); }
.technical-landing .faq-list summary { padding: 22px 0; color: var(--ink); font-weight: 700; cursor: pointer; }
.technical-landing .faq-list details p { padding: 0 0 24px; color: var(--muted); }

.site-footer__technical {
    padding: 38px 0;
    border-top: 1px solid rgba(255,255,255,.10);
}
.site-footer__technical h2 {
    margin: 0 0 20px;
    color: rgba(255,255,255,.55);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.site-footer__technical-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px 26px;
}
.site-footer__technical-grid a {
    color: rgba(255,255,255,.68);
    font-size: .84rem;
    line-height: 1.45;
}
.site-footer__technical-grid a:hover { color: var(--white); }

@media (max-width: 1080px) {
    .technical-landing .service-hero-grid,
    .technical-landing .service-layout { grid-template-columns: 1fr; }
    .technical-landing .service-sidebar { position: static; }
    .technical-landing .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .technical-landing .trust-item:nth-child(2) { border-right: 0; }
    .technical-landing .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .site-footer__technical-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .technical-landing .service-hero { padding-top: 48px; }
    .technical-landing .service-hero-grid { gap: 34px; }
    .technical-landing .service-hero-image { min-height: 340px; }
    .technical-landing .service-hero-image img { height: 380px; }
    .technical-landing .check-grid,
    .technical-landing .benefit-grid,
    .technical-landing .application-grid,
    .technical-landing .related-grid { grid-template-columns: 1fr; }
    .technical-landing .service-hero-actions,
    .technical-landing .cta-actions { flex-direction: column; align-items: stretch; }
    .technical-landing .btn-primary-sanse,
    .technical-landing .btn-outline-light { width: 100%; }
    .site-footer__technical-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
    .technical-landing .trust-grid,
    .site-footer__technical-grid { grid-template-columns: 1fr; }
    .technical-landing .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .technical-landing .process-list li { grid-template-columns: 50px 1fr; gap: 14px; }
}

/* ==========================================================
   V.13.3 — Portfolio Edition
   Identidade original + fotografia real como prova de trabalho
   ========================================================== */

/* Logotipo original Sanse: presença maior sem alterar sua delicadeza */
.brand img {
    width: 260px;
    height: auto;
    max-height: 98px;
    object-fit: contain;
    transform: none;
}
.site-footer__brand img {
    width: 240px;
    height: auto;
    max-height: none;
}

.section-head--tight { margin-bottom: clamp(34px, 4.5vw, 58px); }

/* Hero com trabalho real */
.hero__visual--project { margin: 0; }
.hero__visual--project figcaption,
.detail-portfolio-visual figcaption,
.porto-hero__visual figcaption {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 20px;
    padding: 11px 14px;
    background: rgba(10,10,11,.78);
    color: var(--white);
    backdrop-filter: blur(8px);
}
.hero__visual--project figcaption span,
.detail-portfolio-visual figcaption span,
.porto-hero__visual figcaption span {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.hero__visual--project figcaption strong,
.detail-portfolio-visual figcaption strong,
.porto-hero__visual figcaption strong {
    display: block;
    margin-top: 3px;
    font-size: .9rem;
    font-weight: 600;
}

/* Home hero — mosaico editorial de portfólio */
.hero__visual--mosaic {
    margin: 0;
    background: #111417;
    isolation: isolate;
}
.hero__visual--mosaic::after { display: none; }
.hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr .92fr .72fr;
    grid-template-rows: 56% 44%;
    gap: 3px;
    background: #111417;
}
.hero-mosaic__item {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #202428;
    color: var(--white);
    opacity: 0;
    transform: scale(.992);
    animation: sanseMosaicReveal .65s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-mosaic__item--a { grid-column: 1 / 3; grid-row: 1; animation-delay: .05s; }
.hero-mosaic__item--b { grid-column: 3; grid-row: 1; animation-delay: .13s; }
.hero-mosaic__item--c { grid-column: 1; grid-row: 2; animation-delay: .21s; }
.hero-mosaic__item--d { grid-column: 2 / 4; grid-row: 2; animation-delay: .29s; }
.hero-mosaic__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(6,9,11,.72) 100%);
    pointer-events: none;
}
.hero-mosaic__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .65s ease;
}
.hero-mosaic__item--a img { object-position: center 44%; }
.hero-mosaic__item--b img { object-position: center; }
.hero-mosaic__item--c img { object-position: center 38%; }
.hero-mosaic__item--d img { object-position: center; }
.hero-mosaic__item:hover img,
.hero-mosaic__item:focus-visible img { transform: scale(1.035); filter: saturate(1.04) contrast(1.02); }
.hero-mosaic__item:focus-visible { z-index: 4; outline: 3px solid var(--white); outline-offset: -3px; }
.hero-mosaic__caption {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 14px;
    max-width: calc(100% - 32px);
    color: var(--white);
    text-shadow: 0 1px 10px rgba(0,0,0,.42);
}
.hero-mosaic__caption small {
    display: block;
    margin-bottom: 3px;
    color: rgba(255,255,255,.72);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}
.hero-mosaic__caption strong {
    display: block;
    font-size: clamp(.8rem, .9vw, 1rem);
    font-weight: 600;
    line-height: 1.15;
}
.hero-mosaic__signature {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 56%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    background: rgba(15,19,22,.88);
    color: var(--white);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(9px);
    box-shadow: 0 10px 34px rgba(0,0,0,.16);
    pointer-events: none;
}
.hero-mosaic__signature b {
    font-size: .77rem;
    letter-spacing: .12em;
}
.hero-mosaic__signature small {
    padding-left: 11px;
    border-left: 1px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.72);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
@keyframes sanseMosaicReveal {
    to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-mosaic__item { opacity: 1; transform: none; animation: none; }
    .hero-mosaic__item img { transition: none; }
}

/* Home — prova imediata */
.home-proof { background: var(--white); }
.home-proof-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    grid-template-rows: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    min-height: 590px;
}
.home-proof-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}
.home-proof-card--wide { grid-row: 1 / span 2; }
.home-proof-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.home-proof-card:hover img { transform: scale(1.02); }
.home-proof-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(0,0,0,.72) 100%);
}
.home-proof-card__caption {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 22px;
}
.home-proof-card__caption small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.68);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.home-proof-card__caption strong { font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 500; }

/* Home — segmentos com fotografia */
.segment-grid--photo { border: 0; gap: 12px; background: transparent; }
.segment-card--photo,
.segment-card--photo:nth-child(even) {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    overflow: hidden;
}
.segment-card--photo .segment-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9eaec;
}
.segment-card--photo .segment-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.segment-card--photo:hover .segment-card__media img { transform: scale(1.025); }
.segment-card--photo .segment-card__body {
    min-height: 305px;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px 26px;
}
.segment-card--photo .segment-card__number { margin-bottom: 30px; }
.segment-card--photo h3 { margin: 0 0 13px; }
.segment-card--photo p,
.segment-card--photo:nth-child(even) p { min-height: 88px; color: var(--muted); }
.segment-card__project {
    display: block;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.35;
}
.segment-card--photo .segment-card__link { margin-top: 13px; }

/* Faixa fotográfica: pausa editorial entre informação e método */
.home-image-ribbon {
    display: grid;
    grid-template-columns: 1.15fr .85fr 1fr;
    min-height: clamp(300px, 32vw, 520px);
    background: var(--black);
}
.home-image-ribbon figure { position: relative; margin: 0; overflow: hidden; }
.home-image-ribbon img { width: 100%; height: 100%; object-fit: cover; }
.home-image-ribbon figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 8px 11px;
    background: rgba(10,10,11,.75);
    color: rgba(255,255,255,.86);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
}

/* Home — portfólio editorial */
.portfolio-editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
    grid-auto-rows: 240px;
    gap: 12px;
}
.portfolio-editorial-card {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}
.portfolio-editorial-card--hero { grid-column: span 7; grid-row: span 2; }
.portfolio-editorial-card--wide { grid-column: span 5; }
.portfolio-editorial-card--narrow { grid-column: span 3; }
.portfolio-editorial-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.portfolio-editorial-card:hover img { transform: scale(1.025); }
.portfolio-editorial-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.76)); }
.portfolio-editorial-card__caption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.portfolio-editorial-card__caption small { display: block; margin-bottom: 5px; color: rgba(255,255,255,.64); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-editorial-card__caption strong { font-size: clamp(1.15rem, 1.7vw, 1.75rem); font-weight: 500; }
.home-portfolio__action { display: flex; justify-content: flex-end; margin-top: 28px; }

/* Redes, filiais e franquias */
.network-feature__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(44px, 7vw, 100px); align-items: center; }
.network-feature__copy h2 { margin-bottom: 24px; }
.network-feature__copy p { max-width: 650px; color: rgba(255,255,255,.64); }
.network-feature__copy .btn { margin-top: 16px; }
.network-feature__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.network-feature__media figure { position: relative; margin: 0; min-height: 440px; overflow: hidden; }
.network-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.network-feature__media figcaption { position: absolute; left: 16px; bottom: 14px; padding: 8px 10px; background: rgba(10,10,11,.78); color: rgba(255,255,255,.84); font-size: .7rem; font-weight: 700; }

/* Natualma na Home */
.project-highlight__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(44px, 8vw, 120px); align-items: center; }
.project-highlight__media { margin: 0; min-height: 560px; overflow: hidden; background: var(--soft); }
.project-highlight__media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.project-highlight__copy h2 { margin-bottom: 24px; }
.project-highlight__copy p { color: var(--muted); }
.project-highlight__copy .btn { margin-top: 14px; }

/* Logos de clientes */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--white);
}
.client-logo-cell {
    min-height: 142px;
    display: grid;
    place-items: center;
    padding: 24px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    transition: background .18s ease;
}
a.client-logo-cell:hover { background: #f0f1f2; }
.client-logo-cell img { width: 100%; max-width: 155px; max-height: 72px; object-fit: contain; }

/* Páginas de Soluções e Segmentos — imagem real entre hero e conteúdo */
.detail-portfolio-visual {
    position: relative;
    margin: 0;
    height: clamp(360px, 46vw, 650px);
    overflow: hidden;
    background: var(--charcoal);
}
.detail-portfolio-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-portfolio-visual--segment { height: clamp(340px, 43vw, 610px); }

/* Listagens com fotografia */
.listing-grid--photo { gap: 14px; border: 0; background: transparent; }
.listing-card--photo,
.listing-card--photo:nth-child(4n+2),
.listing-card--photo:nth-child(4n+3) {
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
}
.listing-card__media { min-height: 330px; overflow: hidden; background: var(--soft); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card--photo:hover .listing-card__media img { transform: scale(1.02); }
.listing-card__body { padding: 34px; display: flex; flex-direction: column; }
.listing-card--photo h2 { margin: 36px 0 14px; }
.listing-card--photo p,
.listing-card--photo:nth-child(4n+2) p,
.listing-card--photo:nth-child(4n+3) p { color: var(--muted); }
.listing-card__project { display: block; margin-top: auto; padding-top: 20px; color: var(--muted); font-size: .7rem; }
.listing-card--photo .listing-card__body > a { align-self: flex-start; margin-top: 14px; }

/* Portfólio — índice por cliente */
.portfolio-client-index {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}
.portfolio-client-cover { display: flex; flex-direction: column; min-height: 390px; background: var(--white); border: 1px solid var(--line); }
.portfolio-client-cover__media { display: block; height: 235px; overflow: hidden; background: #e8eaec; }
.portfolio-client-cover__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-client-cover:hover .portfolio-client-cover__media img { transform: scale(1.025); }
.portfolio-client-cover__meta { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.portfolio-client-cover__meta small { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portfolio-client-cover__meta strong { margin: 10px 0 18px; font-size: 1.25rem; font-weight: 600; line-height: 1.15; }
.portfolio-client-cover__meta span { margin-top: auto; color: var(--blue); font-size: .72rem; font-weight: 800; }
.portfolio-toolbar--clients { position: sticky; z-index: 20; top: calc(var(--header-h) + 10px); padding: 18px 0; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.portfolio-client-section { scroll-margin-top: calc(var(--header-h) + 120px); padding: clamp(58px, 7vw, 92px) 0; border-top: 1px solid var(--line); }
.portfolio-client-section[hidden] { display: none; }
.portfolio-client-section__head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 32px; }
.portfolio-client-section__head h3 { margin: 0; font-size: clamp(2rem, 3.7vw, 4rem); }
.portfolio-client-section__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); font-size: .75rem; }
.portfolio-client-section__meta a { color: var(--ink); font-weight: 800; border-bottom: 1px solid currentColor; }
.portfolio-client-gallery {
    columns: 3;
    column-gap: 12px;
}
.portfolio-photo,
.project-photo {
    position: relative;
    width: 100%;
    display: inline-block;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: #eceef0;
    break-inside: avoid;
    overflow: hidden;
    vertical-align: top;
}
.portfolio-photo img,
.project-photo img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.portfolio-photo:hover img,
.portfolio-photo:focus-visible img,
.project-photo:hover img,
.project-photo:focus-visible img { transform: scale(1.012); }
.portfolio-photo:focus-visible,
.project-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.portfolio-photo__expand { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(10,10,11,.76); color: var(--white); font-size: .8rem; opacity: 0; transition: opacity .2s ease; }
.portfolio-photo:hover .portfolio-photo__expand,
.portfolio-photo:focus-visible .portfolio-photo__expand,
.project-photo:hover .portfolio-photo__expand,
.project-photo:focus-visible .portfolio-photo__expand { opacity: 1; }

/* Portugal — hero e galeria reais */
.porto-hero--split { min-height: 620px; display: grid; grid-template-columns: 1fr 1fr; padding: 0; align-items: stretch; background: var(--blue); }
.porto-hero--split::after { display: none; }
.porto-hero__copy { display: flex; align-items: center; padding: clamp(58px, 6vw, 94px) max(42px, calc((100vw - var(--container))/2 + 24px)); color: var(--white); }
.porto-hero__copy-inner { max-width: 690px; }
.porto-hero__copy .breadcrumbs { margin-bottom: 30px; }
.porto-hero__copy h1 { color: var(--white); font-size: clamp(3.8rem, 6vw, 6.8rem); }
.porto-hero__visual { position: relative; margin: 0; min-height: 620px; overflow: hidden; background: var(--charcoal); }
.porto-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.project-photo-gallery { columns: 3; column-gap: 12px; }

/* Footer com o logo original */
.site-footer__brand img { object-fit: contain; }

@media (max-width: 1180px) {
    .brand img { width: 235px; max-height: 90px; }
    .client-logo-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .portfolio-client-index { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 960px) {
    .home-proof-grid { min-height: 520px; }
    .segment-grid--photo { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .portfolio-editorial-card { grid-column: span 6; }
    .portfolio-editorial-card--hero { grid-column: span 7; }
    .portfolio-editorial-card--wide { grid-column: span 5; }
    .portfolio-editorial-card--narrow { grid-column: span 6; }
    .network-feature__grid,
    .project-highlight__grid { grid-template-columns: 1fr; }
    .network-feature__media figure { min-height: 360px; }
    .project-highlight__media,
    .project-highlight__media img { min-height: 460px; }
    .portfolio-client-gallery,
    .project-photo-gallery { columns: 2; }
    .porto-hero--split { grid-template-columns: 1fr; }
    .porto-hero__visual { min-height: 520px; }
}

@media (max-width: 860px) {
    :root { --header-h: 82px; }
    .brand img { width: 210px; max-height: 79px; }
    .portfolio-toolbar--clients { position: static; padding-top: 0; }
    .portfolio-client-index { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .listing-card--photo,
    .listing-card--photo:nth-child(4n+2),
    .listing-card--photo:nth-child(4n+3) { grid-template-columns: 1fr; }
    .listing-card__media { min-height: 300px; }
}

@media (max-width: 700px) {
    .home-proof-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
    .home-proof-card,
    .home-proof-card--wide { grid-row: auto; min-height: 330px; }
    .home-image-ribbon { grid-template-columns: 1fr; }
    .home-image-ribbon figure { min-height: 340px; }
    .portfolio-editorial-grid { grid-template-columns: 1fr; grid-auto-rows: 330px; }
    .portfolio-editorial-card,
    .portfolio-editorial-card--hero,
    .portfolio-editorial-card--wide,
    .portfolio-editorial-card--narrow { grid-column: auto; grid-row: auto; }
    .network-feature__media { grid-template-columns: 1fr; }
    .client-logo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .portfolio-client-section__head { grid-template-columns: 1fr; align-items: start; }
    .portfolio-client-section__meta { align-items: flex-start; }
}

@media (max-width: 620px) {
    .brand img { width: 190px; max-height: 72px; }
    .segment-grid--photo { grid-template-columns: 1fr; }
    .segment-card--photo .segment-card__body { min-height: 265px; }
    .client-logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .client-logo-cell { min-height: 120px; padding: 20px 14px; }
    .portfolio-client-index { grid-template-columns: 1fr; }
    .portfolio-client-cover { min-height: 0; }
    .portfolio-client-cover__media { height: 270px; }
    .portfolio-client-gallery,
    .project-photo-gallery { columns: 1; }
    .portfolio-filters { justify-content: flex-start; }
    .portfolio-toolbar--clients { display: block; }
    .portfolio-toolbar--clients .portfolio-filters { margin-top: 20px; }
    .porto-hero__copy { padding: 58px 24px; }
    .porto-hero__visual { min-height: 420px; }
    .project-highlight__media,
    .project-highlight__media img { min-height: 390px; }
}


/* Natualma — vídeo do projeto concluído */
.project-video-section { background: var(--white); }
.project-video__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(340px, .55fr);
    gap: clamp(52px, 8vw, 120px);
    align-items: start;
}
.project-video__copy {
    position: sticky;
    top: calc(var(--header-h) + 36px);
    padding-top: 10px;
}
.project-video__copy h2 { max-width: 780px; margin-bottom: 26px; }
.project-video__copy > p { max-width: 690px; color: var(--muted); font-size: 1.04rem; }
.project-video__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.project-video__media {
    width: min(100%, 470px);
    margin: 0 auto;
    background: var(--black);
    box-shadow: var(--shadow);
}
.project-video__media video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: var(--black);
}
.project-video__media figcaption {
    padding: 14px 16px 16px;
    color: rgba(255,255,255,.72);
    background: var(--black);
    font-size: .75rem;
}
.project-highlight__media--video { position: relative; display: block; }
.project-highlight__play {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: rgba(10,10,11,.86);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    backdrop-filter: blur(8px);
}
.project-highlight__play span { color: var(--white); font-size: .72rem; }

@media (max-width: 860px) {
    .project-video__grid { grid-template-columns: 1fr; }
    .project-video__copy { position: static; padding-top: 0; }
    .project-video__media { width: min(100%, 440px); }
}

@media (max-width: 620px) {
    .project-video__media { width: min(100%, 360px); }
    .project-video__meta { display: grid; gap: 7px; }
    .project-highlight__play { left: 14px; bottom: 14px; }
}

/* International navigation */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 2px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}
.language-switcher a {
    min-width: 30px;
    padding: 8px 5px;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
}
.language-switcher a:hover,
.language-switcher a[aria-current="true"] { color: var(--ink); }
.language-switcher a[aria-current="true"] { background: var(--soft); }

@media (max-width: 1240px) {
    .primary-nav { gap: 15px; }
    .nav-cta { display: none; }
}

@media (max-width: 860px) {
    .language-switcher {
        order: 20;
        justify-content: flex-start;
        margin: 20px 0 0;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .language-switcher a { min-width: 42px; padding: 10px 8px; }
}

/* =========================================================
   Reforma Comercial — V.13.5.0
   Landing page transversal para decisores empresariais
   ========================================================= */
.reforma-comercial .site-header { border-bottom-color: rgba(17,18,20,.10); }

.reform-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    min-height: clamp(560px, calc(100vh - var(--header-h)), 650px);
    background: var(--blue);
    color: var(--white);
}
.reform-hero__copy {
    display: flex;
    align-items: center;
    padding: clamp(48px, 5vw, 76px) clamp(44px, 5vw, 78px) clamp(48px, 5vw, 76px) max(48px, calc((100vw - var(--container))/2 + 24px));
}
.reform-hero__inner { width: 100%; max-width: 720px; }
.reform-hero .breadcrumbs { margin-bottom: 24px; }
.reform-hero .breadcrumbs ol { color: rgba(255,255,255,.58); }
.reform-hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(3.1rem, 4.5vw, 5.05rem);
    line-height: 1.02;
}
.reform-hero__lead {
    max-width: 670px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.86);
    font-size: clamp(1rem, 1.17vw, 1.18rem);
    line-height: 1.58;
}
.reform-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.30);
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .025em;
}
.reform-hero__visual {
    position: relative;
    min-height: 520px;
    margin: 0;
    overflow: hidden;
    background: var(--charcoal);
}
.reform-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 56%, rgba(0,0,0,.54) 100%);
    pointer-events: none;
}
.reform-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.reform-hero__visual figcaption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 24px;
    left: 28px;
    color: var(--white);
}
.reform-hero__visual figcaption span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255,255,255,.68);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.reform-hero__visual figcaption strong { display: block; font-size: 1.22rem; font-weight: 600; }

.reform-business-intro {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, .75fr);
    gap: clamp(48px, 8vw, 124px);
    align-items: start;
    margin-bottom: clamp(48px, 7vw, 84px);
}
.reform-business-intro h2 { max-width: 820px; margin-bottom: 0; }
.reform-business-intro__copy { padding-top: 7px; }
.reform-business-intro__copy p { color: var(--muted); font-size: 1.06rem; }
.reform-business-intro__copy p:last-child { margin-bottom: 0; color: var(--ink); }

.reform-pressure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.reform-pressure-card {
    min-height: 255px;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}
.reform-pressure-card > span,
.reform-environment-card__number,
.reform-scope-card > span,
.reform-method-item > span {
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
}
.reform-pressure-card h3 { margin: 56px 0 12px; font-size: 1.45rem; }
.reform-pressure-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.62; }

.reform-environment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}
.reform-environment-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease;
}
.reform-environment-card:nth-child(2),
.reform-environment-card:nth-child(5) { background: var(--ink); color: var(--white); }
.reform-environment-card h3 { margin: 58px 0 14px; font-size: clamp(1.4rem, 1.85vw, 1.9rem); }
.reform-environment-card p { margin-bottom: 28px; color: var(--muted); font-size: .92rem; line-height: 1.58; }
.reform-environment-card:nth-child(2) p,
.reform-environment-card:nth-child(5) p { color: rgba(255,255,255,.60); }
.reform-environment-card__link { margin-top: auto; font-size: .74rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.reform-environment-card:hover,
.reform-environment-card:focus-visible { z-index: 2; transform: translateY(-3px); box-shadow: var(--shadow); outline: none; }

.reform-scope-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border-top: 1px solid #303236;
    border-left: 1px solid #303236;
}
.reform-scope-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 31px;
    border-right: 1px solid #303236;
    border-bottom: 1px solid #303236;
    background: var(--black);
    color: var(--white);
}
.reform-scope-card h3 { margin: 60px 0 14px; font-size: 1.5rem; }
.reform-scope-card p { margin: 0 0 22px; color: rgba(255,255,255,.58); font-size: .91rem; line-height: 1.6; }
.reform-scope-card small { margin-top: auto; color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.reform-scope-card--link { transition: background .2s ease, transform .2s ease; }
.reform-scope-card--link:hover,
.reform-scope-card--link:focus-visible { background: #141517; transform: translateY(-3px); outline: none; }

.reform-operation__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(440px, 1fr);
    gap: clamp(52px, 8vw, 120px);
    align-items: center;
}
.reform-operation__copy h2 { max-width: 760px; margin-bottom: 25px; }
.reform-operation__copy > p { max-width: 700px; color: var(--muted); font-size: 1.02rem; }
.reform-operation__note {
    margin: 28px 0 32px !important;
    padding: 22px 0 22px 24px;
    border-left: 3px solid var(--blue);
    color: var(--ink) !important;
}
.reform-operation__visual { position: relative; min-height: 510px; margin: 0; overflow: hidden; background: var(--soft); }
.reform-operation__visual img { width: 100%; height: 510px; object-fit: cover; }
.reform-operation__visual figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 11px 14px;
    background: rgba(10,10,11,.82);
    color: rgba(255,255,255,.75);
    font-size: .72rem;
}

.reform-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
    gap: 12px;
}
.reform-portfolio-card {
    position: relative;
    grid-column: span 4;
    min-height: 330px;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}
.reform-portfolio-card--wide { grid-column: span 8; min-height: 430px; }
.reform-portfolio-card:nth-child(4) { grid-column: span 8; }
.reform-portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.reform-portfolio-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.86) 100%); }
.reform-portfolio-card__caption { position: absolute; z-index: 2; right: 24px; bottom: 22px; left: 24px; }
.reform-portfolio-card__caption small { display: block; color: rgba(255,255,255,.68); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reform-portfolio-card__caption strong { display: block; margin: 6px 0 9px; font-size: 1.38rem; font-weight: 600; line-height: 1.15; }
.reform-portfolio-card__caption em { display: block; color: rgba(255,255,255,.78); font-size: .74rem; font-style: normal; font-weight: 700; }
.reform-portfolio-card:hover img,
.reform-portfolio-card:focus-visible img { transform: scale(1.025); }
.reform-portfolio-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.reform-portfolio-action { margin-top: 30px; }

.reform-method {
    display: grid;
    grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
    gap: clamp(48px, 8vw, 122px);
    align-items: start;
}
.reform-method__intro { position: sticky; top: calc(var(--header-h) + 36px); }
.reform-method__intro h2 { margin-bottom: 23px; }
.reform-method__intro p { max-width: 550px; color: var(--muted); }
.reform-method-list { border-top: 1px solid var(--line); }
.reform-method-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    padding: 29px 0;
    border-bottom: 1px solid var(--line);
}
.reform-method-item h3 { margin: 0 0 8px; font-size: 1.25rem; }
.reform-method-item p { max-width: 690px; margin: 0; color: var(--muted); font-size: .95rem; }

.reform-decision__grid,
.reform-location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
    gap: clamp(48px, 8vw, 122px);
    align-items: start;
}
.reform-decision h2 { max-width: 780px; margin-bottom: 0; color: var(--white); }
.reform-decision__grid > div:last-child > p { color: rgba(255,255,255,.80); font-size: 1.07rem; }
.reform-location h2 { margin-bottom: 0; }
.reform-location > div:last-child > p { color: var(--muted); font-size: 1.02rem; }
.reform-location__links { margin-top: 28px; border-top: 1px solid var(--line); }
.reform-location__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 800; }
.reform-location__links a:hover { color: var(--blue); }

/* Descoberta interna da página transversal */
.home-reform-entry { padding-top: 0; background: var(--soft); }
.home-reform-entry__card {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr) 250px;
    gap: 34px;
    align-items: center;
    min-height: 210px;
    padding: clamp(30px, 4vw, 50px);
    background: var(--blue);
    color: var(--white);
    transition: background .2s ease;
}
.home-reform-entry__card:hover,
.home-reform-entry__card:focus-visible { background: var(--blue-deep); outline: none; }
.home-reform-entry__index { color: rgba(255,255,255,.66); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-reform-entry__copy small { display: block; margin-bottom: 7px; color: rgba(255,255,255,.70); font-size: .76rem; font-weight: 700; }
.home-reform-entry__copy strong { display: block; margin-bottom: 10px; font-size: clamp(2rem, 3vw, 3.3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.home-reform-entry__copy em { display: block; max-width: 720px; color: rgba(255,255,255,.82); font-size: .93rem; font-style: normal; line-height: 1.55; }
.home-reform-entry__action { justify-self: end; font-size: .78rem; font-weight: 800; }
.home-reform-entry__action b { margin-left: 7px; font-size: 1.15em; }
.clean-list__featured-link { background: rgba(32,101,251,.06); }
.clean-list__featured-link a { color: var(--blue); font-weight: 800; }

@media (max-width: 1100px) {
    .reform-scope-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .home-reform-entry__card { grid-template-columns: 150px 1fr; }
    .home-reform-entry__action { grid-column: 2; justify-self: start; }
}

@media (max-width: 960px) {
    .reform-hero { grid-template-columns: 1fr; min-height: 0; }
    .reform-hero__copy { padding: clamp(54px, 8vw, 78px) 24px; }
    .reform-hero__inner { width: min(100%, var(--container)); margin-inline: auto; }
    .reform-hero__visual { min-height: 450px; }
    .reform-business-intro,
    .reform-operation__grid,
    .reform-method,
    .reform-decision__grid,
    .reform-location { grid-template-columns: 1fr; }
    .reform-pressure-grid,
    .reform-environment-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .reform-method__intro { position: static; }
    .reform-operation__visual,
    .reform-operation__visual img { min-height: 430px; height: 430px; }
    .reform-portfolio-card,
    .reform-portfolio-card--wide,
    .reform-portfolio-card:nth-child(4) { grid-column: span 6; min-height: 350px; }
}

@media (max-width: 700px) {
    .reform-pressure-grid,
    .reform-environment-grid,
    .reform-scope-grid { grid-template-columns: 1fr; }
    .reform-pressure-card,
    .reform-environment-card,
    .reform-scope-card { min-height: 0; }
    .reform-pressure-card h3,
    .reform-environment-card h3,
    .reform-scope-card h3 { margin-top: 38px; }
    .reform-portfolio-grid { grid-template-columns: 1fr; }
    .reform-portfolio-card,
    .reform-portfolio-card--wide,
    .reform-portfolio-card:nth-child(4) { grid-column: auto; min-height: 330px; }
    .home-reform-entry__card { grid-template-columns: 1fr; gap: 22px; }
    .home-reform-entry__action { grid-column: auto; }
}

@media (max-width: 620px) {
    .reform-hero h1 { font-size: clamp(2.65rem, 12.3vw, 3.65rem); }
    .reform-hero__visual { min-height: 360px; }
    .reform-hero__meta { display: grid; gap: 6px; }
    .reform-business-intro { gap: 32px; }
    .reform-operation__visual,
    .reform-operation__visual img { min-height: 340px; height: 340px; }
    .reform-method-item { grid-template-columns: 50px 1fr; }
    .home-reform-entry__card { padding: 30px 24px; }
}


/* Home hero mosaic — responsividade */
@media (max-width: 860px) {
    .hero__visual--mosaic { min-height: 460px; }
    .hero-mosaic__caption { left: 13px; bottom: 12px; }
    .hero-mosaic__signature { top: 56%; }
}
@media (max-width: 620px) {
    .hero__visual--mosaic { min-height: 410px; }
    .hero-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .hero-mosaic__item--a,
    .hero-mosaic__item--b,
    .hero-mosaic__item--c,
    .hero-mosaic__item--d { grid-column: auto; grid-row: auto; }
    .hero-mosaic__caption small { font-size: .52rem; letter-spacing: .065em; }
    .hero-mosaic__caption strong { font-size: .78rem; }
    .hero-mosaic__signature {
        top: 50%;
        gap: 8px;
        padding: 8px 10px;
    }
    .hero-mosaic__signature b { font-size: .68rem; }
    .hero-mosaic__signature small { padding-left: 8px; font-size: .49rem; }
}


/* =========================================================
   V.13.6.0 — Engenharia para Negócios · integração institucional
   ========================================================= */
.nav-submenu--business { width: 348px; }
.nav-submenu--business a { padding: 12px 15px; }
.nav-submenu--business a span { font-size: .88rem; }
.nav-submenu--business a small { margin-top: 3px; font-size: .69rem; }

.home-business-entry {
    padding: clamp(64px, 7vw, 96px) 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.home-business-entry__grid {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 7vw, 100px);
    align-items: end;
}
.home-business-entry__copy h2 { max-width: 760px; margin-bottom: 18px; }
.home-business-entry__copy > p:last-of-type { max-width: 680px; color: var(--muted); }
.home-business-entry__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.home-business-entry__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.home-business-entry__links a { color: var(--muted); font-size: .79rem; font-weight: 650; }
.home-business-entry__links a:hover { color: var(--blue); }

.business-context-bridge {
    padding: clamp(52px, 6vw, 78px) 0;
    background: #eef3ff;
    border-top: 1px solid #dce5fa;
    border-bottom: 1px solid #dce5fa;
}
.business-context-bridge__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: end;
}
.business-context-bridge h2 { max-width: 820px; margin-bottom: 14px; font-size: clamp(2rem, 3vw, 3.25rem); }
.business-context-bridge p { max-width: 760px; margin-bottom: 0; color: #5d6674; }
.business-context-bridge__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }

@media (max-width: 1180px) {
    .primary-nav { gap: 12px; }
    .primary-nav > a:not(.nav-cta), .nav-group__trigger { font-size: .79rem; }
}
@media (max-width: 960px) {
    .home-business-entry__grid, .business-context-bridge__grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) {
    .nav-submenu--business { width: 100%; }
    .home-business-entry__actions { align-items: stretch; }
    .home-business-entry__links { flex-direction: column; gap: 9px; }
}
@media (max-width: 1320px) and (min-width: 861px) {
    .primary-nav .nav-cta { display: none; }
}
