/* ==========================================================================
   DeskSolution — folha de estilos única
   Paleta extraída da logo: navy #1E3A6E, azul-céu #5BB8E0.
   Regras do projeto (ver docs/ARQUITETURA.md):
   - sem style="" no HTML (a CSP bloqueia); estilos só aqui
   - azul-céu nunca como texto sobre fundo claro (contraste); use --sky-deep
   - animação só em transform/opacity; tudo respeita prefers-reduced-motion
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1a38;
  --navy-dark: #0f2347;
  --navy: #1e3a6e;
  --navy-mid: #2d5a9e;
  --sky: #5bb8e0;
  --sky-deep: #1f6e9c;
  --sky-pale: #dcefFa;
  --mist: #f3f8fc;
  --line: #dde6f0;
  --text: #1b2a44;
  --text-soft: #4a5a75;
  --white: #fff;

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-y: clamp(72px, 10vw, 144px);
}

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-dark); color: #fff; padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 58ch; }
.on-dark { color: #fff; }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, 0.78); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head p { margin-top: 18px; }
.small-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--sky-deep); margin-bottom: 14px; }
.on-dark .small-label { color: var(--sky); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.005em;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; line-height: 1.1;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--sky); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(91, 184, 224, 0.7); }
.btn-primary:hover { transform: translateY(-3px); background: #7cc8ea; box-shadow: 0 16px 36px -10px rgba(91, 184, 224, 0.85); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-3px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-dark); transform: translateY(-3px); }
.btn-sm { padding: 11px 22px; font-size: 0.92rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700;
  color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.2s;
}
.link-arrow::after { content: "\2192"; }
.link-arrow:hover { gap: 16px; color: var(--navy-mid); }

/* ---------- cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(30, 58, 110, 0.08);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 30px -12px rgba(15, 35, 71, 0.22); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--text);
  position: relative; padding-block: 6px;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 12px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--sky), var(--navy-mid)); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 clamp(120px, 16vw, 210px);
  background:
    radial-gradient(90% 70% at 88% 8%, rgba(45, 90, 158, 0.9), transparent 60%),
    linear-gradient(165deg, var(--navy-dark) 0%, var(--ink) 85%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 32%), rgba(91, 184, 224, 0.2), transparent 62%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-title {
  color: #fff; font-weight: 900; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-sub { margin-top: 28px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: rgba(255, 255, 255, 0.8); max-width: 52ch; animation: fade-up 1s 0.45s var(--ease) both; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; animation: fade-up 1s 0.6s var(--ease) both; }
.hero-facts { margin-top: clamp(36px, 6vw, 60px); display: flex; flex-wrap: wrap; gap: 14px 40px; animation: fade-up 1s 0.75s var(--ease) both; }
.hero-facts div { min-width: 0; }
.hero-facts dt { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.hero-facts dd { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); margin: 2px 0 0; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; animation: fade-up 1.2s 0.3s var(--ease) both; }

/* camadas (motivo central, vem da logo: planos empilhados) */
.stack { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.35)); }
.plane { transition: transform 0.9s var(--ease), opacity 0.5s; }
.plane-app { transform: translateY(calc(var(--spread, 0) * -48px + var(--lift-app, 0px))); }
.plane-saas { transform: translateY(calc(var(--lift-saas, 0px))); }
.plane-site { transform: translateY(calc(var(--spread, 0) * 48px + var(--lift-site, 0px))); }
.float { animation: bob 7s ease-in-out infinite; }
.plane-saas .float { animation-duration: 8.5s; animation-delay: -2s; }
.plane-site .float { animation-duration: 9.5s; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.t-app { fill: #5bb8e0; } .l-app { fill: #3b93bf; } .r-app { fill: #2f7da6; }
.t-saas { fill: #2d5a9e; } .l-saas { fill: #244a84; } .r-saas { fill: #1b3b6b; }
.t-site { fill: #dcefFa; } .l-site { fill: #b6d8ee; } .r-site { fill: #93c0dd; }
.detail { fill: none; stroke: #fff; stroke-opacity: 0.4; stroke-width: 1.5; }
.detail-fill { fill: #fff; fill-opacity: 0.85; }
.plane-label { font-family: var(--font-display); font-weight: 700; font-size: 17px; fill: #fff; }

/* ondas */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(80px, 15vw, 190px); z-index: 1; pointer-events: none; color: var(--next-bg, #fff); }
.wave { max-width: none; position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: drift 26s linear infinite; }
.wave path { fill: currentColor; }
.wave-1 { opacity: 0.18; color: var(--sky); animation-duration: 38s; }
.wave-2 { opacity: 0.35; color: var(--sky); animation-duration: 30s; animation-direction: reverse; }
.wave-3 { animation-duration: 24s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- faixa de tecnologias ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding-block: 22px; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; flex: none; }
.marquee li { display: flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
.marquee li::after { content: ""; width: 9px; height: 9px; margin-inline: 30px; background: var(--sky); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- números ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px) 0 0; position: relative; }
.stat + .stat { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; font-size: clamp(3.6rem, 9vw, 7.4rem); color: var(--navy-mid); }
.stat-num sup { font-size: 0.42em; vertical-align: top; position: relative; top: 0.12em; margin-left: 4px; letter-spacing: 0; color: var(--sky-deep); }
.stat-bar { display: block; height: 4px; width: 64px; margin: 18px 0; background: var(--sky); border-radius: 4px; transform-origin: left; }
.stat p { color: var(--text); font-size: 1.05rem; max-width: 30ch; }
.stat cite { display: block; margin-top: 12px; font-size: 0.88rem; color: var(--text-soft); font-style: normal; }
.stats-foot { margin-top: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.stats-foot p { max-width: 52ch; color: var(--text-soft); }

/* ---------- serviços (palco com camadas fixas) ---------- */
.services { background: var(--mist); }
.services-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-visual { position: sticky; top: calc(var(--header-h) + 28px); }
.stack-panel { background: linear-gradient(160deg, var(--navy-dark), var(--ink)); border-radius: 32px; padding: clamp(20px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(15, 35, 71, 0.6); }
.stack-panel .stack { --spread: 0.55; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.35)); }
.stack-panel[data-active] .plane { opacity: 0.32; }
.stack-panel[data-active="app"] .plane-app, .stack-panel[data-active="saas"] .plane-saas, .stack-panel[data-active="site"] .plane-site { opacity: 1; }
.stack-panel[data-active="app"] { --lift-app: -30px; }
.stack-panel[data-active="saas"] { --lift-saas: -26px; }
.stack-panel[data-active="site"] { --lift-site: -26px; }
.svc { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding-block: 36px; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; }
.svc h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.svc p { margin-top: 16px; color: var(--text-soft); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chips li { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* ---------- portfólio em linhas ---------- */
.works { border-top: 1px solid var(--line); }
.work {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 150px; gap: clamp(16px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.6vw, 40px) 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left 0.5s var(--ease);
}
.work::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sky); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease); }
.work:hover { padding-left: 24px; }
.work:hover::before { transform: scaleY(1); }
.work h3 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; }
.work p { color: var(--text-soft); font-size: 1rem; }
.work .chips { margin: 14px 0 0; }
.work .status { justify-self: end; }
.status { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.status-live { color: #17653a; background: #dff5e8; }
.status-dev { color: #8a4a06; background: #fdecd3; }

/* ---------- processo ---------- */
.process { background: var(--ink); color: #fff; overflow: hidden; }
.process h2 { color: #fff; }
.steps { list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: rgba(255, 255, 255, 0.14); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--sky); transform: scaleX(var(--steps-p, 0)); transform-origin: left; }
.step { position: relative; padding-top: 72px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  background: var(--navy-dark); border: 2px solid rgba(255, 255, 255, 0.2); color: #fff; transition: background-color 0.5s, border-color 0.5s, color 0.5s;
}
.step.in::before { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.step h3 { color: #fff; font-size: 1.3rem; }
.step p { margin-top: 10px; color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; }

/* ---------- sobre ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.big-years { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.06em; line-height: 0.85; font-size: clamp(6rem, 17vw, 12rem); color: var(--navy-mid); }
.big-years small { display: block; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.01em; font-weight: 700; color: var(--ink); margin-top: 14px; line-height: 1.25; max-width: 14ch; }
.mvv { display: grid; gap: 0; }
.mvv > div { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
.mvv > div:last-child { border-bottom: 1px solid var(--line); }
.mvv h3 { font-size: 1.15rem; color: var(--sky-deep); }
.mvv p, .mvv li { color: var(--text-soft); }
.mvv li + li { margin-top: 6px; }

/* ---------- CTA final ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(96px, 13vw, 180px) clamp(120px, 15vw, 210px); background: radial-gradient(80% 90% at 50% 0%, rgba(45, 90, 158, 0.85), transparent 70%), linear-gradient(170deg, var(--navy-dark), var(--ink)); }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 6vw, 4.8rem); font-weight: 900; letter-spacing: -0.035em; max-width: 16ch; margin-inline: auto; }
.cta p { margin: 22px auto 0; max-width: 52ch; color: rgba(255, 255, 255, 0.78); }
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta .waves { color: var(--ink); }
.cta .btn-primary { font-size: 1.1rem; padding: 20px 38px; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding-top: clamp(40px, 6vw, 72px); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.site-footer h2 { font-size: 0.95rem; color: #fff; letter-spacing: 0; font-weight: 700; margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(110px, 14vw, 180px); background: radial-gradient(80% 90% at 90% 0%, rgba(45, 90, 158, 0.85), transparent 62%), linear-gradient(165deg, var(--navy-dark), var(--ink)); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 75%) var(--my, 35%), rgba(91, 184, 224, 0.18), transparent 62%); }
.page-hero h1 { color: #fff; font-weight: 900; letter-spacing: -0.035em; font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 18ch; animation: fade-up 1s var(--ease) both; }
.page-hero .lead { margin-top: 24px; color: rgba(255, 255, 255, 0.8); animation: fade-up 1s 0.15s var(--ease) both; }
.page-hero .hero-actions { animation-delay: 0.3s; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 28px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--sky); }
.crumbs [aria-current] { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.checklist li { position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--line); color: var(--text); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 14px; background: var(--sky); transform: rotate(45deg); border-radius: 2px; }
.checklist strong { font-family: var(--font-display); color: var(--ink); display: block; font-size: 1.08rem; }
.checklist span { color: var(--text-soft); font-size: 0.98rem; }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--text-soft); }
.band { background: var(--mist); }
.two-models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.model { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s; }
.model:hover { transform: translateY(-6px); border-color: var(--sky); box-shadow: 0 24px 50px -28px rgba(30, 58, 110, 0.4); }
.model h3 { font-size: 1.35rem; }
.model p { margin-top: 12px; color: var(--text-soft); font-size: 1rem; }
.model ul { margin-top: 16px; }
.model li { padding-left: 22px; position: relative; color: var(--text); font-size: 0.98rem; }
.model li + li { margin-top: 8px; }
.model li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--sky); border-radius: 50%; }

.faq { max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); position: relative; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .faq-item summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--navy-mid); transition: transform 0.4s var(--ease); }
.faq-item summary::before { transform: rotate(90deg); }
.faq-item[open] summary::before { transform: rotate(0); }
.faq-a { padding: 0 56px 26px 0; color: var(--text-soft); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact-card h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.contact-card p { color: var(--text-soft); font-size: 1rem; }
.contact-card .big { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-card .btn { margin-top: auto; }
.data-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; }
.data-list dt { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.data-list dd { color: var(--text-soft); margin: 0; }

.work-detail { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 80px); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.work-detail:last-child { border-bottom: 1px solid var(--line); }
.work-detail h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.work-detail .status { display: inline-block; margin-top: 16px; }
.work-detail p { color: var(--text-soft); }
.work-detail p + p { margin-top: 1em; }

/* ---------- revelar ao rolar ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal.d1 { transition-delay: 0.1s; } html.js .reveal.d2 { transition-delay: 0.2s; } html.js .reveal.d3 { transition-delay: 0.3s; }
  html.js .stat .stat-bar { transform: scaleX(0); transition: transform 1s 0.3s var(--ease); }
  html.js .stat.in .stat-bar { transform: scaleX(1); }
}

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-inner, .about-grid, .split, .work-detail { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .services-visual { position: static; }
  .stack-panel { max-width: 460px; }
  .svc { min-height: 0; padding-block: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-models { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; gap: 12px; }
  .work:hover { padding-left: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -20px rgba(15, 35, 71, 0.3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 18px; justify-content: center; }
  html:not(.js) .nav { position: static; transform: none; opacity: 1; visibility: visible; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { position: absolute; height: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mvv > div { grid-template-columns: 1fr; gap: 8px; }
  .data-list { grid-template-columns: 1fr; gap: 2px; } .data-list dd { margin-bottom: 12px; }
  .hero-facts { gap: 14px 28px; }
  .btn { padding: 15px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .marquee ul[aria-hidden] { display: none; } .marquee ul { flex-wrap: wrap; row-gap: 10px; } }
.process { padding-bottom: calc(var(--section-y) + clamp(60px, 10vw, 140px)); }
.process .lead { color: rgba(255, 255, 255, 0.78); }
.two-models + .two-models { margin-top: 24px; }
.split + .prose { margin-top: clamp(32px, 5vw, 56px); max-width: 72ch; }

.about-grid h2 { margin-bottom: 28px; }
.crumbs { list-style: none; padding: 0; }
.split h2 + .lead, .split h2 + p { margin-top: 20px; }
.contact-card .big-email { font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- blog ---------- */
.post-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--sky); box-shadow: 0 24px 50px -28px rgba(30, 58, 110, 0.4); }
.post-card h2 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); letter-spacing: -0.02em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:focus-within { outline: 3px solid var(--sky); outline-offset: 3px; }
.post-card p { color: var(--text-soft); font-size: 1rem; }
.post-card .link-arrow { margin-top: auto; }
.post-date { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--sky-deep); }
.post-meta { margin-top: 22px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); animation: fade-up 1s 0.2s var(--ease) both; }

.article { max-width: 72ch; margin-inline: auto; }
.article > * + * { margin-top: 1.15em; }
.article p, .article li { color: var(--text); }
.article h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; margin-top: 2em; }
.article h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-top: 1.6em; }
.article ul, .article ol { padding-left: 0; }
.article ol { list-style: none; counter-reset: li; }
.article li { position: relative; padding-left: 30px; }
.article li + li { margin-top: 0.6em; }
.article ul > li::before { content: ""; position: absolute; left: 4px; top: 0.66em; width: 9px; height: 9px; background: var(--sky); transform: rotate(45deg); border-radius: 2px; }
.article ol > li::before { counter-increment: li; content: counter(li) "."; position: absolute; left: 0; font-family: var(--font-display); font-weight: 800; color: var(--navy-mid); }
.article a:not(.btn) { color: var(--navy); text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article a:not(.btn):hover { color: var(--navy-mid); }
.article strong { color: var(--ink); }
.article .note { background: var(--mist); border-left: 4px solid var(--sky); border-radius: 0 12px 12px 0; padding: 18px 22px; color: var(--text-soft); font-size: 0.98rem; }
.article .lead-in { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-soft); }
.article-foot { max-width: 72ch; margin: clamp(48px, 7vw, 80px) auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
