/* Dublin Consulting: transit-map system on a dark instrument field. True black ground, near-white ink, one electric cyan.
   Lines are told apart by stroke pattern (solid, double, dashed, dotted, long-short, hairline), never by hue. */
:root {
  color-scheme: dark;
  --ground: #000000;
  --panel: #0a0a0a;
  --panel-2: #121212;
  --ink: #ededed;
  --ink-2: #a1a1a1;
  --line: #1f1f1f;
  --rule: #3d3d3d;
  --accent: #22d3ee;
  --accent-d: #67e8f9;
  --pill: 999px;
  --on-accent: #04121a;
  --on-ink: #ededed;
  --on-ink-2: #a1a1a1;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gut: clamp(20px, 4vw, 48px);
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule) var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--on-accent); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
h3 { font-family: var(--sans); letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }
.container { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 100; border-radius: var(--r); transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* Line stroke patterns: each of the seven solutions owns one, used on the map, the list and its page */
.sol-list li:nth-child(1) .sol::before, body[data-line="1"] .page-hero::before { height: 8px; background: var(--lc, var(--ink)); }
.sol-list li:nth-child(2) .sol::before, body[data-line="2"] .page-hero::before { height: 11px; background: linear-gradient(var(--lc, var(--ink)) 0 3px, transparent 3px 8px, var(--lc, var(--ink)) 8px); }
.sol-list li:nth-child(3) .sol::before, body[data-line="3"] .page-hero::before { height: 6px; background: repeating-linear-gradient(90deg, var(--lc, var(--ink)) 0 14px, transparent 14px 22px); }
.sol-list li:nth-child(4) .sol::before, body[data-line="4"] .page-hero::before { height: 6px; background: radial-gradient(circle at 3px 3px, var(--lc, var(--ink)) 2.6px, transparent 3px) 0 0 / 11px 6px repeat-x; }
.sol-list li:nth-child(5) .sol::before, body[data-line="5"] .page-hero::before { height: 6px; background: repeating-linear-gradient(90deg, var(--lc, var(--ink)) 0 26px, transparent 26px 32px, var(--lc, var(--ink)) 32px 38px, transparent 38px 44px); }
.sol-list li:nth-child(6) .sol::before, body[data-line="6"] .page-hero::before { height: 3px; background: var(--lc, var(--ink)); }
.sol-list li:nth-child(7) .sol::before, body[data-line="7"] .page-hero::before { height: 8px; background: repeating-linear-gradient(90deg, var(--lc, var(--ink)) 0 3px, transparent 3px 8px); }

/* Nav */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav-links > a, .menu-trigger { text-decoration: none; padding: 8px 0; color: var(--ink-2); transition: color .15s ease; }
.nav-links > a:hover, .menu-trigger:hover { color: var(--ink); }
.nav-cta { background: transparent; border: 1px solid var(--rule); color: var(--ink) !important; padding: 9px 20px !important; border-radius: var(--pill); font-weight: 600; transition: border-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; } }
.nav-cta:active { transform: scale(.97); }
.has-menu { position: relative; }
.menu-trigger::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mega { position: absolute; top: 100%; left: -16px; width: 320px; padding: 8px; background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .2s var(--ease-out), visibility .16s; }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.mega a:hover { background: var(--ground); }
.mega .ico { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s var(--ease-out), opacity .15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: var(--pill); font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.btn .ico { transition: transform .2s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #000; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: #fff; } .btn-ghost:hover { background: var(--ink); color: var(--ground); } }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (hover: hover) and (pointer: fine) { .btn:hover .ico { transform: translateX(4px); } }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(720px, 88vh); padding: clamp(56px, 8vw, 112px) 0; overflow: clip; background: #000; }
.hero > .container { position: relative; z-index: 2; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 55%); }
/* Pause control: the background loop is longer than 5s, so it must be stoppable (WCAG 2.2.2). Shown by JS only when the video can play. */
.hero-pause { position: absolute; z-index: 3; bottom: 20px; left: max(var(--gut), calc((100% - 1200px) / 2)); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: var(--pill); background: rgba(0, 0, 0, .55); color: var(--ink); cursor: pointer; transition: border-color .15s ease, transform .16s var(--ease-out); }
.hero-pause[hidden] { display: none; }
.hero-pause:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .hero-pause:hover { border-color: var(--accent); } }
.hero-pause .ico { width: 18px; height: 18px; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }
.hero-grid { display: block; }
.hero-copy { max-width: 34rem; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.75rem); letter-spacing: -.03em; line-height: .98; font-weight: 800; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 30em; margin-top: 24px; }
.map .ln { cursor: pointer; transition: opacity .2s ease; }
.map .ln-name { font: 700 13px var(--sans); fill: var(--ink); }
.map .st-label { font: 500 11px var(--sans); fill: var(--ink-2); }
.map .hub-label { font: 800 15px var(--display); fill: var(--accent); letter-spacing: -.01em; }
.map .hub { filter: drop-shadow(0 0 6px rgba(34, 211, 238, .7)); }
.map .end-label { font: 800 15px var(--display); fill: var(--ink); letter-spacing: -.01em; }
.map .st { fill: var(--ground); stroke: var(--ink); stroke-width: 3; }
@media (hover: hover) and (pointer: fine) {
  .map:has(.ln:hover) .ln:not(:hover) { opacity: .28; }
}
.map .ln:focus-visible { outline: none; }
.map .ln:focus-visible .ln-name { fill: var(--accent); text-decoration: underline; }

/* Statement */
.statement { padding: clamp(56px, 8vw, 104px) 0; background: var(--panel); border-block: 1px solid var(--line); }
.statement-text { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.22; letter-spacing: -.025em; max-width: 24em; }
.statement-text strong { font-weight: 800; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: 48px 0 8px; }
.section-tint { background: var(--panel); border-block: 1px solid var(--line); }
.title { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 16em; }
.desc { font-size: 1.125rem; color: var(--ink-2); max-width: 32em; margin-top: 20px; }
.sub { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 20px; letter-spacing: 0; }
.fine { color: var(--ink-2); font-size: .95rem; margin-top: 40px; max-width: 46em; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 104px; }
.stack .split-head, .stack { position: static; }
.stack .split-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* Solutions: six lines, each carries its stroke pattern */
.sol-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(32px, 6vw, 96px); }
.sol { position: relative; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: start; padding: 28px 0 8px; text-decoration: none; }
.sol::before { content: ""; position: absolute; top: 0; left: 0; right: 0; }
.sol-ico { display: none; }
.sol-body { display: grid; gap: 8px; }
.sol-body strong { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; }
.sol-body span { color: var(--ink-2); font-size: 1rem; max-width: 34em; }
.sol-go { color: var(--ink-2); padding-top: 4px; }
.sol-body, .sol-go { transition: transform .22s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .sol:hover .sol-body { transform: translateX(8px); }
  .sol:hover .sol-go { transform: translateX(6px); color: var(--accent); }
}
.sol:active .sol-body { transform: scale(.985); }
.sol-list li:last-child { grid-column: 1 / -1; }

/* Method: the route from Diagnóstico to Entrega */
.field { background: var(--panel); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(40px, 6vw, 72px); }
.steps li { position: relative; padding: 52px 20px 0 0; }
.steps li::before { content: ""; position: absolute; left: 10px; top: 7px; width: 100%; height: 6px; background: var(--ink); }
.steps li:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); border: 4px solid var(--ink); z-index: 1; }
.steps li:first-child .step-n { border-color: var(--accent); }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 1rem; max-width: 16em; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-4 p { color: var(--ink); font-size: 1.05rem; }

/* Projects */
.proj-list { border-top: 3px solid var(--ink); }
.proj { display: grid; grid-template-columns: 140px 1fr; gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.proj-tag, .proj-main, .proj-meta { transition: transform .22s var(--ease-out); }
.proj-tag { font-size: .95rem; font-weight: 700; color: var(--ink); padding-top: 4px; }
.proj-main { display: grid; gap: 6px; }
.proj-main strong { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.proj-main span { color: var(--ink-2); }
.proj-meta { grid-column: 2; font-size: .92rem; font-weight: 500; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .proj:hover .proj-tag, .proj:hover .proj-main, .proj:hover .proj-meta { transform: translateX(10px); }
}
/* Casos reais: mesma linha da lista de projetos, com contexto, ação e resultado */
.case { display: grid; grid-template-columns: 140px 1fr; gap: 8px 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.case-main { display: grid; gap: 10px; }
.case-src { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.case h3 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.case-steps { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px 16px; margin: 6px 0 0; }
.case-steps dt { font-size: .92rem; font-weight: 700; color: var(--ink); padding-top: 1px; }
.case-steps dd { margin: 0; color: var(--ink-2); max-width: 38em; }
.case-steps .case-res { color: var(--ink); font-weight: 600; }
.case-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.case-link .ico { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .case-link:hover { color: var(--accent); } .case-link:hover .ico { transform: translateX(4px); } }
.oss { margin-top: 48px; }
.oss-list { border-top: 3px solid var(--ink); }
.oss-list a { display: grid; grid-template-columns: minmax(0, 14em) 1fr; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.oss-list strong { font-weight: 700; overflow-wrap: anywhere; }
.oss-list span { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .oss-list a:hover strong { color: var(--accent); } }
@media (max-width: 640px) {
  .case { grid-template-columns: 1fr; padding: 28px 0; }
  .case-steps { grid-template-columns: 1fr; gap: 2px; }
  .case-steps dd { margin-bottom: 10px; }
  .oss-list a { grid-template-columns: 1fr; }
}

/* Technologies */
.tech-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 32px; margin-top: 48px; }
.tg { border-top: 3px solid var(--ink); }
.tg h3 { font-size: 1rem; font-weight: 700; padding: 14px 0 6px; }
.tg ul, .chips-row { display: flex; flex-direction: column; }
.vchip { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-weight: 500; color: var(--ink); }
.vchip::before { content: ""; width: 10px; height: 10px; flex: none; border: 3px solid var(--ink); border-radius: 50%; background: var(--ground); }
.chips-row { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.chips-row .vchip { padding: 10px 16px 10px 12px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { margin-top: 40px; border-top: 3px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--ink-2); font-size: .95rem; }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 20px; background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fld { display: grid; gap: 8px; }
.fld label { font-size: .92rem; font-weight: 600; }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 13px 14px; caret-color: var(--accent); transition: border-color .15s ease, box-shadow .15s ease; }
textarea { resize: vertical; min-height: 120px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .28); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #b3261e; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.form-note { font-size: .95rem; color: var(--accent); min-height: 1.4em; font-weight: 600; }
.send-row { display: grid; gap: 12px; }
.consent a { color: var(--ink); text-underline-offset: 3px; }
/* Página de privacidade */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.015em; margin-top: 40px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { color: var(--ink-2); margin-top: 10px; max-width: 44em; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Inner pages */
.page-hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--ink); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.25rem); max-width: 14em; }
.page-hero .lead { max-width: 30em; }
.page-hero .narrow { max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--ink-2); margin-bottom: 32px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.line-map { margin: 0; width: min(420px, 100%); padding: 18px 20px 14px; background: rgba(0, 0, 0, .78); border: 1px solid var(--line); border-radius: var(--r); }
.line-map .st-label { font-size: 12.5px; }
.line-map .hub-label, .line-map .end-label { font-size: 15px; }
.line-map svg { width: 100%; height: auto; overflow: visible; }
.deliver li { display: grid; grid-template-columns: 28px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.deliver { border-top: 3px solid var(--ink); }
.deliver .chk { color: var(--ink); width: 24px; height: 24px; margin-top: 2px; }
.deliver h3 { font-size: 1.3rem; margin-bottom: 6px; }
.deliver p { color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 3px solid var(--ink); }
.faq summary { cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.15rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.6rem; font-weight: 400; color: var(--ink); transition: rotate .2s var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ink-2); padding: 0 40px 24px 0; max-width: 40em; }
.cta-band { max-width: 860px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
.chips > span { font-size: .92rem; font-weight: 700; color: var(--ink); margin-right: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--rule); border-radius: var(--pill); background: var(--panel); text-decoration: none; font-size: .95rem; font-weight: 500; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.chip .ico { color: var(--ink); width: 18px; height: 18px; }
.chip:hover { border-color: var(--accent); background: var(--panel-2); }
.chip:active { transform: scale(.97); }
.cta-band .btn { margin-top: 32px; }

/* Footer */
.footer { background: #000; border-top: 1px solid var(--line); color: var(--on-ink-2); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-desc { margin-top: 20px; max-width: 22em; }
.footer h3 { color: #fff; font-family: var(--sans); font-size: .95rem; margin-bottom: 16px; letter-spacing: 0; }
.footer a { display: block; padding: 5px 0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; }
.footer-bottom span:last-child { max-width: 46em; }
/* Botão flutuante com as cores oficiais do WhatsApp (exceção ao acento único, a pedido do dono) */
.wa-float { --wa-green: #25d366; position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa-green); color: #fff; display: grid; place-items: center; z-index: 40; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .55); transition: transform .16s var(--ease-out), background-color .15s ease; }
.wa-float:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: #1ebe5d; } }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Motion: content is visible by default; JS opts in. One authored moment (the map is drawn once), quiet reveals elsewhere. */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-copy > * { animation: rise .6s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.js .steps li::before { transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .steps li.is-visible::before { transform: none; }

/* Motion layer 2: signal / scan language. All effects are CSS-only (transform, opacity, clip-path). */
:root { --ease-inout: cubic-bezier(.77, 0, .175, 1); }

/* Focal moment: the headline comes into focus over the hero video. */
.js .hero-copy h1 { animation: focus-in .9s var(--ease-out) both; }
@keyframes focus-in { from { opacity: 0; filter: blur(10px); transform: translateY(14px); } }

/* Feedback: a sheen crosses the primary CTA on hover/focus, and once on the hero CTA after the headline lands. */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 32%, rgba(34, 211, 238, .6) 50%, transparent 68%); transform: translateX(-120%); pointer-events: none; }
.btn-primary:focus-visible::after { animation: sheen .8s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover::after { animation: sheen .8s var(--ease-out); } }
.js .hero .btn-primary::after { animation: sheen .9s var(--ease-out) 1.5s 1; }
@keyframes sheen { to { transform: translateX(120%); } }

/* Emphasis: the three key phrases of the statement are underlined as the sentence enters. */
.statement-text strong { background: linear-gradient(var(--accent), var(--accent)) 0 96% / 100% 3px no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.js .statement-text.reveal strong { background-size: 0 3px; transition: background-size .8s var(--ease-out); transition-delay: 500ms; }
.js .statement-text.reveal strong:nth-of-type(2) { transition-delay: 750ms; }
.js .statement-text.reveal strong:nth-of-type(3) { transition-delay: 1000ms; }
.js .statement-text.reveal.is-visible strong { background-size: 100% 3px; }

/* Motif: each solution's transit line is drawn in from the left as its row appears. */
.js .sol.reveal::before { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease-out) .15s; }
.js .sol.reveal.is-visible::before { clip-path: inset(0); }

/* Photos and tiles show as soon as they load: no wipe or zoom (it made images feel slow on phones). */
.js .cimg.reveal, .js .tile.reveal { opacity: 1; transform: none; transition: none; }

/* Orientation: reading progress as a cyan line under the header (home only; needs scroll-driven animations). */
@supports (animation-timeline: scroll()) {
  body:has(> main > .hero) .navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root block); }
  @keyframes progress { to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-copy > *, .js .hero-copy h1 { animation: none; opacity: 1; transform: none; filter: none; transition: none; }
  .js .steps li::before { transform: none; transition: none; }
  .btn-primary::after, .navbar::after { display: none; }
  .js .sol.reveal::before { clip-path: none; }
  .js .statement-text.reveal strong { background-size: 100% 3px; }
  * { transition-duration: .01ms !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  /* Uma coluna: o formulário sobe para logo após a introdução, para o #contato mostrar o form */
  .contact-grid { gap: 24px; }
  .contact-grid > div { display: contents; }
  .contact-grid .title { order: 1; }
  .contact-grid .desc { order: 2; }
  .contact-grid .contact-form { order: 3; }
  .contact-grid .cimg { order: 4; margin-top: 8px; }
  .contact-grid .contact-list { order: 5; margin-top: 8px; }
  .split-head { position: static; }
  .tech-groups { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps li:nth-child(3)::before { display: none; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-4 li:nth-child(3)::before { display: block; }
  .steps-4 li:nth-child(2)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 24px; background: var(--ground); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 68px); overflow: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .22s var(--ease-out), visibility .16s; }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links > a, .menu-trigger { padding: 16px 0; border-bottom: 1px solid var(--line); display: block; }
  .menu-trigger::after { display: none; }
  .mega { position: static; width: auto; opacity: 1; visibility: inherit; transform: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 8px 8px; }
  .nav-cta { margin-top: 16px; text-align: center; }
  .page-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .tech-groups { grid-template-columns: repeat(2, 1fr); }
  .sol-list { grid-template-columns: 1fr; }
  .steps, .steps-4 { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 32px 44px; }
  .steps li::before { left: 7px; top: 14px; width: 6px; height: 100%; }
  .steps li:nth-child(3)::before, .steps-4 li:nth-child(2)::before { display: block; }
  .steps li:last-child::before { display: none; }
  .steps li:last-child { padding-bottom: 0; }
  .js .steps li::before { transform: scaleY(0); transform-origin: top; }
  .js .steps li.is-visible::before { transform: none; }
  .step-n { top: 0; }
  .proj { grid-template-columns: 1fr; }
  .proj-meta { grid-column: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* Image tiles: authored vector artwork, sharp at any density */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--panel); text-decoration: none; aspect-ratio: 4 / 5; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; transition: transform .5s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .08) 36%, rgba(0, 0, 0, .9) 100%); }
.tile-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3vw, 36px); }
.tile h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 3rem); letter-spacing: -.03em; line-height: 1; max-width: 10em; }
.tile p { max-width: 26em; color: var(--ink); font-size: 1.05rem; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
.tile:active img { transform: scale(1.01); }
body[data-line] .page-hero { background-repeat: no-repeat; background-position: right center; background-size: cover; }
body[data-line="1"] .page-hero, body[data-line="5"] .page-hero { background-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .9) 50%, rgba(0, 0, 0, .25) 100%), url("/img/photos/platform.webp"); }
body[data-line="2"] .page-hero, body[data-line="4"] .page-hero { background-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .9) 50%, rgba(0, 0, 0, .25) 100%), url("/img/photos/datacenter.webp"); }
body[data-line="3"] .page-hero, body[data-line="6"] .page-hero { background-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .9) 50%, rgba(0, 0, 0, .25) 100%), url("/img/photos/pipeline.webp"); }
body[data-line="7"] .page-hero { background-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .9) 50%, rgba(0, 0, 0, .25) 100%), url("/img/photos/ai.webp"); }
@media (max-width: 1024px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .tile { aspect-ratio: 4 / 3; } .proj-tag { display: none; } }

/* Tablet: the headline column reaches the busy part of the video, so darken more of it */
@media (min-width: 861px) and (max-width: 1180px) { .hero::before { background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 78%); } .hero-copy { max-width: 27rem; } }
@media (max-width: 860px) { .hero { min-height: 0; padding-bottom: 96px; } .hero::before { background: linear-gradient(180deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 100%); } .hero-video { object-position: 78% center; } }

.tile:nth-child(1) img { object-position: 62% 50%; }
.tile:nth-child(2) img { object-position: 64% 50%; }
.tile:nth-child(3) img { object-position: 50% 50%; }

/* Cultura e valores */
.culture-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.cimg { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.cimg img { display: block; width: 100%; height: auto; }
.fit-title { margin-top: 36px; }
.fit { margin-top: 4px; }
.fit li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.fit li:first-child { border-top: 3px solid var(--ink); }
.fit strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 2px; }
.values-title { margin-top: clamp(48px, 7vw, 88px); }
/* Oferta de diagnóstico */
.offer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.offer-free { margin-top: 20px; color: var(--ink-2); font-size: .98rem; max-width: 30em; }
.offer-card { display: grid; gap: 28px; background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: clamp(24px, 4vw, 40px); }
.offer-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.offer-facts dt { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.offer-facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.offer-card .sub { margin-bottom: 4px; }
.offer-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.offer-list li:first-child { border-top: 1px solid var(--line); }
.offer-card p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1024px) { .offer { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .offer-facts { grid-template-columns: 1fr; } }
/* Quem está por trás */
.founder { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-photo { max-width: 440px; }
.founder-name { display: grid; gap: 6px; margin-top: 24px; }
.founder-name strong { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.02em; }
.founder-name span { color: var(--ink-2); }
.founder-sub { margin-top: 32px; margin-bottom: 4px; }
.certs strong { margin-bottom: 0; font-size: 1rem; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 340px; } }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.values li { border-top: 3px solid var(--ink); padding-top: 16px; }
.values h3 { font-size: 1.25rem; margin-bottom: 8px; }
.values p { color: var(--ink-2); }
@media (max-width: 1024px) { .culture-lead { grid-template-columns: 1fr; } .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* People images: one per section */
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.method-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.split-head .cimg, .contact-grid > div > .cimg { margin-top: 28px; }
.cimg-wide { margin-top: 48px; }
.cimg-wide img { aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 1024px) { .statement-grid, .method-head { grid-template-columns: 1fr; } }
