/* ============================================================
   ANDERS TECH — "Engineering Editorial"
   Premium redesign · blueprint system · data-as-art
   ============================================================ */

/* ---------------- TOKENS ---------------- */
:root {
  --navy:      #203864;
  --navy-700:  #2b4a82;
  --navy-800:  #1a2f55;
  --navy-900:  #12233f;
  --navy-950:  #0b1730;
  --red:       #FE0000;
  --red-600:   #d80a0a;
  --paper:     #F4F6FA;
  --paper-2:   #FBFCFE;
  --white:     #FFFFFF;

  --ink:       #16233f;
  --ink-soft:  #46577a;
  --ink-mute:  #8190ac;
  --line:      rgba(32,56,100,.14);
  --line-soft: rgba(32,56,100,.08);

  --on-navy:      #ffffff;
  --on-navy-soft: #b9c8e4;
  --on-navy-mute: #7589ad;
  --line-navy:    rgba(255,255,255,.14);

  --maxw: 1320px;
  --gut: clamp(22px, 5vw, 80px);
  --edge: clamp(12px, 1.6vw, 22px);   /* blueprint frame inset */

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, -apple-system, sans-serif;
  --ff-mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------------- RESET ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; }
::selection { background: var(--red); color: #fff; }

h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; color: var(--navy); }

/* ---------------- BLUEPRINT FRAME (fixed) ---------------- */
.blueprint { position: fixed; inset: var(--edge); z-index: 70; pointer-events: none; border: 1px solid var(--line); mix-blend-mode: multiply; }
.blueprint.on-dark { mix-blend-mode: normal; }
.bp-tick { position: absolute; width: 11px; height: 11px; }
.bp-tick::before, .bp-tick::after { content: ""; position: absolute; background: var(--red); }
.bp-tick::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-.5px); }
.bp-tick::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-.5px); }
.bp-tick.tl { top: -6px; left: -6px; } .bp-tick.tr { top: -6px; right: -6px; }
.bp-tick.bl { bottom: -6px; left: -6px; } .bp-tick.br { bottom: -6px; right: -6px; }
.bp-coord { position: fixed; z-index: 70; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-mute); pointer-events: none; text-transform: uppercase; }
.bp-coord.c-bl { left: calc(var(--edge) + 12px); bottom: calc(var(--edge) + 9px); }
.bp-coord.c-br { right: calc(var(--edge) + 12px); bottom: calc(var(--edge) + 9px); }
@media (max-width: 700px) { .blueprint, .bp-coord { display: none; } }

/* scroll progress (thin red, top) */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--red); z-index: 90; transition: width .1s linear; }

/* ---------------- LAYOUT ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(84px, 10vw, 150px); position: relative; }

/* mono technical label */
.tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.tag::before { content: ""; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); flex: none; }
.tag.muted { color: var(--ink-mute); } .tag.muted::before { background: var(--ink-mute); }
.tag.light { color: #ff6a6a; } .tag.light::before { background: #ff6a6a; }

/* section header w/ index + rule */
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px,4vw,64px); align-items: end; margin-bottom: clamp(48px,6vw,80px); }
.sec-index { font-family: var(--ff-mono); font-size: 13px; color: var(--ink-mute); letter-spacing: .1em; padding-top: 8px; white-space: nowrap; }
.sec-index b { color: var(--red); font-weight: 700; }
.sec-title h2 { font-size: clamp(32px, 4.6vw, 60px); text-wrap: balance; }
.sec-title .tag { margin-bottom: 18px; }
.sec-title p { margin-top: 20px; font-size: clamp(16px,1.3vw,19px); color: var(--ink-soft); max-width: 54ch; }
.rule { height: 1px; background: var(--line); width: 100%; }

/* diamond marker */
.dmd { width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); display: inline-block; flex: none; }

/* ---------------- BUTTONS ---------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-family: var(--ff-display); font-weight: 600; font-size: 15px; padding: 16px 28px; border-radius: 2px; transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s; overflow: hidden; }
.btn svg { width: 17px; height: 17px; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn-red { background: var(--red); color: #fff; }
.btn-red::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateY(101%); transition: transform .4s var(--ease-out); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(254,0,0,.26); }
.btn-red:hover::after { transform: translateY(0); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-out { border: 1px solid var(--line); color: var(--navy); }
.btn-out:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-out-light { border: 1px solid var(--line-navy); color: #fff; }
.btn-out-light:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: var(--edge); left: var(--edge); right: var(--edge); z-index: 80; transition: transform .4s var(--ease); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; padding-inline: clamp(16px, 2.2vw, 30px); background: rgba(244,246,250,0); transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.solid .nav-inner { background: rgba(251,252,254,.86); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line), 0 16px 40px -28px rgba(18,33,64,.5); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo, .brand .logo-img { width: 40px; height: 40px; flex: none; object-fit: contain; transition: filter .35s; }
.brand .wm { font-family: var(--ff-display); font-weight: 700; font-size: 22px; letter-spacing: -.04em; color: #fff; line-height: 1; transition: color .35s; }
.brand .wm b { color: var(--red); }
.brand .wm small { display: block; font-family: var(--ff-mono); font-size: 9px; font-weight: 400; letter-spacing: .26em; color: var(--on-navy-mute); margin-top: 3px; transition: color .35s; }
.nav.solid .brand .logo, .nav.solid .brand .logo-img { filter: none; }
.nav.solid .brand .wm { color: var(--navy); }
.nav.solid .brand .wm small { color: var(--ink-mute); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--on-navy-soft); padding: 9px 15px; border-radius: 2px; position: relative; transition: color .2s; }
.nav.solid .nav-links a { color: var(--ink-soft); }
.nav-links a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--navy); } .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; transition: color .35s; }
.nav.solid .nav-toggle { color: var(--navy); }
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu { display: none; position: fixed; inset: var(--edge); z-index: 79; background: rgba(244,246,250,.98); backdrop-filter: blur(16px); padding: 96px var(--gut) 40px; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--ff-display); font-weight: 500; font-size: 26px; color: var(--navy); padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; }
.mobile-menu a i { font-family: var(--ff-mono); font-size: 12px; font-style: normal; color: var(--red); }
.mobile-menu .btn { margin-top: 26px; }
@media (min-width: 981px) { .mobile-menu { display: none !important; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--on-navy); padding-block: clamp(130px, 17vh, 200px) clamp(70px, 8vw, 110px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .g1 { position: absolute; inset: 0; background:
  radial-gradient(80% 70% at 8% 4%, #2c4d8c 0%, rgba(44,77,140,0) 52%),
  radial-gradient(70% 90% at 102% 102%, #16294c 0%, rgba(22,41,76,0) 55%),
  linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 58%, var(--navy-950) 100%); }
.hero-bg .grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 100% at 30% 0%, #000 30%, transparent 78%); }
.hero-bg .dmd-big { position: absolute; top: 50%; right: -8%; width: min(46vw, 640px); aspect-ratio: 1; transform: translateY(-50%) rotate(45deg); border: 1px solid rgba(185,200,228,.12); }
.hero-bg .dmd-big::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(254,0,0,.16); }
.hero-bg .dmd-big::after { content: ""; position: absolute; inset: 30%; border: 1px solid rgba(185,200,228,.08); }

.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.hero-meta .tag.light { font-size: 12.5px; }
.hero-meta .mrow { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--on-navy-mute); text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.hero-meta .mrow::before { content: ""; width: 18px; height: 1px; background: var(--line-navy); }

.hero h1 { color: #fff; font-size: clamp(44px, 6.2vw, 96px); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.hero h1 .blk { display: block; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.4px rgba(255,255,255,.55); }
.hero h1 .red { color: var(--red); }
.hero-sub { margin-top: 30px; font-size: clamp(17px, 1.5vw, 21px); color: var(--on-navy-soft); max-width: 46ch; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* hero right: live diagnostic readout */
.readout { position: relative; z-index: 3; border: 1px solid var(--line-navy); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); padding: 26px 26px 28px; }
.readout::before { content: ""; position: absolute; top: -1px; left: -1px; width: 26px; height: 26px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.readout::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 26px; height: 26px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.readout-h { display: flex; align-items: center; justify-content: space-between; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-mute); padding-bottom: 16px; border-bottom: 1px solid var(--line-navy); }
.readout-h .live { display: inline-flex; align-items: center; gap: 7px; color: #ff6a6a; }
.readout-h .live i { width: 7px; height: 7px; background: var(--red); border-radius: 50%; display: inline-block; animation: blink 1.6s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.readout-row { padding: 18px 0; border-bottom: 1px solid var(--line-navy); }
.readout-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.readout-row .rr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.readout-row .rr-lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-mute); }
.readout-row .rr-num { font-family: var(--ff-display); font-weight: 700; font-size: 30px; color: #fff; line-height: 1; letter-spacing: -.02em; }
.readout-row .rr-num span { color: #ff6a6a; }
.readout-row .rr-bar { margin-top: 13px; height: 4px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.readout-row .rr-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); transition: width 1.4s var(--ease-out); }

/* ============================================================
   MARQUEE / TRUST
   ============================================================ */
.trust { background: var(--navy); color: #fff; border-block: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.trust-track { display: flex; align-items: center; gap: 0; white-space: nowrap; animation: marq 32s linear infinite; }
.trust:hover .trust-track { animation-play-state: paused; }
.trust-item { display: inline-flex; align-items: center; gap: 14px; padding: 22px 38px; font-family: var(--ff-display); font-weight: 500; font-size: 17px; color: #fff; }
.trust-item .tsub { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--on-navy-mute); text-transform: uppercase; }
.trust-item .dmd { background: var(--red); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   SERVIÇOS — editorial numbered list
   ============================================================ */
.serv { background: var(--paper); }
.serv-list { border-top: 1px solid var(--line); }
.serv-row { display: grid; grid-template-columns: 90px 1.1fr 1.4fr auto; gap: clamp(16px,3vw,48px); align-items: center; padding: clamp(28px,3.4vw,44px) 8px; border-bottom: 1px solid var(--line); position: relative; transition: padding .4s var(--ease); cursor: default; }
.serv-row::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); z-index: 0; }
.serv-row > * { position: relative; z-index: 1; transition: color .4s; }
.serv-row:hover { padding-inline: 26px 18px; }
.serv-row:hover::before { transform: scaleY(1); }
.serv-row:hover .serv-no, .serv-row:hover h3, .serv-row:hover .serv-cat, .serv-row:hover .serv-desc { color: #fff; }
.serv-row:hover .serv-cat { color: #ff6a6a; }
.serv-row:hover .serv-go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
.serv-no { font-family: var(--ff-mono); font-size: 15px; color: var(--ink-mute); }
.serv-main .serv-cat { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 9px; }
.serv-main h3 { font-size: clamp(24px, 2.6vw, 34px); }
.serv-desc { color: var(--ink-soft); font-size: 15.5px; max-width: 46ch; }
.serv-go { width: 50px; height: 50px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s; justify-self: end; }
.serv-go svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .serv-row { grid-template-columns: 54px 1fr auto; }
  .serv-desc { display: none; }
  .serv-row:hover { padding-inline: 14px; }
}

/* ============================================================
   DIFERENCIAL — data as art
   ============================================================ */
.diff { background: var(--navy-950); color: var(--on-navy); position: relative; overflow: hidden; }
.diff .hero-bg { position: absolute; inset: 0; }
.diff-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px,5vw,80px); align-items: center; }
.diff h2 { color: #fff; font-size: clamp(32px,4.4vw,56px); margin-top: 22px; text-wrap: balance; }
.diff-lead { color: var(--on-navy-soft); font-size: 17px; margin-top: 22px; max-width: 50ch; }
.diff-lead b { color: #fff; }
.diff-quote { margin-top: 34px; padding-left: 24px; border-left: 2px solid var(--red); font-family: var(--ff-display); font-weight: 500; font-size: clamp(19px,1.8vw,24px); line-height: 1.32; color: #fff; }
.diff-quote b { color: #ff6a6a; }

/* diagnostic console */
.console { border: 1px solid var(--line-navy); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); padding: clamp(24px,3vw,40px); position: relative; }
.console::before { content: ""; position: absolute; top: -1px; right: -1px; width: 30px; height: 30px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.console-h { display: flex; align-items: center; justify-content: space-between; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-mute); padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line-navy); }
.console-h b { color: #fff; font-weight: 400; }
.cblk { margin-bottom: 28px; }
.cblk:last-child { margin-bottom: 0; }
.cblk-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cblk-lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-mute); }
.cblk-val { font-family: var(--ff-display); font-weight: 700; font-size: clamp(34px,4vw,48px); line-height: .9; color: #fff; letter-spacing: -.03em; }
.cblk-val span { color: #ff6a6a; }
/* overshoot bar */
.barwrap { position: relative; height: 12px; background: rgba(255,255,255,.07); }
.barwrap .meta { position: absolute; top: -7px; bottom: -7px; left: 22%; width: 1px; background: var(--on-navy-soft); }
.barwrap .meta::after { content: "META"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-family: var(--ff-mono); font-size: 9px; letter-spacing: .1em; color: var(--on-navy-soft); }
.barwrap .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--red-600), var(--red)); transition: width 1.6s var(--ease-out); }
.barwrap .fill::after { content: ""; position: absolute; right: 0; top: -3px; bottom: -3px; width: 2px; background: #fff; }
/* timeline */
.timeline { display: flex; gap: 4px; height: 30px; align-items: flex-end; }
.timeline i { flex: 1; background: rgba(255,255,255,.16); height: 30%; transform-origin: bottom; transform: scaleY(0); transition: transform .5s var(--ease-out), background .3s; }
.timeline i.on { background: var(--red); }
/* dotfield */
.dotfield { display: grid; grid-template-columns: repeat(25, 1fr); gap: 5px; }
.dotfield i { aspect-ratio: 1; background: rgba(255,255,255,.14); transform: rotate(45deg) scale(0); transition: transform .4s var(--ease-out), background .3s; }
.dotfield i.hot { background: var(--red); }

/* ============================================================
   CASES + DEPOIMENTO
   ============================================================ */
.cases { background: var(--paper); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.cases-grid .case:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); }
.case { background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(18,33,64,.4); }
.media { position: relative; overflow: hidden; background: var(--navy-900); }
.media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.04); transition: transform .9s var(--ease), filter .6s; }
.media::after { content: ""; position: absolute; inset: 0; background: rgba(18,33,64,.42); mix-blend-mode: multiply; transition: background .6s; }
.case:hover .media img, .blogc:hover .media img, .sobre-fig:hover .media img { transform: scale(1.05); filter: saturate(1) contrast(1); }
.case:hover .media::after, .blogc:hover .media::after { background: rgba(18,33,64,.1); }
.case .media { aspect-ratio: 16/10; }
.case-chip { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(11,23,48,.7); color: #fff; padding: 8px 13px; border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.case-no { position: absolute; bottom: 14px; right: 16px; z-index: 2; font-family: var(--ff-mono); font-size: 12px; color: rgba(255,255,255,.8); }
.case-body { padding: 28px 30px 32px; }
.case-body h3 { font-size: 23px; margin-bottom: 11px; }
.case-body p { color: var(--ink-soft); font-size: 15px; }
.case-res { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); width: 100%; }
.case-res svg { width: 16px; height: 16px; }

.testi { position: relative; overflow: hidden; background: var(--navy); color: #fff; display: grid; grid-template-columns: clamp(180px,22vw,260px) 1fr; }
.testi .media { aspect-ratio: auto; }
.testi-body { position: relative; z-index: 2; padding: clamp(36px,4.5vw,64px); display: flex; flex-direction: column; justify-content: center; }
.testi-body .qm { font-family: var(--ff-display); font-size: 90px; line-height: .5; color: var(--red); height: 44px; }
.testi-body blockquote { font-family: var(--ff-display); font-weight: 500; font-size: clamp(21px,2.4vw,32px); line-height: 1.3; color: #fff; margin: 20px 0 26px; text-wrap: pretty; letter-spacing: -.015em; }
.testi-auth { display: flex; align-items: center; gap: 14px; }
.testi-auth .dmd { background: var(--red); }
.testi-auth b { font-family: var(--ff-display); font-weight: 600; }
.testi-auth span { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em; color: var(--on-navy-mute); text-transform: uppercase; }
@media (max-width: 720px) { .testi { grid-template-columns: 1fr; } .testi .media { aspect-ratio: 16/10; } }

/* ============================================================
   SOBRE
   ============================================================ */
.sobre { background: var(--paper-2); }
.sobre-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px,5vw,90px); align-items: center; }
.sobre-fig { position: relative; }
.sobre-fig .media { aspect-ratio: 4/5; clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%); }
.sobre-fig .fig-frame { position: absolute; inset: auto -18px -18px auto; width: 64%; height: 56%; border: 1px solid var(--red); z-index: -1; }
.sobre-fig .fig-id { position: absolute; left: -1px; bottom: -1px; z-index: 3; background: var(--navy); color: #fff; padding: 14px 20px; font-family: var(--ff-mono); }
.sobre-fig .fig-id b { font-family: var(--ff-display); font-size: 16px; display: block; letter-spacing: -.01em; }
.sobre-fig .fig-id span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #ff6a6a; }
.sobre h2 { font-size: clamp(30px,3.8vw,48px); margin-top: 18px; }
.sobre .role { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-top: 16px; }
.sobre .pull { font-family: var(--ff-display); font-weight: 600; font-size: clamp(22px,2.4vw,32px); color: var(--navy); line-height: 1.18; margin: 26px 0 20px; letter-spacing: -.02em; }
.sobre p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; max-width: 56ch; }
.sobre-cross { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-family: var(--ff-display); font-weight: 600; font-size: 15px; color: var(--navy); padding: 15px 22px; border: 1px solid var(--line); transition: border-color .3s, transform .3s, background .3s; }
.sobre-cross:hover { border-color: var(--navy); transform: translateY(-2px); }
.sobre-cross svg { width: 17px; height: 17px; color: var(--red); }

/* ============================================================
   BLOG
   ============================================================ */
.blog { background: var(--paper); }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.blogc { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper-2); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.blogc:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(18,33,64,.4); }
.blogc .media { aspect-ratio: 16/11; }
.blogc .b-no { position: absolute; top: 12px; left: 14px; z-index: 2; font-family: var(--ff-mono); font-size: 11px; color: rgba(255,255,255,.85); }
.blogc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blogc .b-cat { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.blogc h3 { font-size: 17.5px; line-height: 1.24; color: var(--navy); flex: 1; text-wrap: pretty; }
.blogc .b-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); transition: gap .3s, color .3s; }
.blogc:hover .b-go { color: var(--red); gap: 12px; }
.blogc .b-go svg { width: 14px; height: 14px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   CONTATO
   ============================================================ */
.contato { background: var(--navy-950); color: var(--on-navy); position: relative; overflow: hidden; }
.contato .hero-bg { position: absolute; inset: 0; }
.contato-grid { position: relative; z-index: 3; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px,5vw,72px); }
.contato h2 { color: #fff; font-size: clamp(32px,4vw,52px); margin-top: 20px; text-wrap: balance; }
.contato-lead { color: var(--on-navy-soft); font-size: 17px; margin: 22px 0 34px; max-width: 40ch; }
.opt { display: flex; flex-direction: column; gap: 12px; }
.optc { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line-navy); background: rgba(255,255,255,.03); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.optc:hover { transform: translateX(6px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.optc .oi { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: #fff; }
.optc .oi.cal { background: rgba(255,255,255,.08); border: 1px solid var(--line-navy); }
.optc .oi.wa { background: #25D366; }
.optc .oi.mail { background: var(--red); }
.optc .oi svg { width: 21px; height: 21px; }
.optc .ot b { font-family: var(--ff-display); display: block; color: #fff; font-size: 16px; }
.optc .ot span { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--on-navy-mute); text-transform: uppercase; }
.optc .oa { margin-left: auto; color: var(--on-navy-mute); transition: transform .3s, color .3s; }
.optc:hover .oa { transform: translateX(4px); color: #ff6a6a; }
.optc .oa svg { width: 20px; height: 20px; }

.form-card { background: var(--paper-2); padding: clamp(28px,3.4vw,44px); position: relative; }
.form-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1/-1; }
.field label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { border: 0; border-bottom: 1.5px solid var(--line); padding: 12px 2px; color: var(--ink); background: transparent; transition: border-color .25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2346577a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 28px; }
.form-submit { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ink-mute); letter-spacing: .02em; }
.form-note a { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-950); color: var(--on-navy-soft); position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.footer-big { position: relative; z-index: 2; padding-block: clamp(50px,6vw,80px) clamp(40px,5vw,60px); border-bottom: 1px solid var(--line-navy); }
.footer-big .fb-word { font-family: var(--ff-display); font-weight: 700; font-size: clamp(56px,13vw,180px); line-height: .82; letter-spacing: -.05em; color: #fff; display: flex; align-items: baseline; gap: .1em; }
.footer-big .fb-word b { color: var(--red); }
.footer-big .fb-tag { font-family: var(--ff-mono); font-size: clamp(11px,1.1vw,13px); letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-mute); margin-top: 22px; }
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(24px,4vw,56px); padding-block: clamp(44px,5vw,64px); }
.footer-brand p { font-size: 14.5px; color: var(--on-navy-mute); max-width: 34ch; }
.footer-brand .cnpj { margin-top: 18px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .04em; color: var(--on-navy-mute); }
.footer-col h4 { color: #fff; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a, .footer-col li { font-size: 15px; color: var(--on-navy-soft); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: #ff6a6a; flex: none; margin-top: 3px; }
.footer-cross { display: inline-flex; align-items: center; gap: 11px; margin-top: 6px; padding: 13px 18px; border: 1px solid var(--line-navy); color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: 14px; transition: border-color .3s, background .3s; }
.footer-cross:hover { border-color: #ff6a6a; background: rgba(255,255,255,.05); }
.footer-cross svg { width: 16px; height: 16px; color: #ff6a6a; }
.footer-bot { position: relative; z-index: 2; border-top: 1px solid var(--line-navy); padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bot p { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .04em; color: var(--on-navy-mute); }
.footer-bot .fl { display: flex; gap: 24px; }
.footer-bot .fl a { font-family: var(--ff-mono); font-size: 12px; color: var(--on-navy-soft); letter-spacing: .04em; }
.footer-bot .fl a b { color: #ff6a6a; }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab { position: fixed; right: calc(var(--edge) + 14px); bottom: calc(var(--edge) + 40px); z-index: 85; width: 58px; height: 58px; background: #25D366; display: grid; place-items: center; color: #fff; box-shadow: 0 14px 32px rgba(37,211,102,.42); transition: transform .35s var(--ease); transform: rotate(45deg); }
.wa-fab svg { width: 28px; height: 28px; transform: rotate(-45deg); }
.wa-fab:hover { transform: rotate(45deg) scale(1.08); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border: 1.5px solid #25D366; animation: waring 2.4s ease-out infinite; }
@keyframes waring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%,160%); z-index: 95; background: var(--navy); color: #fff; padding: 15px 24px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font-family: var(--ff-display); font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 12px; transition: transform .5s var(--ease-out); }
.toast.show { transform: translate(-50%,0); }
.toast .dmd { background: #25D366; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .readout { max-width: 460px; }
  .diff-grid, .contato-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-fig { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .cases-grid, .form-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .dotfield { grid-template-columns: repeat(20, 1fr); }
}
