/* ============================================================
   LABUCAL — "Precisão" design system
   Warm bone paper · deep clinical navy · sky-blue accent
   Newsreader (display serif) · Plus Jakarta Sans (UI) · Space Mono (labels)
   ============================================================ */

:root {
  /* ---- palette (default: "Clínica" — navy + bone + amber) ---- */
  --ink: #0B1B3A;            /* deep navy — brand + headings */
  --ink-2: #16294b;          /* lifted navy for gradients */
  --ink-3: #20355c;
  --paper: #F4EFE6;          /* warm bone — page bg */
  --paper-2: #ECE5D7;        /* deeper bone — alt sections */
  --surface: #FFFFFF;
  --surface-warm: #FBF8F1;
  --line: rgba(11, 27, 58, 0.13);
  --line-soft: rgba(11, 27, 58, 0.07);
  --text: #15233f;           /* body text */
  --muted: #5b6580;          /* secondary text */
  --muted-2: #8289aa;
  --accent: #3E92C0;         /* azul céu (accent principal) */
  --accent-deep: #2C7299;    /* azul mais escuro (hover) */
  --accent-soft: #7FBBDD;    /* azul claro (sobre fundo escuro) */
  --accent-tint: #DDEEF6;    /* azul muito claro (tints/fundos) */
  --on-ink: #EDE7DA;         /* text on navy */
  --on-ink-mut: #9aa6c2;     /* muted text on navy */

  /* ---- type ---- */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", ui-monospace, monospace;

  /* ---- spacing / radius ---- */
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --shadow-sm: 0 1px 2px rgba(11,27,58,.05), 0 2px 8px rgba(11,27,58,.05);
  --shadow: 0 4px 12px rgba(11,27,58,.06), 0 18px 40px -20px rgba(11,27,58,.22);
  --shadow-lg: 0 30px 70px -30px rgba(11,27,58,.45);
}

/* alt palette: "Tecido" — cooler, more medtech (toggled via Tweaks) */
:root[data-palette="frio"] {
  --paper: #F1F3F5;
  --paper-2: #E7EBEF;
  --surface-warm: #FAFBFC;
  --accent: #1E7C8C;
  --accent-deep: #155f6c;
  --accent-soft: #9ed0d6;
  --accent-tint: #DCEDEF;
  --line: rgba(11, 27, 58, 0.12);
}
/* alt palette: "Ardósia" — darker, premium */
:root[data-palette="grafite"] {
  --paper: #E9E6E0;
  --paper-2: #DEDAD2;
  --ink: #1A1A1E;
  --ink-2: #26262c;
  --ink-3: #33333a;
  --text: #232228;
  --muted: #5e5c66;
  --accent: #A8853C;
  --accent-deep: #846828;
  --accent-soft: #d8c189;
  --accent-tint: #ECE3CC;
  --on-ink: #ECE7DC;
}

/* type variants */
:root[data-type="grotesk"] {
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* oculta a barra nativa da janela (sem reservar espaço → sem deslocar o conteúdo).
     A barra custom (overlay) é desenhada por JS; a barra do chat mantém a sua. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* foco visível global (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 3px; }
/* skip-link (WCAG 2.4.1) */
.skip-link {
  position: fixed; left: 12px; top: -56px; z-index: 200;
  background: var(--ink); color: var(--on-ink);
  padding: 11px 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow); transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- barra de rolagem custom (overlay, controlada por JS) ---------- */
.app-scrollbar {
  position: fixed; top: 2px; right: 2px; bottom: 2px;
  width: 10px; z-index: 95;
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
}
.app-scrollbar.is-active { opacity: 1; }
.app-scrollbar__thumb {
  position: absolute; top: 0; right: 0;
  width: 6px; min-height: 36px; border-radius: 999px;
  background: rgba(62,146,192,.6);   /* --accent translúcido: visível sobre claro e escuro */
  pointer-events: auto; cursor: grab;
  will-change: transform, height;
  transition: width .15s ease, background .2s ease;
}
.app-scrollbar:hover .app-scrollbar__thumb,
.app-scrollbar.is-dragging .app-scrollbar__thumb { width: 10px; background: rgba(62,146,192,.9); }
.app-scrollbar.is-dragging .app-scrollbar__thumb { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .app-scrollbar { transition: opacity .01ms; } }
@media (hover: none) and (pointer: coarse) { .app-scrollbar__thumb { pointer-events: none; cursor: default; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); }

.overline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.overline::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.on-ink .overline { color: var(--accent-soft); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
h2.title {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.on-ink h2.title, .on-ink h1, .on-ink h3 { color: var(--on-ink); }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 56ch; margin: 0; line-height: 1.55; }
.on-ink .lead { color: var(--on-ink-mut); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 15.5px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: 0 8px 20px -8px var(--ink); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(11,27,58,.03); }
.on-ink .btn-ghost { color: var(--on-ink); border-color: rgba(237,231,218,.28); }
.on-ink .btn-ghost:hover { border-color: var(--on-ink); background: rgba(237,231,218,.07); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 74px;
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand .word { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px;
  padding: 9px 14px; border-radius: 999px; transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(11,27,58,.05); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { text-decoration: none; font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); font-weight: 700; }
.nav-phone:hover { color: var(--accent-deep); }
.hamburger { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn, .nav-phone { display: none; }
  .hamburger {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .hamburger span { width: 18px; height: 2px; background: var(--ink); display: block; position: relative; transition: .25s; }
  .hamburger span::before, .hamburger span::after { content:""; position:absolute; left:0; width:18px; height:2px; background:var(--ink); transition:.25s; }
  .hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink); color: var(--on-ink);
  display: flex; flex-direction: column; padding: 28px var(--gut);
  transform: translateY(-100%); transition: transform .4s cubic-bezier(.22,1,.36,1);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu .mm-top { display:flex; align-items:center; justify-content:space-between; }
.mobile-menu .mm-close { background:none; border:1px solid rgba(237,231,218,.25); color:var(--on-ink); width:44px;height:44px;border-radius:10px; font-size:22px; cursor:pointer; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.mobile-menu nav a { text-decoration:none; color:var(--on-ink); font-family:var(--font-display); font-size:30px; padding:12px 0; border-bottom:1px solid rgba(237,231,218,.1); }
.mobile-menu .mm-foot { margin-top:auto; display:flex; flex-direction:column; gap:8px; font-family:var(--font-mono); font-size:14px; color:var(--on-ink-mut); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* subtle radial warm glow */
  content:""; position:absolute; z-index:-1; inset:0;
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(62,146,192,.20), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(40,70,130,.5), transparent 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11,27,58,.96) 0%, rgba(11,27,58,.82) 48%, rgba(11,27,58,.70) 100%),
    url("/assets/labucal-images/hero-lab-bg.jpg") center / cover no-repeat;
  filter: blur(6px) saturate(.82) brightness(.75);
  transform: scale(1.04);
  opacity: .46;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero-copy h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.0; letter-spacing: -0.025em; font-weight: 500;
  margin: 18px 0 24px; text-wrap: balance;
}
.hero-copy h1 em { font-style: italic; color: var(--accent-soft); }
.hero-copy .lead { color: var(--on-ink-mut); font-size: clamp(17px,1.7vw,20px); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display:flex; gap: 26px; margin-top: 42px; padding-top: 28px; border-top:1px solid rgba(237,231,218,.14); flex-wrap: wrap; }
.hero-trust .t { display:flex; flex-direction:column; gap:2px; }
.hero-trust .t b { font-family: var(--font-display); font-size: 26px; color: var(--on-ink); font-weight: 600; }
.hero-trust .t span { font-size: 13px; color: var(--on-ink-mut); }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 4/4.5; }
.hero-figure {
  position: absolute; inset: 0; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(237,231,218,.12);
}
.hero-bg {
  background:
    radial-gradient(520px 360px at 52% 47%, rgba(32,53,92,.24), transparent 62%),
    linear-gradient(145deg, rgba(17,38,78,.96), rgba(8,23,53,.98));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(11,27,58,.18)),
    radial-gradient(460px 320px at 54% 48%, transparent, rgba(5,16,39,.36) 76%);
  pointer-events: none;
}
.constellation { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .9; }
.hero-teeth {
  position: absolute;
  inset: 17% 15% 15%;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 28px 34px rgba(4, 12, 30, .34));
  --teeth-upper-y: -150px;
  --teeth-lower-y: 170px;
  --teeth-scale: .86;
  isolation: isolate;
}
.hero-teeth-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  will-change: transform;
  transition: transform 80ms linear;
}
.hero-teeth-upper {
  transform: translate3d(0, var(--teeth-upper-y), 0) scale(var(--teeth-scale));
  transform-origin: 50% 72%;
  z-index: 2;
}
.hero-teeth-lower {
  transform: translate3d(0, var(--teeth-lower-y), 0) scale(var(--teeth-scale));
  transform-origin: 50% 28%;
  z-index: 1;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 34px; z-index: 4;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 13px; max-width: 240px;
}
.hero-badge .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-deep); display:grid; place-items:center; flex:none; }
.hero-badge b { font-size: 14px; display:block; font-weight: 700; }
.hero-badge span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  /* mobile: removemos o visual dos dentes do hero (fica só o texto sobre o fundo) */
  .hero-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-teeth {
    --teeth-upper-y: -40px;
    --teeth-lower-y: 55px;
    --teeth-scale: .98;
  }
}

/* =====================================================
   IMAGE PLACEHOLDERS (until real photos arrive)
   ===================================================== */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(11,27,58,.035) 0 2px, transparent 2px 11px),
    linear-gradient(135deg, var(--paper-2), var(--surface-warm));
  display: grid; place-items: center; color: var(--muted); overflow: hidden;
}
.ph.dark {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 11px),
    linear-gradient(135deg, var(--ink-2), var(--ink));
  color: var(--on-ink-mut);
}
/* Imágenes reales dentro de los contenedores .ph */
.ph > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
/* Logo de marca (header, menu mobile, footer) */
.brand-logo { width:38px; height:38px; border-radius:9px; object-fit:contain; flex:none; }

/* =====================================================
   PEÇAS DECORATIVAS ANIMADAS POR SCROLL (port da v1)
   ===================================================== */
.has-decor { position: relative; overflow: hidden; }
.has-decor > .wrap { position: relative; z-index: 1; }
.section-prosthesis {
  --from-x: 0px; --from-rot: 0deg; --to-x: 0px; --to-rot: 0deg;
  --scroll-x: 0px; --scroll-y: 0px; --scroll-rot: 0deg; --scroll-scale: 0.94;
  --decor-opacity: 0.42;
  position: absolute; top: 8%;
  width: clamp(260px, 36vw, 560px);
  pointer-events: none; z-index: 0; opacity: 0;
  transform: translate3d(calc(var(--from-x) + var(--scroll-x)), var(--scroll-y), 0) rotate(calc(var(--from-rot) + var(--scroll-rot))) scale(var(--scroll-scale));
  transition: opacity 900ms ease, transform 120ms linear;
  filter: drop-shadow(0 18px 32px rgba(11,27,58,.55)) drop-shadow(0 3px 8px rgba(11,27,58,.45));
}
.section-prosthesis.in {
  opacity: var(--decor-opacity);
  transform: translate3d(calc(var(--to-x) + var(--scroll-x)), var(--scroll-y), 0) rotate(calc(var(--to-rot) + var(--scroll-rot))) scale(var(--scroll-scale));
}
.on-ink .section-prosthesis { --decor-opacity: 0.30; filter: drop-shadow(0 22px 44px rgba(0,0,0,.5)); }
.section-prosthesis.decor-right { right: max(-120px, -7vw); top: 8%; --from-x: 120px; --from-rot: 12deg; --to-rot: -5deg; }
.section-prosthesis.decor-left  { left: max(-140px, -8vw); bottom: 8%; top: auto; --from-x: -120px; --from-rot: -13deg; --to-rot: 5deg; }
.section-prosthesis.decor-high  { top: 10%; bottom: auto; }
.section-prosthesis.decor-low   { top: auto; bottom: 4%; }
.section-prosthesis.decor-slim  { width: clamp(180px, 26vw, 410px); }
.section-prosthesis.decor-small { width: clamp(160px, 21vw, 320px); --decor-opacity: 0.32; }
.on-ink .section-prosthesis.decor-small { --decor-opacity: 0.24; }
.section-prosthesis.decor-left.decor-small  { left: max(-90px, -5vw); }
.section-prosthesis.decor-right.decor-small { right: max(-90px, -5vw); }
@media (max-width: 860px) { .section-prosthesis { display: none; } }
@media (prefers-reduced-motion: reduce) { .section-prosthesis { transition: opacity .01ms; } }

/* =====================================================
   SOBRE / PILLARS
   ===================================================== */
.sobre { background: var(--paper); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); letter-spacing: .1em; }
.pillar .pic { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-deep); display:grid; place-items:center; margin: 16px 0 18px; }
.pillar h3 { font-size: 23px; margin: 0 0 10px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }
.section-head { margin-bottom: 52px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .overline { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

@media (max-width: 820px){ .pillars { grid-template-columns: 1fr; } }

/* =====================================================
   SERVIÇOS
   ===================================================== */
.servicos { background: var(--paper-2); }
.serv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.serv-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 200px 1fr;
  transition: transform .25s, box-shadow .25s;
}
.serv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.serv-card .serv-img { position: relative; min-height: 200px; }
.serv-card .serv-body { padding: 26px 28px; display:flex; flex-direction:column; }
.serv-card h3 { font-size: 22px; margin: 0 0 10px; font-weight: 600; }
.serv-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; flex: 1; }
.serv-link {
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; color: var(--accent-deep);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
}
.serv-link:hover .btn-arrow { transform: translateX(3px); }
.serv-extra { display: none; }
.serv-extra.show { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 22px; animation: fadeUp .4s ease; }
.serv-toggle-wrap { display:flex; justify-content:center; margin-top: 36px; }
@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform:none;} }

@media (max-width: 980px){ .serv-grid, .serv-extra.show { grid-template-columns: 1fr; } }
@media (max-width: 520px){ .serv-card { grid-template-columns: 1fr; } .serv-card .serv-img{ min-height: 160px;} }

/* =====================================================
   PROCESSO
   ===================================================== */
.processo { background: var(--ink); color: var(--on-ink); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 30px; }
.step::before { /* connector dot line */
  content:""; position:absolute; top: 7px; left:0; right:0; height:1px; background: rgba(237,231,218,.16);
}
.step .dot { position:absolute; top:0; left:0; width:15px; height:15px; border-radius:50%; background: var(--accent); box-shadow:0 0 0 4px rgba(62,146,192,.18); }
.step .snum { font-family: var(--font-mono); font-size: 12px; color: var(--accent-soft); letter-spacing:.1em; }
.step h3 { font-size: 20px; margin: 10px 0 9px; color: var(--on-ink); font-weight: 600; }
.step p { margin: 0; font-size: 14.5px; color: var(--on-ink-mut); }
@media (max-width: 900px){ .steps { grid-template-columns: 1fr 1fr; gap: 30px 22px; } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }

/* =====================================================
   GALERIA
   ===================================================== */
.galeria { background: var(--paper); }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-item {
  position: relative; aspect-ratio: 4/3.2; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
}
.gal-item .reg { position:absolute; top:12px; left:12px; z-index:3; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em; background:var(--ink); color:var(--on-ink); padding:4px 9px; border-radius:99px; }
.gal-item .cap {
  position:absolute; left:0; right:0; bottom:0; z-index:3; padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(11,27,58,.82)); color:#fff;
  font-size: 13.5px; font-weight: 500; transform: translateY(8px); opacity:0; transition:.3s;
}
.gal-item:hover .cap { transform:none; opacity:1; }
.gal-item .ph { transition: transform .5s; }
.gal-item:hover .ph { transform: scale(1.05); }
@media (max-width: 820px){ .gal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .gal-grid { grid-template-columns: 1fr; } }

/* =====================================================
   REDE / CONSTELAÇÃO + DEPOIMENTOS
   ===================================================== */
.rede { background: var(--ink-2); color: var(--on-ink); position: relative; overflow: hidden; }
.rede::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 400px at 85% 10%, rgba(62,146,192,.14), transparent 60%); }
.rede .wrap { position: relative; }
.rede-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.net { position: relative; aspect-ratio: 1/0.86; }
.net svg { width: 100%; height: 100%; overflow: visible; }
.net .node { cursor: pointer; }
.net .node circle { transition: r .2s, fill .2s; }
.net .node:hover circle.core { r: 9; fill: var(--accent-soft); }
.net-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); color: var(--ink); padding: 9px 13px; border-radius: 10px;
  font-size: 13px; box-shadow: var(--shadow); transform: translate(-50%, -130%);
  opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.net-tip b { display:block; font-size: 13.5px; }
.net-tip span { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.depo-list { display: flex; flex-direction: column; gap: 18px; }
.depo {
  background: rgba(255,255,255,.05); border: 1px solid rgba(237,231,218,.12); border-radius: var(--r-lg);
  padding: 24px 26px; backdrop-filter: blur(4px);
}
.depo p { margin: 0 0 16px; font-family: var(--font-display); font-size: 18px; line-height: 1.45; color: var(--on-ink); font-style: italic; }
.depo .who { display: flex; align-items: center; gap: 12px; }
.depo .av { width: 38px; height:38px; border-radius:50%; background: var(--accent); color:#fff; display:grid; place-items:center; font-weight:700; font-size:15px; flex:none; font-family: var(--font-sans); }
.depo .who b { font-size: 14.5px; color: var(--on-ink); display:block; }
.depo .who span { font-size: 12.5px; color: var(--on-ink-mut); }
.depo-note { font-size: 12px; color: var(--on-ink-mut); margin-top: 8px; opacity:.8; }
@media (max-width: 860px){ .rede-grid { grid-template-columns: 1fr; } .net { max-width: 460px; margin-inline:auto; } }

/* =====================================================
   CONTATO
   ===================================================== */
.contato { background: var(--paper); }
.contato-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px,5vw,60px); }
.contact-list { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 0; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text); transition: color .15s; }
.contact-row:hover { color: var(--accent-deep); }
.contact-row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-deep); display:grid; place-items:center; flex:none; }
.contact-row .ct b { display:block; font-size: 15px; font-weight: 600; color: var(--ink); }
.contact-row .ct span { font-size: 14px; color: var(--muted); }

/* form */
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: clamp(24px,3vw,38px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--muted-2); font-family: var(--font-mono); font-size: 11px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15.5px; color: var(--text);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-warm);
  transition: border-color .18s, box-shadow .18s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(62,146,192,.5); background: #fff; }
.field textarea { min-height: 110px; }
.form-card .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; text-align:center; }
.form-card.sent .form-fields { display:none; }
.form-sent { display:none; text-align:center; padding: 30px 0; }
.form-card.sent .form-sent { display:block; animation: fadeUp .4s; }
.form-sent .check { width: 60px; height:60px; border-radius:50%; background: var(--accent-tint); color: var(--accent-deep); display:grid; place-items:center; margin: 0 auto 16px; }
.form-sent h3 { font-size: 24px; margin: 0 0 8px; }
.form-sent p { color: var(--muted); margin: 0; font-size: 15px; }

/* map */
.map-wrap { margin-top: 30px; position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(.2); }
.map-overlay { position:absolute; inset:0; cursor: pointer; display:grid; place-items:center; background: rgba(11,27,58,.04); transition: opacity .2s; }
.map-overlay.hidden { opacity: 0; pointer-events: none; }
.map-overlay .hint { background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.map-link { display:inline-flex; align-items:center; gap:8px; margin-top: 16px; font-weight:600; font-size:14.5px; color: var(--accent-deep); text-decoration: none; }
.map-link:hover .btn-arrow { transform: translateX(3px); }
@media (max-width: 860px){ .contato-grid { grid-template-columns: 1fr; } }

/* =====================================================
   FAQ
   ===================================================== */
.faq { background: var(--paper-2); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; display: flex; gap: 20px; align-items: center; padding: 24px 4px; font-family: var(--font-display); font-size: clamp(18px,2.2vw,22px); color: var(--ink); font-weight: 500; }
.faq-q .plus { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; border:1px solid var(--line); display:grid; place-items:center; position: relative; transition: background .2s, border-color .2s; }
.faq-q .plus::before, .faq-q .plus::after { content:""; position:absolute; background: var(--ink); transition: transform .25s, background .2s; }
.faq-q .plus::before { width:12px; height:2px; } .faq-q .plus::after { width:2px; height:12px; }
.faq-item.open .faq-q .plus { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background:#fff; }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 50px 26px 4px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(64px,8vw,104px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(520px 320px at 14% 24%, rgba(62,146,192,.18), transparent 65%),
    radial-gradient(560px 360px at 86% 8%, rgba(62,146,192,.16), transparent 62%);
}
.footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(237,231,218,.12);
}
.footer .wrap { position: relative; z-index: 2; }
.footer-teeth {
  position: absolute;
  z-index: 1;
  width: clamp(220px, 30vw, 440px);
  max-width: none;
  opacity: .13;
  pointer-events: none;
  filter: blur(.2px) drop-shadow(0 24px 42px rgba(0,0,0,.45));
  transform: translateY(70px) rotate(var(--rot, 0deg)) scale(.94);
  transition: transform 900ms cubic-bezier(.22,1,.36,1), opacity 900ms ease;
}
.footer-teeth-left { left: max(-150px, -9vw); bottom: -88px; --rot: 10deg; }
.footer-teeth-right { right: max(-170px, -10vw); top: 20px; --rot: -8deg; }
.footer.in .footer-teeth {
  opacity: .24;
  transform: translateY(0) rotate(var(--rot, 0deg)) scale(1);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-bottom: 52px; }
.footer .brand .word { color: var(--on-ink); }
.footer-tag { color: var(--on-ink-mut); font-size: 15px; max-width: 30ch; margin: 18px 0 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(237,231,218,.16); display:grid; place-items:center; color: var(--on-ink); transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer col, .footer-col h4 { }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin: 0 0 18px; font-weight: 700; }
.footer-col a, .footer-col .fline { display: block; text-decoration: none; color: var(--on-ink-mut); font-size: 14.5px; padding: 7px 0; transition: color .15s; }
.footer-col a:hover { color: var(--on-ink); }
.footer-bottom { border-top: 1px solid rgba(237,231,218,.12); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 13px; color: var(--on-ink-mut); }
.footer-bottom a { color: var(--on-ink-mut); }
.footer-bottom a:hover { color: var(--on-ink); }
.footer-bottom .cnpj { font-family: var(--font-mono); margin-left: auto; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: 1/-1; } .footer-teeth { opacity: .11; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } .footer-bottom .cnpj{ margin-left:0; } .footer-teeth-right { display: none; } }
@media (prefers-reduced-motion: reduce) { .footer-teeth { transition: none; transform: rotate(var(--rot, 0deg)) scale(1); } }

/* =====================================================
   FLOATING: CHAT
   ===================================================== */
.fab-chat {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.fab-chat:hover { transform: scale(1.06); background: var(--accent-deep); }
.fab-chat .ic-close { display: none; }
.fab-chat.open .ic-open { display: none; }
.fab-chat.open .ic-close { display: block; }
.fab-chat .pulse { position:absolute; inset:0; border-radius:50%; box-shadow:0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(62,146,192,.5);} 70%{box-shadow:0 0 0 16px rgba(62,146,192,0);} 100%{box-shadow:0 0 0 0 rgba(62,146,192,0);} }

.chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 80;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none;
  transform-origin: bottom right; transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .25s;
  border: 1px solid var(--line);
}
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { background: var(--ink); color: var(--on-ink); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-close { margin-left: auto; flex: none; background: none; border: none; color: var(--on-ink); font-size: 24px; line-height: 1; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; opacity: .7; transition: opacity .15s, background .15s; }
.chat-close:hover { opacity: 1; background: rgba(237,231,218,.12); }
.chat-head .av { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); display:grid; place-items:center; color:#fff; font-family: var(--font-display); font-weight: 600; flex:none; }
.chat-head b { display: block; font-size: 15px; color: var(--on-ink); font-family: var(--font-sans); font-weight:700; }
.chat-head .status { font-size: 12px; color: var(--on-ink-mut); display:flex; align-items:center; gap:6px; }
.chat-head .status .led { width:7px;height:7px;border-radius:50%; background:#4ade80; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-warm); scrollbar-width: thin; scrollbar-color: rgba(62,146,192,.4) transparent; }
.chat-body::-webkit-scrollbar { width: 8px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(62,146,192,.4); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.chat-body::-webkit-scrollbar-thumb:hover { background: rgba(62,146,192,.65); }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg.bot { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.msg.user { background: var(--ink); color: var(--on-ink); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg .wa-btn { display:inline-flex; align-items:center; gap:8px; margin-top:10px; background:#25D366; color:#fff; text-decoration:none; padding:9px 14px; border-radius:999px; font-weight:600; font-size:13.5px; }
.typing { display:flex; gap:4px; padding: 13px 16px; }
.typing span { width:7px;height:7px;border-radius:50%; background: var(--muted-2); animation: blink 1.2s infinite; }
.typing span:nth-child(2){animation-delay:.2s;} .typing span:nth-child(3){animation-delay:.4s;}
@keyframes blink { 0%,60%,100%{opacity:.3;} 30%{opacity:1;} }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; background: var(--surface-warm); }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; font-family: var(--font-sans); }
.chip:hover { background: var(--accent-tint); border-color: var(--accent-soft); }
.chip.wa { background:#25D366; color:#fff; border-color:#25D366; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.chat-input input { flex:1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: var(--font-sans); font-size: 14.5px; }
.chat-input input:focus { outline:none; border-color: var(--accent); }
.chat-input button { width: 44px; height: 44px; flex:none; border-radius: 50%; border:none; background: var(--accent); color:#fff; cursor:pointer; display:grid; place-items:center; transition: background .15s; }
.chat-input button:hover { background: var(--accent-deep); }
.chat-input button:disabled { opacity:.5; cursor:default; }

/* =====================================================
   FLOATING: REVIEWS POPUP
   ===================================================== */
/* =====================================================
   FLOATING: REVIEWS POPUP (refined)
   ===================================================== */
.reviews-pop {
  position: fixed; left: 22px; bottom: 22px; z-index: 75;
  width: min(312px, calc(100vw - 44px));
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(11,27,58,.06), 0 24px 50px -18px rgba(11,27,58,.32);
  border: 1px solid var(--line-soft); overflow: hidden;
  transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.reviews-pop.show { transform: none; opacity: 1; pointer-events: auto; }
.reviews-pop .rp-close { position:absolute; top:9px; right:9px; background:none; border:none; cursor:pointer; color:var(--muted-2); width:24px;height:24px; border-radius:6px; line-height:1; font-size:16px; z-index:2; transition: background .15s, color .15s; }
.reviews-pop .rp-close:hover { background: var(--paper-2); color: var(--ink); }

.reviews-pop .rp-top { display:flex; align-items:center; gap:11px; padding: 16px 18px 13px; border-bottom: 1px solid var(--line-soft); }
.reviews-pop .g { width: 22px; height:22px; flex:none; }
.reviews-pop .rp-meta { display:flex; flex-direction:column; gap:1px; }
.reviews-pop .rp-score { display:flex; align-items:center; gap:8px; }
.reviews-pop .rp-score b { font-size: 17px; font-weight: 700; color: var(--ink); font-family: var(--font-sans); letter-spacing:-.01em; }
.stars { display:inline-flex; gap:1px; color: #F5A623; }
.reviews-pop .rp-count { font-size: 11.5px; color: var(--muted); }

.reviews-pop .rp-review { margin: 0; padding: 15px 18px 16px; }
.reviews-pop .rp-quote { margin: 0; font-family: var(--font-display); font-size: 15px; line-height: 1.5; color: var(--text); font-style: italic; }
.reviews-pop .rp-quote::before { content:"“"; color: var(--accent); font-size: 20px; line-height:0; }
.reviews-pop .rp-by { display:flex; align-items:center; gap:9px; margin-top: 13px; }
.reviews-pop .rp-av { width: 28px; height:28px; border-radius:50%; background: var(--accent); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:700; flex:none; }
.reviews-pop .rp-who { display:flex; flex-direction:column; line-height:1.25; }
.reviews-pop .rp-author { font-size: 12.5px; font-weight:600; color: var(--ink); }
.reviews-pop .rp-time { font-size: 11px; color: var(--muted-2); }

.reviews-pop .rp-cta { display:flex; align-items:center; justify-content:space-between; gap:8px; padding: 12px 18px; background: var(--surface-warm); border-top: 1px solid var(--line-soft); text-decoration:none; font-size: 13px; font-weight:600; color: var(--accent-deep); transition: background .15s; }
.reviews-pop .rp-cta:hover { background: var(--accent-tint); }
.reviews-pop .rp-cta .arrow { transition: transform .2s; }
.reviews-pop .rp-cta:hover .arrow { transform: translateX(3px); }

/* =====================================================
   FLOATING: COOKIE NOTICE
   ===================================================== */
.cookie {
  position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg);
  padding: 20px 24px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 20px;
  transform: translateY(140%); transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.cookie.show { transform: none; }
.cookie p { margin: 0; font-size: 13.5px; color: var(--on-ink-mut); line-height: 1.5; }
.cookie p b { color: var(--on-ink); display:block; margin-bottom:3px; font-family: var(--font-display); font-size: 15px; }
.cookie p a { color: var(--accent-soft); }
.cookie .btn { flex: none; padding: 11px 22px; }
@media (max-width: 520px){ .cookie { flex-direction: column; align-items: stretch; text-align:left; } .cookie .btn{ justify-content:center; } .reviews-pop { display:none; } }
/* Em telas estreitas o aviso sobe acima do botão de chat (FAB) para não cobri-lo */
@media (max-width: 640px){ .cookie { bottom: 96px; } }

/* utility */
.visually-hidden { position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.fade-in.in { opacity: 1; transform: none; }

/* =====================================================
   ASSEMBLY SCENE — "Anatomia da peça" (pinned scroll)
   ===================================================== */
.assembly { background: var(--ink); color: var(--on-ink); position: relative; }
.assembly-track { height: 230vh; position: relative; }
.assembly-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.assembly-stage::before { content:""; position:absolute; inset:0; background: radial-gradient(720px 480px at 72% 40%, rgba(62,146,192,.16), transparent 62%); }
.assembly-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,72px); align-items: center; width: 100%; position: relative; z-index: 2; }
.assembly-copy h2.title { color: var(--on-ink); }
.assembly-copy .lead { color: var(--on-ink-mut); }
.assembly-legend { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.assembly-legend li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); opacity: .4; transition: opacity .35s, background .35s; }
.assembly-legend li.active { opacity: 1; background: rgba(255,255,255,.05); }
.assembly-legend .dot { width: 13px; height: 13px; border-radius: 50%; margin-top: 5px; flex: none; background: rgba(237,231,218,.3); transition: background .35s, box-shadow .35s; }
.assembly-legend li.active .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(62,146,192,.22); }
.assembly-legend b { display: block; font-size: 15.5px; color: var(--on-ink); font-weight: 600; font-family: var(--font-sans); }
.assembly-legend span { font-size: 13px; color: var(--on-ink-mut); }
.assembly-legend .ln { font-family: var(--font-mono); font-size: 11px; color: var(--accent-soft); margin-right: 2px; }

.assembly-viz { position: relative; height: min(72vh, 540px); display: grid; place-items: center; }
.layer-stack {
  position: relative;
  width: min(82vw, 420px);
  aspect-ratio: 920 / 1180;
  filter: drop-shadow(0 30px 52px rgba(0,0,0,.42));
}
.layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
.layer-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}
.layer .tag {
  position: absolute;
  left: calc(100% + 14px);
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-ink-mut);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.layer .tag::before { content:""; width: 14px; height: 1px; background: var(--accent-soft); }
.layer.lit .tag { opacity: 1; }
.layer.l0 .tag { top: 82%; }
.layer.l1 .tag { top: 61%; }
.layer.l2 .tag { top: 42%; }
.layer.l3 .tag { top: 17%; }

.assembly-scrub { position: absolute; right: -6px; top: 8%; bottom: 8%; width: 3px; border-radius: 3px; background: rgba(237,231,218,.14); }
.assembly-scrub span { position: absolute; left: 0; top: 0; width: 100%; border-radius: 3px; background: var(--accent); height: 0%; }
.assembly-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-mut); display: flex; align-items: center; gap: 8px; transition: opacity .3s; }
.assembly-hint .ar { animation: nudge 1.6s infinite; }
@keyframes nudge { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }

@media (max-width: 860px) {
  /* de-pin: igual que processo/controle, evita recorte em telas baixas */
  .assembly-track { height: auto; }
  .assembly-stage { position: static; height: auto; padding-block: clamp(64px,9vw,128px); }
  .assembly-inner { grid-template-columns: 1fr; gap: 24px; }
  .assembly-viz { height: 320px; order: -1; }
  .layer-stack { width: min(78vw, 270px); }
  .layer .tag { display: none; }
  .assembly-scrub, .assembly-hint { display: none; }
  /* mostra a peça já montada (estática) — o scrub não cabe sem o pin */
  .assembly .layer { opacity: 1 !important; transform: none !important; }
  .assembly-legend li { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .assembly-track { height: auto; }
  .assembly-stage { position: static; height: auto; padding-block: clamp(64px,9vw,128px); }
  .layer { opacity: 1 !important; transform: none !important; }
  .assembly-legend li { opacity: 1; }
  .assembly-scrub, .assembly-hint { display: none; }
}

/* =====================================================
   PROCESS — pinned journey (a peça percorre as 5 etapas)
   ===================================================== */
.proc-scene { background: var(--ink); color: var(--on-ink); }
.proc-track { height: 210vh; position: relative; }
.proc-stage { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.proc-rail { position: relative; margin-top: 10px; }
.proc-line { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: rgba(237,231,218,.16); border-radius: 2px; z-index: 0; }
.proc-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); border-radius: 2px; box-shadow: 0 0 12px rgba(62,146,192,.6); transition: width .12s linear; }
.proc-token { position: absolute; top: 7px; left: 0; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; z-index: 4; box-shadow: 0 0 0 6px rgba(62,146,192,.18), 0 8px 20px rgba(0,0,0,.4); transition: left .12s linear; }
.proc-rail .steps .step::before { display: none; }
.proc-rail .step { z-index: 1; transition: opacity .45s; }
.proc-rail .step:not(.lit) { opacity: .42; }
.proc-rail .step .dot { transform: scale(.55); opacity: .35; transition: transform .45s cubic-bezier(.22,1.4,.4,1), opacity .45s, box-shadow .45s; }
.proc-rail .step.lit .dot { transform: scale(1); opacity: 1; }
.proc-rail .step h3, .proc-rail .step p { transition: color .4s, transform .45s; }
@media (max-width: 900px) {
  .proc-track { height: auto; }
  .proc-stage { position: static; min-height: 0; padding-block: clamp(64px,9vw,128px); }
  .proc-line, .proc-token { display: none; }
  .proc-rail .step:not(.lit) { opacity: 1; }
  .proc-rail .step .dot { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .proc-track { height: auto; }
  .proc-stage { position: static; min-height: 0; padding-block: clamp(64px,9vw,128px); }
  .proc-token { display: none; }
  .proc-rail .step { opacity: 1 !important; }
  .proc-rail .step .dot { transform: none; opacity: 1; }
}

/* =====================================================
   CONTROLE DE QUALIDADE — scan + checklist (pinned)
   ===================================================== */
.ctrl-scene { background: var(--paper-2); }
.ctrl-track { height: 200vh; position: relative; }
.ctrl-stage { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.ctrl-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; width: 100%; }
.ctrl-checklist { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ctrl-checklist li { display: flex; gap: 14px; align-items: center; padding: 15px 18px; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); opacity: .4; transform: translateX(-10px); transition: opacity .45s, transform .45s, border-color .45s; box-shadow: var(--shadow-sm); }
.ctrl-checklist li.done { opacity: 1; transform: none; border-color: var(--accent-soft); }
.ctrl-cbox { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; transition: background .3s, border-color .3s; }
.ctrl-checklist li.done .ctrl-cbox { background: var(--accent-deep); border-color: var(--accent-deep); }
.ctrl-cbox svg { opacity: 0; transform: scale(.5); transition: opacity .3s .1s, transform .3s .1s cubic-bezier(.22,1.6,.4,1); }
.ctrl-checklist li.done .ctrl-cbox svg { opacity: 1; transform: scale(1); }
.ctrl-checklist b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 600; font-family: var(--font-sans); }
.ctrl-checklist div span { font-size: 13px; color: var(--muted); }
.ctrl-viz { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; margin-inline: auto; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(160deg, var(--surface), var(--surface-warm)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ctrl-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(11,27,58,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,27,58,.05) 1px, transparent 1px); background-size: 34px 34px; }
.ctrl-piece {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%,-50%);
  width: min(58%, 255px);
  aspect-ratio: 400 / 330;
  filter: drop-shadow(0 22px 34px rgba(11,27,58,.28));
}
.ctrl-piece img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ctrl-mark { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 4px rgba(44,114,153,.2); opacity: 0; transform: scale(.4); transition: opacity .35s, transform .35s cubic-bezier(.22,1.6,.4,1); z-index: 3; }
.ctrl-mark.on { opacity: 1; transform: scale(1); }
.ctrl-scanline { position: absolute; left: 8%; right: 8%; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 2px var(--accent); opacity: 0; z-index: 4; }
.ctrl-scanline.active { opacity: 1; }
.ctrl-stamp { position: absolute; right: 18px; bottom: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); border: 2px solid var(--accent-deep); border-radius: 8px; padding: 7px 13px; transform: rotate(-9deg) scale(.5); opacity: 0; transition: opacity .4s, transform .4s cubic-bezier(.22,1.5,.4,1); z-index: 5; font-weight: 700; }
.ctrl-stamp.show { opacity: 1; transform: rotate(-9deg) scale(1); }
@media (max-width: 860px) {
  .ctrl-track { height: auto; }
  .ctrl-stage { position: static; min-height: 0; padding-block: clamp(64px,9vw,128px); }
  .ctrl-inner { grid-template-columns: 1fr; gap: 28px; }
  .ctrl-viz { order: -1; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctrl-track { height: auto; }
  .ctrl-stage { position: static; min-height: 0; padding-block: clamp(64px,9vw,128px); }
  .ctrl-checklist li { opacity: 1; transform: none; }
  .ctrl-checklist li .ctrl-cbox { background: var(--accent-deep); border-color: var(--accent-deep); }
  .ctrl-checklist li .ctrl-cbox svg { opacity: 1; transform: none; }
  .ctrl-mark { opacity: 1; transform: scale(1); }
  .ctrl-stamp { opacity: 1; transform: rotate(-9deg); }
  .ctrl-scanline { display: none; }
}

/* net (rede) draw-in */
#netSvg line { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1s ease; }
#netSvg.drawn line { stroke-dashoffset: 0; }
#netSvg .node { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; transition: opacity .5s, transform .5s cubic-bezier(.22,1.4,.4,1); }
#netSvg.drawn .node { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { #netSvg line{ stroke-dashoffset:0 !important;} #netSvg .node{ opacity:1; transform:none;} }

