/* ==========================================================
   Clínica Paula Barreto — 2026
   Mármore, tinta, bronze. Clínico, quente, sem pressa.
   ========================================================== */

:root {
  --bg: #F3F0EA;
  --paper: #FAF8F4;
  --stone: #E6E0D6;
  --ink: #151413;
  --ink-2: #4B4640;
  --ink-3: #8A837A;
  --line: rgba(21, 20, 19, .13);
  --bronze: #9C7443;
  --bronze-2: #C9A36B;
  --clay: #B5663A;
  --night: #121110;
  --night-2: #1C1A18;
  --on-night: #ECE6DD;
  --on-night-2: #A69E93;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans);

  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.mono { font-size: 13px; }
.label { font-size: 14px; font-weight: 500; color: var(--ink-3); margin: 0 0 14px; }
.h2 { font: 400 clamp(40px, 6.2vw, 92px)/.98 var(--serif); letter-spacing: -.02em; margin: 0; }
.h2 em { color: var(--bronze); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(156, 116, 67, .15); }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- botões ---------- */
.btn {
  --bg-b: var(--ink); --fg-b: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  font: 500 14.5px/1 var(--sans); letter-spacing: .01em;
  background: var(--bg-b); color: var(--fg-b); border: 1px solid var(--bg-b);
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bronze); transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--bronze); color: #fff; }
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px) rotate(0deg); }
.btn--line { --bg-b: transparent; --fg-b: var(--ink); border-color: var(--line); }
.btn--light { --bg-b: var(--on-night); --fg-b: var(--night); }
.btn--xl { padding: 22px 32px; font-size: 17px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 28px;
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.intro__mark { width: 96px; fill: var(--ink); opacity: 0; transform: translateY(8px); animation: introIn .8s .1s var(--ease) forwards; }
.intro__bar { width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); animation: bar .9s .2s var(--ease-io) forwards; }
.intro.is-out { clip-path: inset(0 0 100% 0); }
.intro.is-gone { display: none; }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- régua ---------- */
.ruler {
  position: fixed; left: 0; top: 0; bottom: 0; width: 34px; z-index: 40;
  pointer-events: none; display: none;
}
@media (min-width: 1100px) { .ruler { display: block; } }
.ruler__ticks {
  position: absolute; inset: 88px 0 24px 14px;
  background:
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 10px) left / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(21,20,19,.28) 0 1px, transparent 1px 50px) left / 12px 100% no-repeat;
}
.ruler__cursor { position: absolute; left: 10px; top: 88px; height: 1px; width: 18px; background: var(--bronze); transition: background .4s; }
.ruler__label {
  position: absolute; left: 8px; top: 8px; white-space: nowrap; writing-mode: vertical-rl;
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze);
}
body.on-dark .ruler__ticks { filter: invert(1); opacity: .6; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gut);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-solid { background: rgba(243, 240, 234, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); padding-block: 12px; box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__logo svg { width: 44px; fill: var(--ink); }
.nav__logo span { font: 500 12px/1.15 var(--sans); letter-spacing: .02em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 12px; text-decoration: none; font-size: 14px; color: var(--ink-2);
  transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 12px 18px; font-size: 13.5px; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease); }
.nav__burger i:first-child { top: 18px; } .nav__burger i:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: 110px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font: 400 44px/1.15 var(--serif); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.sheet nav small { font: 500 11px var(--mono); color: var(--ink-3); }
.sheet__foot p { color: var(--ink-2); font-size: 15px; }

@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; padding: 120px var(--gut) 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  position: relative;
}
.hero__grid {
  width: min(100%, var(--max)); margin: 0 auto; flex: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.eyebrow { font: 500 15px var(--sans); color: var(--ink-2); margin: 0 0 24px; }
.hero__title { font: 400 clamp(56px, 9.4vw, 148px)/.9 var(--serif); letter-spacing: -.035em; margin: 0 0 32px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--bronze); }
.hero__lead { max-width: 30em; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); margin: 0 0 36px; }
.hero__lead strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.hero__foot {
  width: min(100%, var(--max)); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink-3);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 22px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* scan figure */
.scan { position: relative; margin: 0; justify-self: end; width: min(100%, 520px); }
.scan__img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.scan__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.scan__line {
  position: absolute; left: -4%; right: -4%; top: 0; height: 1px; background: var(--bronze-2);
  box-shadow: 0 0 18px 2px rgba(201, 163, 107, .7);
  animation: scan 5.5s var(--ease-io) infinite; opacity: .9;
}
.scan__line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to top, rgba(201,163,107,.22), transparent); }
@keyframes scan { 0% { top: 2%; } 50% { top: 97%; } 100% { top: 2%; } }
.scan__corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--ink); }
.scan__corner.tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.scan__corner.tr { top: -10px; right: -10px; border-left: 0; border-bottom: 0; }
.scan__corner.bl { bottom: 26px; left: -10px; border-right: 0; border-top: 0; }
.scan__corner.br { bottom: 26px; right: -10px; border-left: 0; border-top: 0; }
.scan__read {
  position: absolute; left: -48px; top: 18%; list-style: none; margin: 0; padding: 14px 16px;
  background: rgba(250, 248, 244, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 10px; min-width: 176px;
  box-shadow: 0 20px 40px -24px rgba(21, 20, 19, .35);
}
.scan__read li { display: grid; grid-template-columns: 1fr 64px; align-items: center; gap: 12px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.scan__read i { height: 2px; background: var(--stone); position: relative; overflow: hidden; border-radius: 2px; }
.scan__read i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: read 5.5s var(--ease-io) infinite; }
.scan__read li:nth-child(2) i::after { animation-delay: .35s; }
.scan__read li:nth-child(3) i::after { animation-delay: .7s; }
.scan__read li:nth-child(4) i::after { animation-delay: 1.05s; }
@keyframes read { 0% { transform: scaleX(0); } 40%, 70% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.scan figcaption { margin-top: 12px; color: var(--ink-3); font-size: 10.5px; }

@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .scan { justify-self: stretch; width: 100%; }
  .scan__img { aspect-ratio: 4 / 5; }
  .scan__read { left: 12px; top: auto; bottom: 48px; }
  .hero__foot .mono:first-child, .hero__foot .mono:last-child { font-size: 10px; }
}
@media (max-width: 520px) { .hero__foot .hero__scroll { display: none; } }

/* ---------- manifesto ---------- */
.manifesto { width: min(100% - 2 * var(--gut), 1120px); margin: 0 auto; padding: clamp(96px, 16vh, 200px) 0; }
.manifesto__text { font: 400 clamp(30px, 4.4vw, 62px)/1.12 var(--serif); letter-spacing: -.015em; margin: 0 0 32px; }
.manifesto__text .w { opacity: .14; transition: opacity .2s linear; }
.manifesto__sign { color: var(--ink-3); margin: 0; }

/* ---------- método ---------- */
.method { background: var(--paper); border-block: 1px solid var(--line); }
.method__pin { min-height: 100svh; display: flex; flex-direction: column; padding: clamp(96px, 12vh, 140px) 0 48px; overflow: hidden; }
.method__head { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto 48px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.method__head .label { grid-column: 1 / -1; margin: 0; }
.method__progress { width: 180px; height: 1px; background: var(--line); margin-bottom: 18px; }
.method__progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.method__track { display: flex; gap: 24px; padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2)); will-change: transform; }
.step {
  flex: 0 0 min(72vw, 640px); min-height: 440px;
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start;
  padding: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.step__n { font: 400 clamp(72px, 9vw, 132px)/.8 var(--serif); color: var(--bronze); letter-spacing: -.04em; }
.step__body h3 { font: 400 clamp(30px, 3.2vw, 44px)/1.05 var(--serif); letter-spacing: -.015em; margin: 0 0 18px; }
.step__body p:not(.label) { color: var(--ink-2); margin: 0; max-width: 34em; }
.step__art { align-self: end; }
.step__art svg { width: 100%; fill: none; stroke: var(--ink); stroke-width: 1; }
.face__grid { stroke: var(--line); stroke-dasharray: 2 4; }
.face__pt { fill: var(--bronze); stroke: none; animation: pulse 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.face__pt:nth-of-type(2) { animation-delay: .6s; } .face__pt:nth-of-type(3) { animation-delay: 1.2s; } .face__pt:nth-of-type(4) { animation-delay: 1.8s; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(2); opacity: .35; } }
.flow circle:last-of-type { fill: var(--bronze); stroke: var(--bronze); }
.flow path { stroke-dasharray: 4 4; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.chart__line { stroke: var(--bronze); stroke-width: 2; }
.chart circle { fill: var(--ink); stroke: none; }

@media (max-width: 900px) {
  .method__pin { min-height: 0; }
  .method__head { grid-template-columns: 1fr; }
  .method__progress { display: none; }
  .method__track { flex-direction: column; padding-inline: var(--gut); }
  .step { flex: none; grid-template-columns: 1fr; min-height: 0; padding: 28px; gap: 20px; }
  .step__art { width: 140px; justify-self: end; margin-top: -8px; }
}

/* ---------- seções: cabeçalho ---------- */
.sec-head { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 24px 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .label { grid-column: 1 / -1; margin: 0; }
.sec-head__aside { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- atlas ---------- */
.atlas { padding: clamp(96px, 14vh, 180px) 0; }
.atlas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.atlas__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: q; }
.atlas__list li { border-bottom: 1px solid var(--line); }
.atlas__list button {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink-3);
  font: 400 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); letter-spacing: -.01em;
  transition: color .35s, padding .5s var(--ease);
}
.atlas__list button small { font: 500 11px var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.atlas__list button .tag { font: 400 13px var(--sans); color: var(--ink-3); opacity: 0; transform: translateX(-8px); transition: .4s var(--ease); }
.atlas__list button:hover { color: var(--ink); padding-left: 12px; }
.atlas__list button[aria-selected="true"] { color: var(--ink); padding-left: 12px; }
.atlas__list button[aria-selected="true"] small { color: var(--bronze); }
.atlas__list button[aria-selected="true"] .tag, .atlas__list button:hover .tag { opacity: 1; transform: none; }

.atlas__panel { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 48px); min-height: 460px; overflow: hidden; }
.atlas__zone { color: var(--bronze); font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.atlas__panel h3 { font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; }
.atlas__panel [data-f="text"] { color: var(--ink-2); margin: 0 0 30px; max-width: 32em; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; font: 500 13px var(--sans); }
.chips li.is-proto { border-style: dashed; color: var(--ink-2); border-color: var(--ink-3); }
.atlas__note { font-size: 14px; color: var(--ink-3); margin: 0 0 28px; padding-left: 14px; border-left: 2px solid var(--bronze); }
.atlas__panel-in > * { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.atlas__panel.is-swap .atlas__panel-in > * { opacity: 0; transform: translateY(10px); }

@media (max-width: 900px) {
  .atlas__grid { grid-template-columns: 1fr; }
  .atlas__panel { position: relative; top: 0; min-height: 0; order: -1; }
  .atlas__list button { padding: 16px 2px; }
  .atlas__list button .tag { display: none; }
}

/* ---------- matriz (escuro) ---------- */
.matrix { background: var(--night); color: var(--on-night); padding: clamp(96px, 14vh, 180px) 0; }
.matrix .label, .sec-head--dark .sec-head__aside { color: var(--on-night-2); }
.matrix .h2 em { color: var(--bronze-2); }
.matrix__scroller { overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: thin; }
.matrix__table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.matrix__table th, .matrix__table td { padding: 0; border-bottom: 1px solid rgba(236, 230, 221, .1); }
.matrix__table thead th { text-align: center; padding: 0 4px 18px; vertical-align: bottom; }
.matrix__table thead th:first-child { text-align: left; color: var(--on-night-2); }
.matrix__table thead button {
  background: none; border: 0; color: var(--on-night-2); cursor: pointer; padding: 6px 4px;
  font: 500 13px var(--sans); transition: color .3s;
}
.matrix__table thead th.is-hot button { color: var(--bronze-2); }
.matrix__table tbody th { text-align: left; font: 400 clamp(20px, 1.8vw, 26px)/1.2 var(--serif); padding: 14px 16px 14px 0; color: var(--on-night-2); transition: color .3s; white-space: nowrap; }
.matrix__table td { text-align: center; height: 58px; }
.cell { display: inline-block; width: 12px; height: 12px; border-radius: 50%; transition: transform .45s var(--ease), background .3s, box-shadow .3s; }
.cell.on { background: var(--on-night); }
.cell.off { width: 4px; height: 4px; background: rgba(236, 230, 221, .18); }
.cell.proto { width: 14px; height: 14px; border: 1px dashed var(--on-night-2); background: transparent; }
.matrix__table.has-hot .cell.on { background: rgba(236, 230, 221, .22); }
.matrix__table .col-hot .cell.on { background: var(--bronze-2); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(201, 163, 107, .16); }
.matrix__table tr.row-hot th { color: var(--on-night); }
.matrix__table.has-hot tr.row-hot th { color: var(--bronze-2); }
.matrix__table td.col-hot { background: rgba(236, 230, 221, .03); }
.matrix__stat { margin: 28px 0 0; color: var(--on-night-2); font-size: 15px; min-height: 1.6em; }
.matrix__proto { text-align: left !important; padding-left: 12px !important; color: var(--on-night-2); font-size: 14px; font-style: italic; }
.matrix__stat strong { color: var(--on-night); font-weight: 500; }

.tech { margin-top: clamp(72px, 10vw, 128px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(236, 230, 221, .14); }
.tech article { padding: 28px 24px 32px 0; border-bottom: 1px solid rgba(236, 230, 221, .14); position: relative; }
.tech article + article { padding-left: 24px; border-left: 1px solid rgba(236, 230, 221, .14); }
.tech article:nth-child(5n + 1) { padding-left: 0; border-left: 0; }
.tech h4 { font: 400 28px/1.1 var(--serif); margin: 10px 0 10px; color: var(--on-night); }
.tech p { margin: 0; font-size: 14.5px; color: var(--on-night-2); }
.tech__kind { color: var(--bronze-2); font-size: 13px; }
@media (max-width: 1000px) {
  .tech { grid-template-columns: 1fr 1fr; }
  .tech article, .tech article + article { padding: 24px 16px 26px 0; border-left: 0; }
  .tech article:nth-child(2n) { padding-left: 16px; border-left: 1px solid rgba(236, 230, 221, .14); }
}
@media (max-width: 560px) {
  .tech { grid-template-columns: 1fr; }
  .tech article:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- doutora ---------- */
.doctor { padding: clamp(96px, 14vh, 180px) 0; }
.doctor__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.doctor__img { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.doctor__img img { width: 100%; height: 115%; object-fit: cover; }
.doctor__cred { color: var(--bronze); font-size: 15px; margin: 22px 0 28px; }
.doctor__lead { font: 400 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); font-style: italic; margin: 0 0 24px; }
.doctor__copy > p:not(.label):not(.doctor__cred):not(.doctor__lead) { color: var(--ink-2); max-width: 34em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 16px 0 0; }
.facts dt { color: var(--ink-3); font-size: 10.5px; margin-bottom: 6px; }
.facts dd { margin: 0; font: 400 20px/1.2 var(--serif); }
@media (max-width: 900px) {
  .doctor__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
}

/* ---------- clínica (trilho horizontal) ---------- */
.place { background: var(--paper); border-block: 1px solid var(--line); overflow: hidden; }
.place__rail { display: flex; align-items: center; gap: 24px; padding: clamp(96px, 12vh, 140px) max(var(--gut), calc((100vw - var(--max)) / 2)); min-height: 100svh; will-change: transform; width: max-content; }
.place__intro { flex: 0 0 min(420px, 80vw); padding-right: 32px; }
.place__intro p:not(.label) { color: var(--ink-2); margin: 24px 0 0; }
.place__card { flex: none; margin: 0; width: clamp(260px, 26vw, 380px); }
.place__card.tall { width: clamp(280px, 30vw, 440px); }
.place__card.wide { width: clamp(320px, 44vw, 640px); }
.place__card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--stone); }
.place__card.tall img { aspect-ratio: 3 / 4.2; }
.place__card.wide img { aspect-ratio: 4 / 3; }
.place__card:nth-child(odd) { transform: translateY(-4vh); }
.place__ph { overflow: hidden; border-radius: var(--radius); }
.place__card figcaption { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 900px) {
  .place__rail { flex-direction: column; align-items: stretch; width: auto; min-height: 0; padding-inline: var(--gut); gap: 32px; }
  .place__intro, .place__card, .place__card.tall, .place__card.wide { width: 100%; flex: none; padding: 0; }
  .place__card:nth-child(odd) { transform: none; }
  .place__card img, .place__card.tall img { aspect-ratio: 4 / 5; }
}

/* ---------- onde ---------- */
.where { padding: clamp(96px, 14vh, 180px) 0; }
.where__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.where address { font-style: normal; display: flex; flex-direction: column; font: 400 clamp(22px, 2vw, 28px)/1.3 var(--serif); }
.where__street { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 12px; }
.where__hint { margin: 24px 0 36px; color: var(--ink-2); }
.where__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.where__warn { margin-top: 32px; color: var(--clay); font-size: 14px; max-width: 34em; }
.where__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--stone); }
.where__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.where__map:hover iframe { filter: none; }
@media (max-width: 900px) { .where__grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { padding: 0 0 clamp(96px, 14vh, 180px); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 120px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 400 clamp(20px, 1.8vw, 25px)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; position: relative; margin-top: 2px; transition: transform .5s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 1px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.faq details[open] summary i { background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--paper); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details > div { overflow: hidden; }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- final ---------- */
.final { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; min-height: 86svh; display: grid; place-items: center; padding: 120px var(--gut); text-align: center; }
.final__in { position: relative; z-index: 2; }
.final .label { color: var(--on-night-2); }
.final__title { font: 400 clamp(56px, 11vw, 176px)/.92 var(--serif); letter-spacing: -.035em; margin: 0 0 48px; }
.final__title span { display: block; }
.final__title em { color: var(--bronze-2); }
.final__mark { position: absolute; width: 150vw; max-width: 2000px; left: 50%; top: 50%; transform: translate(-50%, -50%); fill: none; stroke: rgba(236, 230, 221, .07); stroke-width: .12; }
.btn--light:hover { color: #fff; }

/* ---------- rodapé ---------- */
.foot { background: var(--night-2); color: var(--on-night-2); padding: 72px 0 32px; font-size: 14.5px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(236, 230, 221, .1); }
.foot .label { color: var(--on-night-2); opacity: .7; margin-bottom: 12px; }
.foot p { margin: 0; line-height: 1.7; }
.foot a { text-decoration: none; color: var(--on-night); }
.foot a:hover { color: var(--bronze-2); }
.foot__logo { width: 64px; fill: var(--on-night); margin-bottom: 18px; }
.foot__legal { display: flex; justify-content: space-between; gap: 32px; padding-top: 24px; font-size: 12.5px; opacity: .8; }
.foot__legal p:first-child { max-width: 60em; }
@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: column; }
}
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--bronze); display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(21, 20, 19, .6);
  transform: scale(0); transition: transform .6s var(--ease), background .3s;
}
.wa-float.is-in { transform: scale(1); }
.wa-float:hover { background: var(--ink); }
.wa-float svg { width: 26px; fill: #fff; }

/* ---------- estados iniciais (somente com JS + GSAP) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(28px); }
.js .reveal-img { clip-path: inset(100% 0 0 0); }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .scan__line { display: none; }
  .manifesto__text .w { opacity: 1; }
  .js .reveal-up { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
}

/* ajustes de altura para telas baixas (notebook) */
@media (min-width: 901px) {
  .method__pin { padding-top: clamp(84px, 11vh, 140px); padding-bottom: 32px; justify-content: center; }
  .method__head { margin-bottom: clamp(24px, 4vh, 48px); }
  .method .h2 { font-size: min(6.2vw, 10vh, 92px); }
  .step { min-height: 0; padding: clamp(28px, 4vh, 44px); }
  .step__n { font-size: min(9vw, 14vh, 132px); }
  .step__art svg { max-height: 30vh; }
  .place__rail { padding-block: clamp(84px, 11vh, 140px) 40px; }
  .place__card { width: min(26vw, 44vh); }
  .place__card.tall { width: min(30vw, 46vh); }
  .place__card.wide { width: min(44vw, 80vh); }
}

/* celular: alvos de toque e matriz */
@media (max-width: 900px) {
  .link-arrow { padding-block: 12px 10px; }
  .nav__logo { min-height: 44px; }
  .foot a { display: inline-block; padding-block: 10px; }
  .foot p { line-height: 1.5; }
  .foot__legal { font-size: 13px; }
  .matrix__table { min-width: 900px; }
  .matrix__table thead button { min-height: 44px; padding-inline: 8px; }
  .matrix__table tbody th { position: sticky; left: calc(var(--gut) * -1); z-index: 2; background: var(--night); padding-left: var(--gut); padding-right: 12px; font-size: 17px; white-space: normal; min-width: 132px; max-width: 132px; box-shadow: 8px 0 12px -8px rgba(0,0,0,.6); }
  .matrix__table thead th:first-child { position: sticky; left: calc(var(--gut) * -1); z-index: 2; background: var(--night); padding-left: var(--gut); }
  .matrix__scroller { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); -webkit-overflow-scrolling: touch; }
  .matrix .matrix__hint { display: block; }
}
.matrix__hint { display: none; margin: 0 0 16px; font-size: 14px; color: var(--on-night-2); }

/* logo nova (monograma sem ramos) e ajustes do retorno da clínica */
.nav__logo svg { width: 34px; }
.intro__mark { width: 72px; }
.foot__logo { width: 48px; }
.tech h4 { font-size: 24px; }
@media (min-width: 1001px) { .tech article:nth-child(5n + 1) { padding-left: 0; border-left: 0; } .tech article:nth-child(4n + 1):not(:nth-child(5n + 1)) { padding-left: 24px; border-left: 1px solid rgba(236, 230, 221, .14); } }
@media (max-width: 1000px) { .tech article:nth-child(5n + 1) { padding-left: 0; } .tech article:nth-child(2n) { padding-left: 16px; } .tech article:nth-child(2n + 1) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .tech article:nth-child(n) { padding-left: 0; border-left: 0; } }
@media (min-width: 901px) { .step { flex-basis: min(60vw, 520px); } }
.matrix__table td { height: 52px; }

.foot__legal { padding-right: 72px; }

/* ---------- mapa da pele ---------- */
.mapa { background: var(--stone); padding: clamp(88px, 13vh, 160px) 0; }
.mapa__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 7vw, 120px); align-items: end; }
.mapa__lead { font: 400 clamp(24px, 2.5vw, 34px)/1.2 var(--serif); letter-spacing: -.01em; margin: 28px 0 24px; max-width: 22em; }
.mapa__copy > p:not(.mapa__lead) { color: var(--ink-2); max-width: 34em; margin: 0 0 14px; }
.mapa__copy .btn { margin-top: 22px; }
.mapa__list ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mapa__list li { padding: 18px 0; border-bottom: 1px solid var(--line); font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); }
@media (max-width: 900px) { .mapa__grid { grid-template-columns: 1fr; align-items: start; } }
@media (min-width: 981px) and (max-width: 1180px) { .nav__links a { padding-inline: 8px; font-size: 13px; } .nav__logo span { display: none; } }
@media (min-width: 901px) { .step { flex-basis: min(72vw, 600px); } }
