/* ==========================================================
   Eliel Dutra — site institucional
   Mobile-first. Breakpoints: 700px (tablet), 900px (desktop), 1200px (wide)
   ========================================================== */

:root {
  --navy: #0A1628;
  --navy-deep: #060E1B;
  --navy-soft: #0D1B30;

  --gold: #B8860B;
  --gold-lt: #D9AE4F;
  --gold-deep: #8A650B;
  --gold-hair: rgba(184, 134, 11, .22);

  --cream: #F4F0E8;
  --cream-card: #FBF8F2;
  --ink: #1A1715;
  --ink-soft: #5C554A;

  --text: #F2ECDF;
  --text-soft: #A89F8E;

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --pad: 34px;
  --col: 620px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--navy-deep);
  font-size: .8rem; text-decoration: none; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Tipografia base ---------- */

.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 400;
  font-size: .66rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 30px;
}
.label::before, .label::after {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55;
}
.label--spaced { margin-top: 104px; }

.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 8.4vw, 3.15rem);
  line-height: 1.12; letter-spacing: -.005em;
  max-width: 15em; margin: 0 auto 40px;
  text-wrap: balance;
}

.prose p {
  max-width: 36ch; margin: 0 auto 1.35em;
  color: var(--text-soft);
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.quiet { font-style: normal; color: var(--text) !important; letter-spacing: .02em; }

.statement {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 5.6vw, 1.85rem); line-height: 1.35;
  color: var(--gold-lt);
  max-width: 17em; margin: 0 auto 48px;
  text-wrap: balance;
}

.slogan {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 5vw, 1.6rem); line-height: 1.3;
  color: var(--gold-lt);
}

.fineprint {
  font-size: .74rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 34ch; margin: 22px auto 0;
}
.fineprint--dark { color: var(--text-soft); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: transparent; color: var(--gold-lt);
  font-family: var(--sans); font-weight: 400;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity 1.2s var(--ease) var(--d, 0s);
}
.btn--solid { background: var(--gold); color: var(--navy-deep); }
.btn--long { padding: 0 22px; letter-spacing: .14em; white-space: nowrap; }
.btn--solid:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-arrow { width: 20px; height: 10px; transition: transform .4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.link-btn {
  display: inline-block; margin-top: 26px; padding: 8px 4px;
  background: none; border: 0; cursor: pointer;
  font: 400 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.link-btn:hover { color: var(--ink); }

/* ---------- Topo ---------- */

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: env(safe-area-inset-top);
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(10, 22, 40, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(184, 134, 11, .12);
}
.topbar.is-light { background: rgba(244, 240, 232, .88); border-bottom-color: rgba(26, 23, 21, .08); color: var(--ink); }
.topbar.is-light .brand-mark { color: var(--gold-deep); }
.topbar.is-light .brand-sub { color: var(--ink-soft); }

.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 20px; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif); font-weight: 500; font-size: 1.02rem;
  letter-spacing: .26em; text-transform: uppercase;
}
.brand-sub {
  font-size: .52rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-soft); margin-top: 3px;
}
.topbar-cta {
  display: none;
  padding: 10px 20px; border: 1px solid var(--gold); border-radius: 999px;
  font: 400 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--gold-lt);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.topbar-cta:hover { background: var(--gold); color: var(--navy-deep); }
.topbar.is-light .topbar-cta { color: var(--gold-deep); }

/* ---------- Linha-raiz (assinatura de scroll) ---------- */

.rail {
  position: fixed; z-index: 50;
  top: calc(96px + env(safe-area-inset-top)); bottom: 64px; left: 14px;
  width: 1px; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.is-ready .rail { opacity: 1; }

.rail-track {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(184,134,11,.18) 5%, rgba(184,134,11,.18) 95%, transparent);
}
.rail-line {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--gold-deep), var(--gold) 40%, var(--gold-lt));
  transform-origin: top; transform: scaleY(0);
  will-change: transform;
}
.rail-tip {
  position: absolute; left: -2px; top: 0; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--gold-lt);
  box-shadow: 0 0 10px 2px rgba(217, 174, 79, .55);
  will-change: top;
}

.rail-node {
  position: absolute; left: 6px; top: 0;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 11, .5);
  background: var(--navy);
  text-decoration: none;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
/* o "raminho" que liga o nó à linha */
.rail-node::before {
  content: ""; position: absolute; right: 100%; top: 50%;
  width: 6px; height: 1px; margin-top: -.5px;
  background: rgba(184, 134, 11, .4);
  transform-origin: right; transform: rotate(-28deg);
}
.rail-node.is-lit {
  background: var(--gold-lt); border-color: var(--gold-lt);
  box-shadow: 0 0 0 3px rgba(217, 174, 79, .12), 0 0 12px rgba(217, 174, 79, .65);
}
.rail-node.is-lit::before { background: var(--gold); }
.rail-node::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold-lt); opacity: 0;
}
.rail-node.is-lit::after { animation: ring 1.2s var(--ease) 1; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

.rail-label {
  position: absolute; left: 20px; top: 50%;
  transform: translate(-6px, -50%); opacity: 0;
  white-space: nowrap;
  font: 400 .58rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-lt);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  display: none;
}
.rail.on-light .rail-node { background: var(--cream); }
.rail.on-light .rail-node.is-lit { background: var(--gold); border-color: var(--gold); }
.rail.on-light .rail-label { color: var(--gold-deep); }

/* ---------- Seções ---------- */

.section {
  position: relative;
  padding: 120px var(--pad) 120px calc(var(--pad) + 6px);
  text-align: center;
  scroll-margin-top: 40px;
}
.inner { max-width: var(--col); margin: 0 auto; }

.section--soft { background: var(--navy-soft); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .label { color: var(--gold-deep); }
.section--cream .prose p,
.section--cream .quiz-intro p { color: var(--ink-soft); }

/* ---------- Revelações ---------- */

/* Wipe: máscara que sobe, revelando o título de baixo pra cima */
.js .wipe {
  clip-path: inset(100% 0 0 0);
  transform: translateY(.28em);
  transition: clip-path 1.25s var(--ease) var(--d, 0s), transform 1.25s var(--ease) var(--d, 0s);
}
.js .wipe.is-in { clip-path: inset(-.15em -.1em -.3em -.1em); transform: none; }

.js .fade { opacity: 0; transition: opacity 1.2s var(--ease) var(--d, 0s); }
.js .fade.is-in { opacity: 1; }

/* Traço que se desenha */
.draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .draw { stroke-dashoffset: 1; opacity: 0; }
.js .is-in .draw { animation: draw 1.7s var(--ease) var(--d, 0s) forwards; }
@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  2% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* ---------- 1. Hero ---------- */

.hero {
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(76px + env(safe-area-inset-top));
  padding-bottom: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-art { width: min(100%, 360px); margin: 0 auto 4px; }
.tree { display: block; width: 100%; height: auto; overflow: visible; }

.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.35rem, 10.4vw, 3.9rem);
  line-height: 1.05; letter-spacing: -.01em;
  max-width: 10.5em; margin: 0 auto 32px;
  text-wrap: balance;
}
.hero-text > p:not(.slogan) {
  max-width: 34ch; margin: 0 auto 1.1em;
  color: var(--text-soft);
  text-wrap: pretty;
}

.signature { margin: 38px auto 40px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.signature::before { content: ""; width: 1px; height: 30px; background: var(--gold); opacity: .6; margin-bottom: 14px; }
.signature-name { font-family: var(--serif); font-style: italic; font-size: 1.55rem; line-height: 1.2; }
.signature-role { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-lt); }

.hero .slogan { margin-top: 48px; }

/* árvore: movimento */
.js .leaf { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.js .is-in .leaf { animation: bud 1s var(--ease) var(--d, 0s) forwards; }
@keyframes bud { to { opacity: 1; transform: scale(1); } }

.sway { transform-box: view-box; transform-origin: 150px 190px; animation: sway 7s ease-in-out infinite alternate; }
.sway-b { animation-duration: 9s; animation-delay: -3s; }
.sway-c { animation-duration: 11s; animation-delay: -6s; }
@keyframes sway {
  from { transform: rotate(-.9deg) translateX(-.6px); }
  to   { transform: rotate(.9deg)  translateX(.6px); }
}

.canopy { transform: translateY(calc(var(--settle, 0) * -5px)); transition: transform .3s linear; }

.glow { animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

.dapples ellipse { opacity: .08; animation: dapple var(--t, 8s) ease-in-out var(--dl, 0s) infinite; }
@keyframes dapple { 0%, 100% { opacity: .05; } 50% { opacity: .32; } }

.motes circle { opacity: 0; animation: mote 10s ease-in-out var(--dl, 0s) infinite; }
@keyframes mote {
  0% { opacity: 0; transform: translate(0, 0); }
  35% { opacity: .85; }
  100% { opacity: 0; transform: translate(7px, -30px); }
}

.fall { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-in .fall { animation: fall 13s ease-in-out 4s infinite; }
@keyframes fall {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  6%   { opacity: .9; }
  30%  { transform: translate(-18px, 46px) rotate(90deg); }
  55%  { transform: translate(-6px, 92px) rotate(160deg); }
  78%  { opacity: .8; transform: translate(-30px, 136px) rotate(250deg); }
  86%, 100% { opacity: 0; transform: translate(-34px, 140px) rotate(270deg); }
}

/* a pessoa se assenta ao carregar e recosta a cabeça conforme a rolagem */
.js .person { opacity: 0; transform: translateY(-5px); }
.js .is-in .person { animation: settle 2.2s var(--ease) 1.7s forwards; }
@keyframes settle { to { opacity: 1; transform: none; } }

.breath { animation: breath 5.5s ease-in-out 4s infinite; }
@keyframes breath { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.7px); } }

.head {
  transform-box: view-box; transform-origin: 166px 251px;
  transform: rotate(calc(var(--settle, 0) * -11deg));
  transition: transform .5s var(--ease);
}

/* ---------- 2. Sobre ---------- */

.portrait { position: relative; width: min(66vw, 280px); margin: 80px auto 0; }
.portrait-frame {
  position: relative; aspect-ratio: 7 / 9; overflow: hidden;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(170deg, #13243E, var(--navy-deep));
}
.js .portrait-frame { opacity: 0; transition: opacity 1.6s var(--ease) .7s; }
.js .portrait.is-in .portrait-frame { opacity: 1; }
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: 1; }
/* véu azul-marinho sutil na base, pra foto se fundir ao fundo */
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 62%, rgba(10, 22, 40, .55));
}
.portrait-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-soft);
}
.portrait-ph svg { width: 56px; height: 56px; color: var(--gold); opacity: .45; }
.portrait-line {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 7 / 9; height: auto;
  transform: translate(14px, -14px); overflow: visible; pointer-events: none;
}
.portrait-line path { fill: none; stroke: var(--gold); stroke-width: 1; }
.portrait figcaption {
  margin-top: 26px;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--text-soft);
}

/* ---------- 3. Como trabalho ---------- */

.diffs { list-style: none; padding: 0; margin: 0 auto; max-width: 25em; }
.diffs li { padding: 48px 0; position: relative; }
.diffs li + li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 26px;
  background: var(--gold-hair);
}
.diff-n {
  display: block; margin-bottom: 14px;
  font-family: var(--serif); font-weight: 300; font-size: 3.6rem; line-height: 1;
  color: var(--gold-lt);
}
.diff-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.45rem, 5.8vw, 1.8rem); line-height: 1.2;
  max-width: 14em; margin: 0 auto 14px; text-wrap: balance;
}
.diffs p { color: var(--text-soft); max-width: 32ch; margin: 0 auto; }

/* ---------- 4. Quiz ---------- */

.quiz { max-width: 540px; margin: 0 auto; scroll-margin-top: 90px; }
.quiz-intro p:first-child { max-width: 34ch; margin: 0 auto 36px; }

.quiz-progress { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.quiz-count { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.quiz-steps { position: relative; display: flex; gap: 20px; }
.quiz-steps::before {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: rgba(26, 23, 21, .14);
}
.quiz-steps i {
  position: relative; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cream); border: 1px solid rgba(138, 101, 11, .45);
  transition: background-color .5s var(--ease), transform .5s var(--ease);
}
.quiz-steps i.is-done { background: var(--gold); border-color: var(--gold); }
.quiz-steps i.is-current { transform: scale(1.5); border-color: var(--gold-deep); }

.quiz-q {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.45rem, 5.9vw, 2rem); line-height: 1.22;
  max-width: 17em; min-height: 4.9em;
  margin: 34px auto 30px;
  display: flex; align-items: center; justify-content: center;
  text-wrap: balance; outline: none;
}

.scale { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 18px;
  width: 100%; min-height: 58px; padding: 10px 22px;
  background: var(--cream-card); color: var(--ink);
  border: 1px solid rgba(26, 23, 21, .1); border-radius: 16px;
  font: 300 1rem/1.2 var(--sans); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .2s var(--ease);
}
.opt:hover { border-color: rgba(138, 101, 11, .5); }
.opt:active { transform: scale(.985); }
.opt-n { font-family: var(--serif); font-size: 1.55rem; line-height: 1; width: 1em; color: var(--gold-deep); }
.opt[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--text); }
.opt[aria-checked="true"] .opt-n { color: var(--gold-lt); }

.meter { position: relative; height: 1px; max-width: 240px; margin: 8px auto 34px; background: rgba(26, 23, 21, .18); }
.meter i {
  position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(184, 134, 11, .16);
  transition: left 1.6s var(--ease) .3s;
}
.meter span { position: absolute; top: 12px; font-size: .62rem; color: var(--ink-soft); }
.meter span:first-of-type { left: 0; transform: translateX(-50%); }
.meter span:last-of-type { right: 0; transform: translateX(50%); }

.quiz-score { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.result-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 7.6vw, 2.6rem); line-height: 1.12;
  max-width: 13em; margin: 0 auto 22px; text-wrap: balance; outline: none;
}
.result-text { max-width: 36ch; margin: 0 auto 28px; color: var(--ink-soft); text-wrap: pretty; }
.result-note {
  max-width: 34ch; margin: 0 auto 36px; padding-top: 24px;
  border-top: 1px solid rgba(138, 101, 11, .25);
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.5;
  color: var(--gold-deep);
}

/* ---------- 5. Formação ---------- */

.approaches { max-width: 26em; margin: 0 auto; }
.approaches > div { padding: 40px 0; }
.approaches > div + div { border-top: 1px solid var(--gold-hair); }
.approaches dt {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.15;
  margin-bottom: 12px;
}
.approaches dd { color: var(--text-soft); max-width: 32ch; margin: 0 auto; }

/* ---------- 6. Contato ---------- */

.section--end { background: radial-gradient(120% 70% at 50% 0%, #10213A 0%, var(--navy) 70%); }
.end-mark { width: 108px; height: 108px; margin: 0 auto 46px; display: block; }
.section--end .btn { margin-top: 44px; }

/* Instagram */
.insta-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.insta-icon .insta-dot { fill: currentColor; stroke: none; }

.insta {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 64px; padding: 18px 24px;
  border-top: 1px solid var(--gold-hair); border-bottom: 1px solid var(--gold-hair);
  text-decoration: none; text-align: left; color: var(--gold-lt);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.insta:hover { color: var(--text); border-color: rgba(217, 174, 79, .5); }
.insta .insta-icon { width: 26px; height: 26px; }
.insta-text { display: flex; flex-direction: column; gap: 4px; }
.insta-lead { font-size: .8rem; line-height: 1.45; color: var(--text-soft); max-width: 26ch; }
.insta-handle { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.2; }

/* ---------- Rodapé ---------- */

.footer {
  padding: 80px var(--pad) calc(120px + env(safe-area-inset-bottom));
  text-align: center; background: var(--navy-deep);
  border-top: 1px solid rgba(184, 134, 11, .1);
}
.footer-mark { width: 40px; height: 40px; color: var(--gold); margin-bottom: 20px; }
.footer-name { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; letter-spacing: .3em; text-transform: uppercase; }
.footer-role { font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-soft); margin: 6px 0 30px; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-top: 28px;
  border: 1px solid rgba(184, 134, 11, .45); border-radius: 50%;
  color: var(--gold-lt);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.footer-social:hover { background: var(--gold); color: var(--navy-deep); }
.footer-copy { margin-top: 28px; font-size: .68rem; letter-spacing: .08em; color: rgba(168, 159, 142, .7); }

/* ---------- CTA flutuante (mobile, estilo app) ---------- */

.dock {
  position: fixed; z-index: 70;
  left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep); text-decoration: none;
  font: 400 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  transform: translateY(calc(100% + 30px));
  transition: transform .6s var(--ease);
}
.dock svg { width: 18px; height: 18px; }
.dock.is-shown { transform: none; }

/* ==========================================================
   Breakpoints
   ========================================================== */

@media (min-width: 380px) {
  :root { --pad: 40px; }
}

@media (min-width: 700px) {
  body { font-size: 16.5px; }
  .section { padding: 160px var(--pad); }
  .label--spaced { margin-top: 128px; }
  .hero-art { width: 400px; }

  .scale { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .opt { flex-direction: column; justify-content: center; gap: 10px; min-height: 108px; padding: 18px 6px; text-align: center; }
  .opt-n { width: auto; font-size: 2rem; }
  .opt-l { font-size: .78rem; letter-spacing: .02em; }
}

@media (min-width: 900px) {
  .topbar-inner { height: 76px; padding: 0 40px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: .56rem; }
  .topbar-cta { display: inline-flex; }
  .dock { display: none; }

  .rail { left: max(32px, calc(50% - 480px)); top: 120px; bottom: 80px; }
  .rail-node { pointer-events: auto; cursor: pointer; }
  .rail-node:hover { transform: scale(1.4); }

  .hero { padding-top: 110px; }
  .hero-art { width: 430px; }
  .portrait { width: 300px; }
  .footer { padding-bottom: 80px; }
}

@media (min-width: 1200px) {
  .rail-label { display: block; }
  .rail-node.is-current .rail-label { opacity: 1; transform: translate(0, -50%); }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .wipe, .js .fade, .js .draw, .js .leaf, .js .person, .js .portrait-frame {
    clip-path: none !important; transform: none !important; opacity: 1 !important;
    stroke-dashoffset: 0 !important; transition: none !important;
  }
  .fall, .motes circle { display: none; }
}

/* ==========================================================
   Hero: título principal e subtítulo
   ========================================================== */

.signature-sub {
  margin-top: 12px; max-width: 34ch;
  font-size: .85rem; line-height: 1.65; letter-spacing: .01em;
  color: var(--text-soft); text-transform: none;
}

/* ==========================================================
   Formação
   ========================================================== */

.seal {
  display: inline-block; margin-bottom: 34px;
  padding: 12px 26px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: rgba(184, 134, 11, .1);
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-lt);
}

.specs { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 16px; max-width: 30em; }
.spec {
  padding: 34px 26px;
  border: 1px solid var(--gold-hair); border-radius: 20px;
  background: rgba(255, 255, 255, .022);
}
.spec-icon {
  width: 30px; height: 30px; margin: 0 auto 18px; display: block;
  fill: none; stroke: var(--gold-lt); stroke-width: 1.2; stroke-linecap: round;
}
.spec h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.35rem; line-height: 1.2; margin-bottom: 12px;
  text-wrap: balance;
}
.spec p { font-size: .88rem; line-height: 1.7; color: var(--text-soft); max-width: 30ch; margin: 0 auto; }

.divider-mark {
  display: flex; align-items: center; gap: 20px;
  max-width: 320px; margin: 76px auto 68px;
}
.divider-mark span { flex: 1; height: 1px; background: var(--gold-hair); }
.divider-mark svg { width: 26px; height: 26px; color: var(--gold); opacity: .85; flex: none; }

.bases {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px;
  max-width: 30em;
}
.bases li { display: flex; flex-direction: column; gap: 6px; }
.bases strong {
  font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.2;
  color: var(--text);
}
.bases span { font-size: .76rem; line-height: 1.55; color: var(--text-soft); }

/* ==========================================================
   Áreas de atuação
   ========================================================== */

.chips {
  list-style: none; padding: 0; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 34em;
}
.chip {
  padding: 9px 17px;
  border: 1px solid rgba(184, 134, 11, .45); border-radius: 999px;
  font-size: .78rem; line-height: 1.4; color: var(--text-soft);
}

.root-block {
  margin: 72px auto 0; padding: 46px 26px;
  background: var(--cream); color: var(--ink);
  border-radius: 22px;
}
.root-block-mark { width: 44px; height: 44px; margin: 0 auto 24px; display: block; color: var(--gold); }
.root-block-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.18;
  max-width: 15em; margin: 0 auto 24px; text-wrap: balance;
}
.root-block p { max-width: 38ch; margin: 0 auto 1.2em; color: var(--ink-soft); text-wrap: pretty; }
.root-block p:last-child { margin-bottom: 0; }

/* ==========================================================
   Relatos de pacientes (carrossel)
   ========================================================== */

.testi { margin: 48px auto 0; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; align-items: stretch; transition: transform .7s var(--ease); }
.testi-card {
  flex: 0 0 100%; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 24px 30px;
  border: 1px solid var(--gold-hair); border-radius: 20px;
  background: rgba(255, 255, 255, .022);
}
.testi-quote {
  font-family: var(--serif); font-size: 4.2rem; line-height: .7;
  color: var(--gold); opacity: .55; margin-bottom: 8px;
}
.testi-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 1.9rem); line-height: 1.2;
  color: var(--gold-lt); margin-bottom: 20px; text-wrap: balance;
}
.testi-text {
  text-align: left; font-size: .92rem; line-height: 1.8;
  color: var(--text); max-width: 42ch; margin: 0 auto;
}
.testi-tag {
  margin-top: 24px; padding: 7px 15px;
  border: 1px solid var(--gold-hair); border-radius: 999px;
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-lt);
}
.testi-sign {
  margin-top: 16px;
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-soft);
}

.testi-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.testi-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--gold-hair); border-radius: 50%;
  background: transparent; color: var(--gold-lt); cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.testi-arrow svg { width: 18px; height: 18px; }
.testi-arrow:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

.testi-dots { display: flex; align-items: center; gap: 11px; }
.testi-dot {
  width: 7px; height: 7px; padding: 0; flex: none;
  border: 1px solid rgba(184, 134, 11, .5); border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: background-color .5s var(--ease), transform .5s var(--ease);
}
.testi-dot.is-active { background: var(--gold-lt); border-color: var(--gold-lt); transform: scale(1.4); }

.testi-cta { margin-top: 40px; }
#relatos .fineprint { margin-top: 30px; }

/* ==========================================================
   Breakpoints das seções novas
   ========================================================== */

@media (min-width: 700px) {
  .specs { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: none; }
  .spec { padding: 38px 28px; }
  .root-block { padding: 60px 48px; }
  .testi-card { padding: 44px 40px 38px; }
  .testi-text { font-size: .95rem; }
}

@media (min-width: 900px) {
  .bases { grid-template-columns: repeat(4, 1fr); gap: 26px 18px; max-width: none; }
  .bases strong { font-size: 1.05rem; }
  .bases span { font-size: .72rem; }
}

/* ==========================================================
   Hero: linha de destaque das três áreas
   ========================================================== */

.signature-lead {
  margin-top: 16px; max-width: 20ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 5vw, 1.5rem); line-height: 1.3;
  color: var(--text); text-wrap: balance;
}
.signature-sub { margin-top: 10px; font-size: .78rem; }

/* ==========================================================
   Meu foco de atendimento
   ========================================================== */

.focus {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; gap: 18px; max-width: 30em;
}
.focus-card {
  padding: 42px 28px 38px;
  border: 1px solid rgba(184, 134, 11, .4); border-radius: 22px;
  background: rgba(217, 174, 79, .045);
}
.focus-icon {
  width: 40px; height: 40px; margin: 0 auto 22px; display: block;
  fill: none; stroke: var(--gold-lt); stroke-width: 1.15;
  stroke-linecap: round; stroke-linejoin: round;
}
.focus-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 6.4vw, 1.95rem); line-height: 1.15;
  margin-bottom: 16px; text-wrap: balance;
}
.focus-card p { font-size: .9rem; line-height: 1.75; color: var(--text-soft); max-width: 32ch; margin: 0 auto; }

.focus-cta { margin-top: 44px; }

/* ==========================================================
   Áreas de atuação: as três principais em destaque
   ========================================================== */

.chip--key {
  background: var(--gold); border-color: var(--gold); color: var(--navy-deep);
  font-weight: 400; letter-spacing: .01em;
}

/* ==========================================================
   Breakpoints
   ========================================================== */

@media (min-width: 900px) {
  #foco .inner { max-width: 1000px; }
  .focus { grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: none; }
  .focus-card { padding: 46px 30px 42px; }
  .focus-card p { font-size: .88rem; }
}
