/* ============================================================================
   AM | LABORATÓRIO PROTÉTICO
   ----------------------------------------------------------------------------
   Direção: ateliê de precisão.

   A página alterna entre dois solos e a alternância significa alguma coisa:
   VOID  = o digital. O viewport do CAD, onde o render vive e o trabalho acontece.
   BONE  = o material. Zircônia, gesso, cerâmica. O resultado que vai pra boca.

   Tipografia: Jost (geométrica, mesma família de formas do monograma) contra
   uma mono de sistema que carrega todo dado técnico — FDI, prazo, formato.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokens -- */
:root {
  --void: #15171b;
  --slate: #1d2026;
  --slate-2: #262a31;
  --rule-dk: #2f343c;

  --bone: #f1ece4;
  --bone-2: #e6dfd4;
  --rule-lt: #d7cfc2;

  --chalk: #ece8e1;
  --chalk-dim: #949aa3;
  --ink: #2b2e34;
  --ink-dim: #6d727b;

  --taupe: #a39383;
  --taupe-hi: #c3b5a5;
  --taupe-dp: #86765f;

  --f-sans: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", system-ui,
    sans-serif;
  --f-mono: "Consolas", ui-monospace, "SF Mono", "Roboto Mono", monospace;

  --gut: clamp(20px, 5vw, 76px);
  --rail: 132px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--chalk);
  font-family: var(--f-sans);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--taupe); color: var(--void); }

a { color: inherit; text-decoration: none; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 1px solid var(--taupe-hi);
  outline-offset: 4px;
}

/* --------------------------------------------------------------- bandas -- */
/* Cada banda redefine os tokens locais. Componentes leem só os locais,
   então o mesmo componente funciona nos dois solos sem duplicar regra. */
.band {
  --bg: var(--void);
  --fg: var(--chalk);
  --dim: var(--chalk-dim);
  --rule: var(--rule-dk);
  --surface: var(--slate);
  --accent: var(--taupe-hi);
  background: var(--bg);
  color: var(--fg);
  position: relative;
}
.band--bone {
  --bg: var(--bone);
  --fg: var(--ink);
  --dim: var(--ink-dim);
  --rule: var(--rule-lt);
  --surface: #f7f4ee;
  --accent: var(--taupe-dp);
}

/* ------------------------------------------------------------- estrutura -- */
.wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* Grade folha-de-especificação: trilho fino de anotações + conteúdo. */
.sheet {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(58px, 6.6vw, 108px);
  border-top: 1px solid var(--rule);
}

.mark {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mark b { color: var(--accent); font-weight: 400; }

.stack { display: flex; flex-direction: column; }
.stack > * { margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 300; }

.h-xl {
  font-size: clamp(2.2rem, 3.95vw, 3.9rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.h-lg {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 18ch;
}
.h-md {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.h-sm {
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: 0.002em;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--dim);
  max-width: 46ch;
}
.body { color: var(--dim); max-width: 62ch; }
.tint { color: var(--accent); }

.tag {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gut);
  background: color-mix(in srgb, var(--void) 92%, transparent);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--rule-dk); }
.nav__logo { display: block; height: 26px; flex: none; }
.nav__logo img { display: block; height: 100%; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 0.875rem;
  font-weight: 350;
  color: var(--chalk-dim);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--chalk); }

/* ----------------------------------------------------------------- botão -- */
.btn {
  --btn-fg: var(--void);
  --btn-bg: var(--taupe);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--taupe-hi); border-color: var(--taupe-hi); }
.btn__ar { transition: transform 0.25s var(--ease); }
.btn:hover .btn__ar { transform: translateX(4px); }

.btn--ghost {
  --btn-fg: var(--fg, var(--chalk));
  --btn-bg: transparent;
  border-color: var(--rule, var(--rule-dk));
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--accent, var(--taupe));
  color: var(--accent, var(--taupe));
}

/* ----------------------------------------------------------------- herói -- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 92px;
  position: relative;
  overflow: hidden;
}
/* Retícula de viewport: fundo técnico, quase imperceptível. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--rule-dk) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dk) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 90% 70% at 62% 46%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  flex: 1;
  padding-block: clamp(14px, 2vw, 30px);
}
.hero__copy { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 24px); align-items: flex-start; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--taupe), transparent);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Linha de escape: o WhatsApp continua existindo, só deixou de ser o caminho
   principal. Dentista com paciente na cadeira não cria conta pra tirar dúvida. */
.alt-line {
  font-size: 0.9375rem;
  color: var(--dim, var(--chalk-dim));
  margin: 0;
}
.alt-line a {
  color: var(--accent, var(--taupe-hi));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.2s var(--ease);
}
.alt-line a:hover { text-decoration-color: currentColor; }
.alt-line__sep { opacity: 0.4; padding-inline: 8px; }

/* ------------------------------------------------------------- odontograma -- */
.arch { position: relative; width: 100%; }
.arch svg { display: block; width: 100%; height: auto; overflow: visible; }

.tooth { cursor: pointer; }
.tooth__hit { fill: transparent; }
.tooth__out {
  fill: rgba(163, 147, 131, 0.045);
  stroke: #5d636e;
  stroke-width: 1.1;
  stroke-linejoin: round;
  transition: stroke 0.22s var(--ease), fill 0.22s var(--ease);
}
.tooth__cusp {
  fill: none;
  stroke: #464c56;
  stroke-width: 0.9;
  stroke-linecap: round;
  transition: stroke 0.22s var(--ease);
}
.tooth__num {
  font-family: var(--f-mono);
  font-size: 5.4px;
  letter-spacing: 0.06em;
  fill: #6b727d;
  text-anchor: middle;
  transition: fill 0.22s var(--ease);
  pointer-events: none;
  user-select: none;
}
.tooth:hover .tooth__out { stroke: var(--taupe-hi); fill: rgba(163, 147, 131, 0.13); }
.tooth:hover .tooth__cusp { stroke: var(--taupe); }
.tooth:hover .tooth__num { fill: var(--taupe-hi); }

.tooth.is-on .tooth__out {
  stroke: var(--taupe-hi);
  stroke-width: 1.5;
  fill: rgba(163, 147, 131, 0.24);
}
.tooth.is-on .tooth__cusp { stroke: var(--taupe-hi); }
.tooth.is-on .tooth__num { fill: var(--chalk); }

.arch__mid {
  stroke: var(--rule-dk);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}
.arch__lbl {
  font-family: var(--f-mono);
  font-size: 4.6px;
  letter-spacing: 0.24em;
  fill: #545b66;
  text-anchor: middle;
  text-transform: uppercase;
}

/* --------------------------------------------------------- barra de leitura -- */
.readout {
  position: relative;
  border-top: 1px solid var(--rule-dk);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding-block: 18px 22px;
}
.readout__cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.readout__val {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--chalk);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.readout__val em { font-style: normal; color: var(--taupe-hi); }
.readout__val .muted { color: var(--chalk-dim); }

/* ------------------------------------------------------------------ faixa -- */
.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.strip__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 46s linear infinite;
}
.strip__track > span {
  display: flex;
  align-items: center;
  gap: 46px;
  padding-right: 46px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 54px;
  white-space: nowrap;
}
.strip__track i { font-style: normal; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }
.strip:hover .strip__track { animation-play-state: paused; }

/* --------------------------------------------------------------- serviços -- */
.svc { display: flex; flex-direction: column; }
.svc__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 128px 108px;
  align-items: center;
  gap: 20px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.svc__row:first-child { border-top: 1px solid var(--rule); }
.svc__row:hover { background: var(--surface); padding-left: 16px; }
.svc__n {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.svc__name { font-size: 1.0625rem; font-weight: 350; }
.svc__meta {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.svc__t {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- portfólio -- */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.case {
  background: var(--bg);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s var(--ease);
}
.case:hover { background: var(--surface); }
.case__fig {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ece5da;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.case__fig canvas { display: block; width: 100%; height: 100%; }
.case__slot {
  position: absolute;
  left: 10px;
  bottom: 9px;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9c9184;
}
.case__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.case__fdi {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.case__note { font-size: 0.9375rem; color: var(--dim); line-height: 1.55; }
.case__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  border-top: 1px solid var(--rule);
  padding-top: 11px;
  margin-top: auto;
}

/* ------------------------------------------------------------------ chips -- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--fg); }

/* ------------------------------------------------------------- tecnologia -- */
.tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.tech__item {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: background 0.3s var(--ease);
}
.tech__item:hover { background: var(--surface); }
.tech__lbl {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.tech__item .chips { margin-top: auto; padding-top: 6px; }

/* ---------------------------------------------------------------- números -- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-style: dashed; /* placeholder explícito: some quando os números entrarem */
}
.stat {
  background: var(--bg);
  padding: clamp(22px, 3vw, 38px) clamp(16px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__n {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__n:not(:has(*)):empty, .stat__n--todo { opacity: 0.4; }
.stat__l {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.6;
}

/* --------------------------------------------------------------- processo -- */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(24px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
}
.step:first-child { border-top: 1px solid var(--rule); }
.step__n {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 6px;
}
.step__b { display: flex; flex-direction: column; gap: 9px; }

/* ------------------------------------------------------------ bibliotecas -- */
.libs { display: flex; flex-direction: column; gap: 20px; }
.libs__search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
.libs__search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 1.125rem;
  font-weight: 300;
  padding: 4px 0;
}
.libs__search input::placeholder { color: var(--dim); }
.libs__search input:focus { outline: none; }
.libs__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lib {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--dim);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lib:hover { border-color: var(--accent); color: var(--fg); }
.lib[hidden] { display: none; }
.libs__empty { font-family: var(--f-mono); font-size: 0.75rem; color: var(--dim); }

/* ----------------------------------------------------------------- sócios -- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.who { background: var(--bg); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.who__pic {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.who__pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.who__pic span {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.who__role {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* -------------------------------------------------------------------- faq -- */
.faq { display: flex; flex-direction: column; }
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 1px solid var(--rule); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 4px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-size: 1.0625rem;
  font-weight: 350;
  transition: color 0.2s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  color: var(--accent);
  flex: none;
}
.qa[open] summary::after { content: "\2013"; }
.qa__n { font-family: var(--f-mono); font-size: 0.625rem; color: var(--dim); flex: none; }
.qa__a { padding: 0 4px 24px 46px; color: var(--dim); max-width: 68ch; }

/* ------------------------------------------------------------------ final -- */
.close { padding-block: clamp(72px, 8.5vw, 140px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.close .h-xl { max-width: 15ch; }

.foot {
  border-top: 1px solid var(--rule-dk);
  padding-block: 44px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 34px;
  align-items: start;
}
.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col a, .foot__col p { font-size: 0.9375rem; color: var(--chalk-dim); margin: 0; }
.foot__col a:hover { color: var(--chalk); }
.foot__logo { height: 30px; width: auto; margin-bottom: 8px; }
.legal {
  border-top: 1px solid var(--rule-dk);
  padding-block: 22px 40px;
  font-size: 0.8125rem;
  color: #6b717a;
  line-height: 1.65;
  max-width: 92ch;
}

/* --------------------------------------------------------------- revelação -- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsivo -- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero { min-height: auto; padding-top: 108px; }
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mark { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .readout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  /* Em tela estreita os 32 dentes ficariam ilegíveis. O arco mantém uma
     largura mínima e rola na horizontal dentro do próprio bloco. */
  .arch { overflow-x: auto; overscroll-behavior-x: contain; }
  .arch svg { min-width: 520px; }
  .svc__row { grid-template-columns: 34px minmax(0, 1fr) 84px; gap: 12px; padding: 15px 2px; }
  .svc__meta { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .qa__a { padding-left: 4px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .nav { padding: 11px var(--gut); }
  .nav__logo { height: 21px; }
  .nav .btn { padding: 10px 13px; font-size: 0.5625rem; letter-spacing: 0.12em; gap: 9px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════ landing: nuvem + simulador ══════ */
/* herói: a nuvem forma o dente (canvas transparente — o fundo atravessa) */
.cloud { position: relative; min-width: 0; }
.cloud canvas { width: 100%; height: min(66vh, 600px); display: block; }

/* seção do simulador: copy à esquerda, desenho técnico à direita */
.simx {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .simx { grid-template-columns: 1fr; } }
.qc-wrap canvas {
  width: 100%; height: min(62vh, 540px); display: block;
  border: 1px solid var(--rule-dk); border-radius: 3px; background: var(--void);
}

/* cards com sliders: o desenho responde na hora */
.qc-sims { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.qc-sim {
  border: 1px solid var(--rule-dk); border-radius: 4px; background: var(--slate);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 11px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.qc-sim.on { border-color: #434a55; box-shadow: 0 0 0 1px #434a55, 0 14px 34px -20px #000; }
.qc-sim__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qc-sim__head .n { font-family: var(--f-mono); font-size: 10px; color: #5c6570; }
.qc-sim__head .t { font-size: 0.9375rem; color: var(--chalk); }
.qc-sim__head .v {
  margin-left: auto; font-family: var(--f-mono); font-size: 11.5px;
  color: var(--taupe-hi); font-variant-numeric: tabular-nums;
}
.pill {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
  border: 1px solid; white-space: nowrap; transition: all 0.2s;
}
.pill.ok  { color: #74d29a; border-color: #275c3c; background: #12291c; }
.pill.bad { color: #e07a6a; border-color: #6b3028; background: #2b1713; }
.qc-sim__row { display: flex; align-items: center; gap: 12px; }
.qc-sim select {
  background: var(--void); border: 1px solid var(--rule-dk); border-radius: 2px;
  color: var(--chalk); font-size: 0.8125rem; padding: 6px 8px; flex: none;
}
.qc-sim select:focus { outline: none; border-color: var(--taupe); }
.qc-sim input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 3px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--taupe) var(--fill, 50%),
                              var(--rule-dk) var(--fill, 50%));
}
.qc-sim input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--chalk); border: 1px solid var(--taupe);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.8); transition: transform 0.15s;
}
.qc-sim input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
.qc-sim input[type=range]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--chalk); border: 1px solid var(--taupe);
}

/* chips de cenário: a cor antecipa o veredito */
.qc-try { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qc-try span {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #5c6570;
}
.qc-try button {
  font-size: 0.8125rem; padding: 6px 13px; border-radius: 99px; cursor: pointer;
  font-family: inherit; transition: filter 0.2s, transform 0.2s;
  color: #e07a6a; border: 1px solid #6b3028; background: #2b1713;
}
.qc-try button[data-try="ideal"] { color: #74d29a; border-color: #275c3c; background: #12291c; }
.qc-try button:hover { filter: brightness(1.35); transform: translateY(-1px); }

.qc-verdict {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; border: 1px solid; border-radius: 3px;
  padding: 11px 14px; line-height: 1.6; transition: all 0.3s;
}
.qc-verdict.ok  { color: #74d29a; border-color: #275c3c; background: #12291c; }
.qc-verdict.bad { color: #e3b544; border-color: #64511e; background: #2a2210; }

/* barras de rolagem no tema (site inteiro) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--rule-dk, #2f343c);
  border-radius: 8px;
  border: 2px solid var(--void, #15171b);
}
::-webkit-scrollbar-thumb:hover { background: #4a5260; }
::-webkit-scrollbar-thumb:active { background: var(--taupe, #a39383); }
::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  * { scrollbar-color: #3a414b transparent; scrollbar-width: thin; }
}

/* ═════════════════════════════════ repaginação: fluxo · modelo · serviços ══ */
/* fluxo digital em 4 atos (substitui os parágrafos do Processo) */
.fx-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-step {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--rule-dk); border-radius: 4px; background: transparent;
  padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px;
  font-family: inherit; color: inherit; overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.fx-step .n { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: #5c6570; }
.fx-step b { font-weight: 400; font-size: 1.0625rem; color: var(--chalk-dim);
             letter-spacing: -0.01em; transition: color 0.25s; }
.fx-step span.d { font-size: 0.8125rem; color: #5c6570; line-height: 1.5; }
.fx-step .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--taupe); }
.fx-step.on { border-color: #434a55; background: var(--slate); }
.fx-step.on b { color: var(--chalk); }
.fx-step.on .n { color: var(--taupe-hi); }
.fx-step.done .n { color: #74d29a; }
.fx-stage { position: relative; border: 1px solid var(--rule-dk); border-radius: 4px;
            background: var(--void); overflow: hidden; margin-top: 14px; }
.fx-stage canvas { width: 100%; height: clamp(300px, 46vh, 440px); display: block; }
.fx-hint { font-size: 0.875rem; color: var(--chalk-dim); margin-top: 12px; }
@media (max-width: 900px) {
  .fx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-step span.d { display: none; }
}

/* boca 3D exocad como seção do site (mount preguiçoso) */
#modelo[hidden] { display: none; }
.boca-wrap { position: relative; height: min(62vh, 540px);
             border: 1px solid var(--rule-dk); border-radius: 3px;
             background: var(--void); overflow: hidden; }
.boca-wrap > div { position: absolute; inset: 0; }
.hint3d { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em;
          color: #5c6570; min-height: 1.4em; }
/* o módulo boca3d cria .amb3d/.amb3d-hint; os estilos viviam SÓ no portal.css
   e no site o canvas ficava no tamanho default 300×150 (cópia espelhada —
   mudanças precisam ir nos dois arquivos) */
.amb3d { position: absolute; inset: 0; width: 100%; height: 100%;
         display: block; touch-action: none; cursor: grab; }
.amb3d-note, .amb3d-hint {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5c6570; pointer-events: none;
  white-space: nowrap; }
.amb3d-note { top: 50%; transform: translate(-50%, -50%); }
.amb3d-hint { bottom: 8px; }

/* ── alternador 2D↔3D no site: cartão-miniatura estilo Google Maps ──
   (cópias espelhadas do portal.css: .mapscard + .amo-tip do odontograma;
   mudanças precisam ir nos dois arquivos) */
.mapscard {
  position: absolute; left: 12px; bottom: 12px; z-index: 6;
  width: 104px; height: 74px; padding: 0;
  border: 2px solid rgba(236, 232, 225, 0.85); border-radius: 10px;
  overflow: hidden; cursor: pointer; background: #101216;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.85);
  transition: transform 0.16s, border-color 0.16s;
}
.mapscard:hover { transform: scale(1.05); border-color: var(--taupe-hi); }
.mapscard .thumb { position: absolute; inset: 0; display: none;
  pointer-events: none; background: #1a1c21; }
.mapscard .thumb.show { display: block; }
.mapscard .thumb svg { width: 100%; height: 100%; display: block; }
.mapscard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapscard .thumb .wait {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5c6570; }
.mapscard .tag2 {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px 4px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 700; color: #fff;
  text-align: left; letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(8, 9, 11, 0.85) 55%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); pointer-events: none; }
.mapscard.pulse::after {
  content: ""; position: absolute; inset: -2px; border-radius: 10px;
  border: 2px solid var(--taupe-hi); opacity: 0;
  animation: mpulse 2.2s ease-out 3; pointer-events: none; }
@keyframes mpulse {
  0% { opacity: 0.9; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; }
}
.amo-tip {
  position: fixed; left: 0; top: 0;  /* posição real vem por translate3d */
  z-index: 90; pointer-events: none; background: #101216;
  border: 1px solid var(--rule-dk); color: var(--chalk);
  font-size: 0.75rem; padding: 6px 10px; border-radius: 6px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8); opacity: 0;
  transition: opacity 0.12s;  /* transform NUNCA transiciona: mataria o rAF */
  will-change: transform; white-space: nowrap; }
.amo-tip.on { opacity: 1; }
.amo-tip b { color: var(--taupe-hi); font-weight: 700; }
.amo-tip .w { display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; margin: 0 4px 0 8px; vertical-align: baseline; }
.amo-tip .hist { display: block; font-size: 0.6875rem; color: #b0aaa0;
  margin-top: 3px; }

/* serviços: grade de cards com o pictograma da peça (AMTrab) */
.svcx { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.svcx__card {
  border: 1px solid var(--rule-dk); border-radius: 4px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,0.015);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.svcx__card:hover { border-color: var(--taupe); transform: translateY(-2px);
                    background: var(--slate); }
.svcx__ic { width: 36px; height: 36px; border-radius: 8px; background: var(--slate-2);
            display: grid; place-items: center; transition: background 0.25s; }
.svcx__card:hover .svcx__ic { background: var(--taupe-dp, #6e5f4c); }
.svcx__ic svg { width: 20px; height: 20px; }
.svcx__name { font-size: 0.9375rem; color: var(--chalk); line-height: 1.35; }
.svcx__meta { display: flex; gap: 8px; align-items: baseline; margin-top: auto;
              font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em;
              text-transform: uppercase; }
.svcx__meta .cat { color: #5c6570; }
.svcx__meta .mat { color: var(--taupe-hi); margin-left: auto; text-align: right; }

/* barra fixa de conversão no celular */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--void) 92%, transparent);
        border-top: 1px solid var(--rule-dk);
        transform: translateY(110%); transition: transform 0.35s var(--ease); }
.mcta.on { transform: none; }
.mcta .btn { flex: 1; justify-content: center; }
@media (max-width: 760px) { .mcta { display: flex; } }

/* ═══════════════════════════ repaginação onda 3: stl · notas · filtros ════ */
/* seção pública "arraste seu STL" (mesmo design do preview 02-stl) */
#stl[hidden] { display: none; }
.drop-file {
  border: 1px dashed var(--rule-dk); border-radius: 4px;
  background: rgba(29, 32, 38, 0.55); padding: clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop-file[hidden] { display: none; }   /* hidden perde pra display:flex sem isto */
.drop-file:hover, .drop-file:focus-visible { border-color: var(--chalk-dim); outline: none; }
.drop-file.drag { border-color: var(--teal, #5fd0c8); background: rgba(95, 208, 200, 0.06); }
.drop-file strong { font-weight: 400; font-size: 1.0625rem; letter-spacing: -0.01em; }
.drop-file span { font-size: 0.8125rem; color: var(--chalk-dim); line-height: 1.55; }
.stlprev { border: 1px solid var(--rule-dk); border-radius: 4px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #1c2027 0%, var(--void) 75%);
  margin-top: 12px; }
.stlprev[hidden] { display: none; }
.stlprev__cv { position: relative; height: clamp(220px, 34vh, 340px); }
.stlprev__hud { display: flex; align-items: center; gap: 12px; padding: 7px 12px;
  border-top: 1px solid var(--rule-dk); background: var(--slate);
  font-family: var(--f-mono); font-size: 0.6875rem; color: var(--chalk-dim);
  white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.stlprev__hud em { font-style: normal; color: var(--taupe-hi); }
.stlprev__hud .bad { color: #e07a6a; }

/* números honestos: notas adesivas com canto dobrado (colhidas do hero-camadas) */
.notesx { display: flex; gap: 16px; flex-wrap: wrap; }
.notex { position: relative; background: var(--bone); width: 210px; min-height: 128px;
  border-radius: 4px 4px 4px 18px; padding: 16px 15px;
  box-shadow: 0 20px 38px -20px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 6px; }
.notex::after { content: ""; position: absolute; right: 0; top: 0;
  border-style: solid; border-width: 0 26px 26px 0;
  border-color: var(--void) var(--void) #d9d3c7 #d9d3c7;
  border-radius: 0 0 0 6px; }
.band--bone .notex::after { border-color: var(--bone) var(--bone) #d9d3c7 #d9d3c7; }
.notex .n { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.notex .l { font-size: 0.8125rem; color: var(--ink-dim); line-height: 1.45; }

/* filtros da grade de serviços */
.svcx-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.svcx-filter button { border: 1px solid var(--rule-dk); background: transparent;
  color: var(--chalk-dim); font-size: 0.8125rem; padding: 6px 14px;
  border-radius: 99px; cursor: pointer; font-family: inherit;
  transition: color 0.2s, border-color 0.2s, background 0.2s; }
.svcx-filter button:hover { color: var(--chalk); border-color: var(--chalk-dim); }
.svcx-filter button.on { color: var(--void); background: var(--taupe-hi); border-color: var(--taupe-hi); }
.svcx__card[hidden] { display: none; }
.stlprev--site .stlprev__cv { height: clamp(320px, 52vh, 520px); }
