/* AplicAI Web V2 — DESIGN_SYSTEM_WEB_APLICAI_V1.md */
:root {
  --brand: #282763; --navy: #0f2c4a; --ink: #22243a; --muted: #585858;
  --paper: #fbfaf7; --white: #fff; --line: #dedee6; --soft: #efeff6; --sepia: #c9a87c;
  --font: 'Inter', Arial, sans-serif; --display: 'Sora', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 125px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.7 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #785b34; outline-offset: 5px; }
.navy :focus-visible, .footer :focus-visible { outline-color: var(--sepia); }
[hidden] { display: none !important; }
::selection { background: #e2d4be; color: var(--brand); }
.shell { width: min(100% - 96px, 1240px); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: white; padding: 12px 20px; }
.skip:focus { top: 12px; }
.announcement { padding: 9px 20px; text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .16em; background: var(--brand); color: white; }
.announcement span { margin-inline: 12px; color: var(--sepia); }
.site-header { position: sticky; top: 0; z-index: 40; background: #fbfaf7f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav { min-height: 98px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; flex-shrink: 0; width: 174px; text-decoration: none; }
.brand img { width: 100%; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { position: relative; text-decoration: none; font-size: .82rem; font-weight: 600; padding-block: 12px; }
.nav-links a[aria-current='page']::after { content: ''; height: 2px; position: absolute; bottom: 4px; left: 0; right: 0; background: var(--brand); }
.nav-links a:hover { color: var(--brand); }
.nav-links .mobile-contact { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 22px; border: 1px solid transparent; border-radius: 6px; font-size: .875rem; line-height: 1.5; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--brand); color: white; }
.btn-dark:hover { background: var(--navy); }
.btn-light { background: var(--sepia); color: #182840; }
.btn-line { border-color: #aaa9bd; color: var(--brand); background: transparent; }
.btn-line:hover { background: var(--soft); }
.nav-cta { flex-shrink: 0; font-size: .8rem; padding: 12px 16px; }
.cta-short { display: none; }
.menu-toggle { display: none; color: var(--brand); background: transparent; border: 1px solid var(--line); border-radius: 6px; width: 46px; height: 46px; font-size: 23px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.16; letter-spacing: -.045em; }
h1 { font-size: clamp(2.5rem, 4.5vw, 4.25rem); margin-bottom: 28px; color: var(--brand); }
h2 { font-size: clamp(2rem, 3.3vw, 3.15rem); margin: 20px 0 24px; color: var(--brand); }
h3 { font-size: 1.38rem; line-height: 1.35; }
p { color: var(--muted); margin-bottom: 22px; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); max-width: 670px; line-height: 1.75; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--brand); }
.eyebrow::before { content: ''; width: 25px; height: 2px; background: #8a673c; flex-shrink: 0; }
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { margin-top: 26px; }
.hero h1 em { color: #78603f; font-style: normal; }
.hero .lead { max-width: 610px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.hero-formats { max-width: 590px; margin: 26px 0 0; font-size: .82rem; }
/* Abstract diagram, no implied photographs or commercial metrics. */
.hero-art { position: relative; padding: 38px; background: var(--brand); color: white; border-radius: 130px 8px 8px 8px; min-height: 500px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-art::before { content: ''; position: absolute; width: 350px; height: 350px; border: 1px solid #ffffff28; border-radius: 50%; top: -130px; right: -80px; box-shadow: 0 0 0 54px #ffffff08, 0 0 0 110px #ffffff06; }
.art-mark { position: relative; display: block; font: .72rem var(--font); text-transform: uppercase; letter-spacing: .15em; color: #d2c1a7; margin-bottom: auto; padding-top: 65px; }
.connection { position: relative; margin-block: 35px; }
.connection::before { content: ''; position: absolute; left: 17px; top: 20px; bottom: 20px; border-left: 1px dashed #c9a87c90; }
.connection span { position: relative; display: flex; gap: 18px; align-items: center; margin-block: 20px; font: 1.5rem var(--display); letter-spacing: -.03em; }
.connection i { display: grid; place-items: center; width: 36px; height: 36px; background: var(--brand); border: 1px solid #c9a87c; border-radius: 50%; font: normal .75rem var(--font); color: #ecdcc7; }
.art-caption { position: relative; padding-top: 25px; border-top: 1px solid #ffffff35; font-size: .95rem; color: #eeedf6; line-height: 1.6; }
.tagline { border-block: 1px solid var(--line); padding: 23px 0; }
.tagline .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 26px; font-size: .8rem; color: var(--brand); }
.tagline span::before { content: '↗'; margin-right: 12px; color: #785b34; }
.section { padding-block: 100px; }
.section.alt { background: var(--soft); }
.section.navy { background: var(--navy); color: white; }
.section.navy h2, .section.navy .eyebrow { color: white; }
.section.navy p { color: #d4dfe9; }
.section.navy .eyebrow::before { background: var(--sepia); }
.section-header { max-width: 790px; margin-bottom: 45px; }
.section-header p { max-width: 680px; font-size: 1.06rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.two-col > *, .hero-grid > *, .contact-layout > *, .cards > *, .three > * { min-width: 0; }
.cards, .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.feature .num { font-size: .72rem; letter-spacing: .08em; color: #65657b; margin-bottom: 40px; }
.feature h3 { color: var(--brand); }
.feature p { font-size: .95rem; }
.feature a { margin-top: auto; padding-top: 12px; font-size: .875rem; font-weight: 600; color: var(--brand); }
.challenge-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; }
.challenge { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding: 28px 0; }
.challenge .n { color: #79603d; font-size: .8rem; padding-top: 4px; }
.challenge strong { font: 500 1.2rem/1.4 var(--display); letter-spacing: -.035em; }
.challenge p { margin: 10px 0 0; font-size: .95rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.step { border-top: 1px dashed #98acbe; padding-top: 24px; }
.step b { display: block; color: #e1c6a3; font-size: .75rem; letter-spacing: .1em; margin-bottom: 30px; }
.step p { font-size: .95rem; }
.stat-card { padding: 32px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; background: white; }
.stat-card .sector { color: var(--brand); font-size: .75rem; font-weight: 600; }
.stat-card h3 { font: 500 1.15rem/1.45 var(--display); margin: 24px 0 38px; }
.stat { margin-top: auto; color: var(--brand); font: 500 clamp(2.8rem, 4vw, 3.6rem)/1.1 var(--display); letter-spacing: -.06em; }
.stat-label { font-size: .875rem; margin: 16px 0; }
.small-print { font-size: .82rem; line-height: 1.65; color: #585858; }
.stat-card .small-print { padding-top: 16px; margin-bottom: 0; border-top: 1px solid var(--line); }
.case-link { display: inline-block; color: var(--brand); font-size: .875rem; font-weight: 600; margin-top: 20px; }
.statement { max-width: 1050px; font: 500 clamp(1.8rem, 3.5vw, 3rem)/1.5 var(--display); letter-spacing: -.035em; }
.statement em { font-style: normal; color: #e3c8a5; }
.page-hero { padding: 65px 0 72px; background: linear-gradient(110deg, var(--paper) 60%, #eeedf5); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1020px; margin: 26px 0; }
.page-hero p { max-width: 760px; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 35px; font-size: .8rem; color: var(--muted); }
.page-jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-jump a { border: 1px solid #c9c8d6; border-radius: 30px; padding: 9px 16px; font-size: .82rem; text-decoration: none; color: var(--brand); }
.page-jump a:hover { background: white; }
.subfeature { padding: 30px 0 20px 25px; border-left: 2px solid #a78d6a; }
.subfeature h3 { color: var(--brand); }
.subfeature p { margin-bottom: 0; }
.page-solucoes .cards { grid-template-columns: 1fr 1fr; column-gap: 60px; }
.page-solucoes .feature { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 30px 0; background: transparent; display: grid; grid-template-columns: 45px 1fr; gap: 8px 15px; }
.page-solucoes .feature .num { grid-row: span 3; margin: 4px 0; }
.page-solucoes .feature h3, .page-solucoes .feature p { margin: 0; }
.page-solucoes .feature a { grid-column: 2; }
.page-atuacao .three { display: block; }
.page-atuacao .three .subfeature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; padding: 35px 0; border: 0; border-bottom: 1px solid var(--line); }
.page-atuacao .subfeature h3 { margin: 0; }
.case-detail { padding: clamp(24px, 4vw, 52px); background: white; border: 1px solid var(--line); border-radius: 10px; margin-block: 24px 40px; }
.case-detail h2 { max-width: 920px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.case-detail .two-col { gap: 40px; }
.case-detail .metrics { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); padding: 28px; gap: 28px; margin: 30px 0 24px; border-radius: 6px; }
.metric strong { display: block; font: 500 clamp(1.9rem, 3.5vw, 3rem)/1.2 var(--display); letter-spacing: -.05em; color: var(--brand); margin-bottom: 10px; }
.metric span { display: block; font-size: .875rem; color: #4b4b60; }
.response-comparison { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 24px 0; border-block: 1px solid var(--line); margin: 28px 0; }
.response-comparison p { margin: 0; font-size: .875rem; }
.response-comparison strong { display: block; color: var(--brand); font: 500 2rem/1.5 var(--display); }
.response-comparison .comparison-arrow { color: #785b34; font-size: 1.5rem; }
.case-detail .small-print { border-left: 2px solid #9e7c50; padding-left: 17px; }
.case-context { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #585858; font-weight: 600; }
.cta-strip { background: #eee3d2; padding: 65px 0; }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 45px; }
.cta-grid h2 { max-width: 760px; font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 0; }
.cta-grid .btn { flex-shrink: 0; }
.related { border-top: 1px solid var(--line); padding: 36px 0; }
.related .shell { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.related span { font-size: .85rem; color: var(--muted); }
.related a { font-weight: 600; color: var(--brand); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; }
.contact-options { display: flex; flex-direction: column; gap: 14px; margin: 32px 0; }
.contact-options a { border-bottom: 1px solid var(--line); padding: 17px 0; text-decoration: none; color: var(--brand); font-weight: 600; overflow-wrap: anywhere; }
.contact-form { padding: 36px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.contact-form h2 { color: var(--brand); font-size: 1.38rem; margin: 0 0 22px; }
.contact-form fieldset { border: 0; padding: 0; margin: 25px 0 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #a8a8b9; border-radius: 4px; background: var(--paper); color: var(--ink); padding: 12px; }
.field textarea { resize: vertical; }
fieldset:disabled input, fieldset:disabled textarea, fieldset:disabled select { background: #f1f0f5; color: #686879; }
.contact-form button:disabled { background: #ecebf1; color: #585868; border-color: #d5d4de; }
.consent { display: flex; align-items: start; gap: 12px; font-size: .83rem; margin-bottom: 22px; }
.consent input { margin-top: 6px; min-width: 17px; min-height: 17px; }
.form-status { font-size: .875rem; font-weight: 500; margin: 18px 0 0; }
.notice { padding: 16px 18px; border-left: 3px solid #987044; background: #f5ecde; font-size: .875rem; color: #55412d; }
.honeypot { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.privacy { max-width: 850px; }
.privacy h2 { font-size: 1.5rem; margin-top: 42px; letter-spacing: -.03em; }
.privacy li { color: var(--muted); margin-bottom: 12px; }
.footer { padding: 65px 0 28px; background: var(--navy); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 65px; }
.footer .brand { width: 205px; padding: 10px 14px; background: var(--paper); border-radius: 5px; }
.footer p { color: #cfdbe5; max-width: 370px; margin-top: 24px; font-size: .95rem; }
.footer h4 { color: #e7d5ba; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-block: 11px; font-size: .875rem; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 55px; padding-top: 24px; border-top: 1px solid #ffffff30; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: .75rem; color: #c5d0dc; }
.footer-signature { display: flex; gap: 10px; align-items: center; }
.footer-signature img { width: 30px; height: 30px; background: var(--paper); padding: 5px; border-radius: 5px; }
.whatsapp-float { position: static; margin: 0 24px 24px auto; z-index: 30; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #176e48; color: white; box-shadow: 0 5px 20px #0f2c4a28; }
.floating-ready .whatsapp-float { position: fixed; right: 22px; bottom: 22px; margin: 0; }
.whatsapp-float svg { width: 29px; height: 29px; }
.page-contato .whatsapp-float { position: static; margin: 0 24px 24px auto; }
@media (max-width: 1080px) {
  .shell { width: calc(100% - 56px); }
  .nav { gap: 18px; flex-wrap: wrap; padding-block: 15px; min-height: 85px; }
  .brand { width: 150px; }
  .nav-cta { margin-left: auto; }
  .nav-links { order: 4; width: 100%; margin: 0; gap: 20px; flex-wrap: wrap; }
  .nav-links .mobile-contact { display: inline; }
  .navigation-ready .menu-toggle { display: block; }
  .navigation-ready .nav-links { display: none; }
  .navigation-ready .nav-links.is-open { display: flex; }
  .navigation-ready .nav-links.is-open { max-height: calc(100dvh - 100px); overflow-y: auto; }
  html:not(.navigation-ready) .site-header { position: static; }
  .hero-grid { gap: 35px; }
  .hero-art { padding: 30px; min-height: 460px; }
  .hero { padding-top: 65px; }
  .cards, .three { gap: 16px; }
  .feature, .stat-card { padding: 25px; }
  .two-col, .contact-layout { gap: 35px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 105px; }
  .shell { width: calc(100% - 40px); }
  .announcement { font-size: .59rem; letter-spacing: .08em; padding-inline: 10px; }
  .announcement span { margin-inline: 5px; }
  .brand { width: 123px; }
  .nav { gap: 10px; min-height: 76px; }
  .nav-cta { font-size: .75rem; padding: 11px 12px; min-height: 44px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .menu-toggle { width: 42px; height: 44px; }
  .nav-links { gap: 0; flex-direction: column; align-items: stretch; padding-block: 10px; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a[aria-current='page']::after { width: 30px; bottom: 5px; }
  .hero { padding: 48px 0; }
  .hero-grid, .two-col, .contact-layout { grid-template-columns: 1fr; gap: 35px; }
  h1 { font-size: clamp(2.15rem, 7.6vw, 3.3rem); }
  h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .hero-art { min-height: 340px; border-top-left-radius: 85px; padding: 30px; }
  .art-mark { padding-top: 22px; }
  .connection { margin-block: 15px; }
  .connection span { margin-block: 15px; font-size: 1.25rem; }
  .hero-formats { margin-top: 22px; }
  .tagline .shell { display: grid; }
  .section { padding-block: 64px; }
  .section-header { margin-bottom: 28px; }
  .cards, .three, .challenge-list, .steps, .form-grid, .page-solucoes .cards { grid-template-columns: 1fr; }
  .feature .num { margin-bottom: 24px; }
  .stat-card h3 { margin-bottom: 26px; }
  .stat { font-size: 3rem; }
  .page-hero { padding: 35px 0 48px; }
  .breadcrumb { margin-bottom: 25px; }
  .page-atuacao .three .subfeature { grid-template-columns: 1fr; gap: 12px; }
  .case-detail .metrics { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .metric + .metric { padding-top: 20px; border-top: 1px solid #d5d3e1; }
  .cta-strip { padding-block: 45px; }
  .cta-grid { flex-direction: column; align-items: flex-start; gap: 26px; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { margin-top: 35px; padding-bottom: 55px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}
@media (max-width: 360px) {
  .brand { width: 112px; }
  .nav-cta { padding-inline: 10px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .announcement, .whatsapp-float, .cta-strip, .related, .footer { display: none; }
  .shell { width: 100%; }
  .section, .hero, .page-hero { padding-block: 20px; }
  .case-detail { break-inside: avoid; }
}

/* V3: documentary photography. Existing palette, fonts and identity stay intact. */
.documentary-photo { margin: 0; min-width: 0; }
.documentary-photo img { width: 100%; height: auto; border-radius: 8px; background: var(--soft); }
.documentary-photo figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 18px; padding-top: 16px; font-size: .85rem; line-height: 1.6; color: var(--muted); }
.photo-event { font-size: .75rem; font-weight: 600; color: var(--brand); letter-spacing: .03em; }
.hero-photograph { min-width: 0; }
.hero-photograph .photo-lead img { border-top-right-radius: 80px; }
.hero-photo-note { border-left: 2px solid var(--sepia); padding: 4px 0 4px 18px; margin-top: 22px; }
.hero-photo-note > span:first-child { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.hero-photo-note p { font-family: var(--display); color: var(--brand); font-size: .95rem; margin: 6px 0 0; }
.photo-gallery { background: var(--soft); }
.gallery-heading { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; }
.gallery-heading .section-header { margin-bottom: 0; }
.gallery-heading h2 { max-width: 710px; }
.carousel-controls { display: flex; flex-shrink: 0; gap: 12px; padding-bottom: 25px; }
.carousel-arrow { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--brand); border-radius: 50%; background: transparent; color: var(--brand); font-size: 1.5rem; }
.carousel-arrow:hover:not(:disabled) { background: var(--brand); color: var(--white); }
.carousel-arrow:disabled { opacity: .35; }
.carousel-help { font-size: .8rem; margin: 10px 0 24px; }
.photo-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--brand) var(--line); scrollbar-width: thin; padding: 0 0 24px; -webkit-overflow-scrolling: touch; }
.navigation-ready .photo-track { scroll-snap-type: x mandatory; }
.photo-track:focus-visible { outline-offset: 8px; }
.photo-slide { min-width: 0; scroll-snap-align: start; }
.photo-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-slide figcaption { display: grid; gap: 4px; }
.carousel-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.carousel-position { color: var(--brand); font-size: .85rem; font-variant-numeric: tabular-nums; }
.carousel-footer > a { color: var(--brand); font-size: .85rem; font-weight: 600; }
.carousel-dots { display: flex; gap: 0; }
.carousel-dots button { display: grid; place-items: center; width: 36px; height: 44px; border: 0; background: transparent; padding: 0; }
.carousel-dots span { width: 7px; height: 7px; border: 1px solid var(--brand); border-radius: 50%; transition: width .2s; }
.carousel-dots [aria-current='true'] span { width: 24px; background: var(--brand); border-radius: 4px; }
.editorial-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.editorial-copy h2 { max-width: 620px; }
.editorial-copy p { max-width: 580px; }
.photo-editorial { padding-bottom: 35px; }
.photo-interlude { background: var(--soft); }
.photo-portrait { max-width: 540px; }
.photo-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.editorial-split-reverse .photo-portrait { width: 82%; justify-self: end; }
.about-photographs { padding-top: 20px; }
.photo-wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.about-photo-pair { display: grid; grid-template-columns: 1.1fr .75fr; gap: 100px; align-items: start; margin-top: 70px; }
.about-photo-pair > .photo-portrait { margin-top: 70px; }
.photo-reflection { max-width: 500px; font: 500 clamp(1.25rem, 2vw, 1.65rem)/1.6 var(--display); letter-spacing: -.035em; color: var(--brand); margin: 35px 0 24px; }
@media (max-width: 1080px) {
  .editorial-split { gap: 40px; }
  .about-photo-pair { gap: 55px; }
  .carousel-footer { justify-content: flex-start; }
  .carousel-footer > a { margin-left: auto; }
}
@media (max-width: 760px) {
  .hero-photograph { max-width: 520px; }
  .hero-photograph .photo-lead img { border-top-right-radius: 55px; }
  .gallery-heading { display: block; }
  .carousel-controls { padding: 0; margin-block: 16px; }
  .photo-track { grid-auto-columns: 88%; gap: 16px; }
  .carousel-footer { gap: 8px 16px; }
  .carousel-footer > a { width: 100%; margin-left: 0; margin-top: 12px; }
  .carousel-dots button { width: 30px; }
  .editorial-split, .about-photo-pair { grid-template-columns: 1fr; gap: 36px; }
  .editorial-split .photo-portrait { max-width: none; }
  .editorial-split-reverse .photo-portrait { width: 88%; }
  .photo-editorial { padding-bottom: 15px; }
  .about-photo-pair { margin-top: 40px; }
  .about-photo-pair > .photo-portrait { width: 84%; margin: 0 0 0 auto; }
  .photo-reflection { margin-top: 28px; }
  .photo-wide img { aspect-ratio: 4 / 3; }
}
@media print {
  .photo-track { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; }
  .carousel-controls, .carousel-dots, .carousel-help { display: none; }
}

/* V3.1: service definitions and restrained photographic alignment. */
.service-formats { margin: 0 0 18px; }
.service-formats > div + div { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.service-formats dt { font-weight: 600; color: var(--brand); margin-bottom: 6px; }
.service-formats dd { margin: 0; color: var(--muted); font-size: .95rem; }
.page-solucoes .feature > .intervention { grid-column: 2; margin-top: 8px; }
.challenge-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.page-solucoes .challenge-links a { margin: 0; padding-block: 8px; }
.hero-photograph .photo-lead img { aspect-ratio: 4 / 5; object-fit: contain; object-position: center; }
.photo-slide .documentary-photo { width: 100%; }
.photo-slide img { object-position: center; }
.photo-slide figcaption { min-height: 5rem; align-content: start; }
@media (max-width: 760px) {
  .photo-wide img { aspect-ratio: 16 / 9; object-fit: contain; }
}

/* V4: editorial service rows reuse the established typography and palette. */
.format-list { margin: 0; }
.format-row { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr); gap: 40px; padding-block: 30px; border-top: 1px solid var(--line); }
.format-row dt { display: flex; align-items: baseline; gap: 20px; font: 500 1.4rem/1.4 var(--display); letter-spacing: -.035em; color: var(--brand); }
.format-row dt > span[id] { position: absolute; }
.format-number { color: var(--muted); font: .75rem var(--font); letter-spacing: 0; }
.format-row dd { margin: 0; }
.format-row dd > p { margin-bottom: 10px; }
.format-row .format-example { font-size: .9rem; margin-bottom: 0; }
.working-steps { margin: 30px 0 0; padding-left: 22px; }
.working-steps li { padding-left: 8px; margin-bottom: 22px; color: var(--muted); }
.working-steps strong { color: var(--brand); }
.development-note { border-left: 2px solid var(--sepia); padding-left: 20px; margin-block: 28px; }
.development-note h3 { font-size: 1.15rem; }
.development-note p { font-size: .9rem; }
.page-atuacao #experiencias .editorial-split { align-items: start; }
@media (max-width: 760px) {
  .format-row { grid-template-columns: 1fr; gap: 14px; padding-block: 25px; }
  .page-atuacao .whatsapp-float, .page-solucoes .whatsapp-float { position: static; margin: 0 20px 20px auto; }
}

/* V4.1: compact manual gallery; original photograph proportions are preserved. */
.compact-gallery .photo-track { display: flex; gap: 16px; align-items: flex-start; }
.compact-gallery .photo-slide { flex: 0 0 auto; }
.compact-gallery .photo-slide .documentary-photo { width: auto; }
.compact-gallery .photo-slide img { display: block; width: auto; max-width: none; height: 280px; aspect-ratio: auto; object-fit: contain; }
.compact-gallery .photo-slide figure { min-height: 0; }
.compact-gallery .photo-slide figcaption { min-height: 3rem; padding: 12px 0; }
@media (max-width: 760px) {
  .compact-gallery .photo-track { gap: 12px; }
  .compact-gallery .photo-slide { flex-basis: 100%; min-width: 100%; }
  .compact-gallery .photo-slide .documentary-photo { width: 100%; }
  .compact-gallery .photo-slide img { width: 100%; height: 280px; max-width: 100%; }
}

/* V4.1: native scrolling keeps logos accessible with or without JavaScript. */
.logo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.logo-toolbar p { margin: 0; max-width: 65ch; }
.logo-toggle { flex-shrink: 0; }
.logo-viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--brand) var(--soft); border-block: 1px solid var(--line); padding-block: 24px; }
.logo-track { display: flex; width: max-content; }
.logo-group { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0 24px 0 0; }
.logo-item { width: 180px; height: 130px; flex: 0 0 180px; display: grid; place-items: center; background: var(--white); border-radius: 8px; padding: 12px; }
.logo-item img { width: 100%; height: 100%; max-height: 106px; object-fit: contain; }
.logo-item-dark { background: var(--brand); }
@media (max-width: 760px) { .logo-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; } .logo-item { width: 156px; flex-basis: 156px; height: 116px; } .logo-item img { max-height: 92px; } }

/* V5: optional preferences use the existing palette and typography. */
.privacy-preferences-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.privacy-preferences { width: min(650px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); overflow-y: auto; }
.privacy-preferences::backdrop { background: var(--navy); opacity: .6; }
.privacy-preferences h2 { font-size: clamp(24px, 4vw, 32px); }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.privacy-actions .btn { white-space: normal; }
.privacy-actions .btn:disabled { background: var(--soft); color: var(--muted); border-color: var(--line); }
#form-verification { margin-block: 20px; min-height: 65px; max-width: 100%; }
@media (max-width: 420px) { .privacy-actions .btn { width: 100%; } }
