/* =========================================================
   Dr. Carlos Iury — Landing page
   Tokens → base → components → sections
   ========================================================= */

:root {
  /* brand */
  --navy-950: #060A18;
  --navy-900: #0A1024;
  --navy-800: #111A37;
  --navy-700: #1A2550;
  --ink:      #161E33;          /* logo navy */
  --blue:     #3B57D6;          /* primary */
  --blue-600: #2F49C2;
  --blue-soft:#A9B8FF;          /* accents on dark */
  --blue-mist:#E6EAF8;          /* section blocks */

  /* neutrals */
  --bg:       #F4F6FA;
  --surface:  #FFFFFF;
  --text:     #0E1424;
  --muted:    #586178;
  --line:     rgba(14, 20, 36, .08);

  /* type */
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;

  /* type scale — 2 families, 2 weights (400 text · 500 headings/labels) */
  --fs-display: clamp(2.9rem, 1.5rem + 5vw, 6rem);   /* hero name */
  --fs-h2:      clamp(2rem, 1.3rem + 2.6vw, 3.25rem);/* section titles */
  --fs-role:    clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);/* serif accent line */
  --fs-h3:      1.125rem;  /* 18px card & item titles */
  --fs-lead:    1.0625rem; /* 17px intro paragraphs */
  --fs-base:    1rem;      /* 16px */
  --fs-body:    .9375rem;  /* 15px secondary text, buttons, links */
  --fs-small:   .8125rem;  /* 13px captions, chips */
  --fs-label:   .75rem;    /* 12px uppercase labels, tags */

  /* radii (reference: 8 / 24 / 40 / 48) */
  --r-sm: 10px;
  --r-md: 24px;
  --r-lg: 40px;
  --r-xl: 48px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --ease-hero: cubic-bezier(.16, 1, .3, 1);   /* long, soft settle */

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;

  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typography ---------- */
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08em;
  letter-spacing: 0;
  color: var(--blue);
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 500;
  text-wrap: balance;
}
.h2--light { color: #fff; }
.h2--light em { color: var(--blue-soft); }
.body { font-size: var(--fs-lead); color: var(--muted); max-width: 52ch; }
.body--muted { color: var(--muted); }
.body--light { color: rgba(255,255,255,.72); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: .01em;
  color: var(--blue-600);
  background: rgba(59, 87, 214, .08);
  border: 1px solid rgba(59, 87, 214, .14);
  margin-bottom: 20px;
}
.chip--dark {
  color: #DCE3FF;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 500; font-size: var(--fs-body); letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s, box-shadow .25s var(--ease-out), color .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn .i { transition: transform .25s var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: var(--fs-body); }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #4864E3, var(--blue-600));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -10px rgba(59,87,214,.7);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 36px -10px rgba(59,87,214,.85); }
.btn--glass {
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255,255,255,.14); }
.btn--light {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
.btn--light:hover .i { transform: none; }

.round-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #4864E3, var(--blue-600));
  box-shadow: 0 8px 20px -8px rgba(59,87,214,.8);
  transition: transform .16s var(--ease-out), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.round-btn:hover { box-shadow: 0 10px 26px -8px rgba(59,87,214,.95); }
.round-btn:active { transform: scale(.92); transition-duration: .08s; }

.dot {
  display: inline-block; width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(59,87,214,.14);
}

/* ---------- Reveal on scroll ---------- */
/* uses the independent `translate` property so it never fights tilt transforms */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .7s var(--ease-out) var(--d, 0s), translate .8s var(--ease-out) var(--d, 0s);
}
.reveal.in { opacity: 1; translate: none; }

/* ---------- Tilt + glare (shared) ---------- */
.tilt {
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

.glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 55%);
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity .35s var(--ease-out);
}
.is-hover > .glare { opacity: 1; }

/* =========================================================
   NAV — light glass
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 40px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(14, 20, 36, .06),
    0 1px 2px rgba(14, 20, 36, .04),
    0 12px 40px -24px rgba(20, 30, 70, .35);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out),
              opacity .8s var(--ease-hero), translate 1s var(--ease-hero);
}
.nav.is-scrolled .nav__inner {
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 0 0 1px rgba(14, 20, 36, .07), 0 18px 50px -24px rgba(20, 30, 70, .4);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { width: 24px; height: auto; }
.brand__name { font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 400px) {
  .nav__inner { padding-left: 14px; }
  .nav__actions .btn--dark { display: none; } /* floating WhatsApp + menu cover it */
}

.nav__links { display: none; gap: 2px; }
.nav__links a {
  padding: 10px 14px; border-radius: 999px;
  font-size: var(--fs-body); color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(14, 20, 36, .045); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu {
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-grid; place-content: center; gap: 6px;
  background: rgba(14, 20, 36, .05);
}
.nav__menu span { display: block; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.nav__sheet {
  pointer-events: auto;
  margin: 8px auto 0;
  max-width: 520px;
  display: grid; gap: 2px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(14, 20, 36, .06), 0 30px 60px -24px rgba(20, 30, 70, .35);
  transform-origin: top right;
  animation: sheet-in .32s var(--ease-out);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a:not(.btn) {
  padding: 14px 16px; border-radius: 16px;
  color: var(--text);
}
.nav__sheet a:not(.btn):active { background: rgba(14, 20, 36, .05); }
.nav__sheet .btn { margin-top: 6px; }
@keyframes sheet-in {
  from { opacity: 0; transform: scale(.96) translateY(-6px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__menu, .nav__sheet { display: none !important; }
}

/* dark, serious primary button with a slow light sweep on hover */
.btn--dark {
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #1C2542, #0E1424);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 1px 2px rgba(14, 20, 36, .2),
    0 14px 30px -14px rgba(14, 20, 36, .55);
}
.btn--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate .9s var(--ease-out);
}
.btn--dark:hover::before { translate: 120% 0; }
.btn--dark:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 1px 2px rgba(14, 20, 36, .2),
    0 20px 38px -14px rgba(14, 20, 36, .6);
}

/* =========================================================
   HERO — light, editorial, premium
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 128px 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFD 50%, var(--bg) 100%);
}

/* slow-moving light, like daylight across a clean room */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__wash { position: absolute; border-radius: 50%; will-change: transform; }
.hero__wash--a {
  width: max(560px, 62vw); aspect-ratio: 1;
  right: -16vw; top: -24vw;
  background: radial-gradient(circle, rgba(190, 202, 236, .5), rgba(190, 202, 236, 0) 64%);
  animation: wash-a 24s ease-in-out infinite alternate;
}
.hero__wash--b {
  width: max(420px, 44vw); aspect-ratio: 1;
  left: -18vw; bottom: -24vw;
  background: radial-gradient(circle, rgba(214, 222, 240, .55), rgba(214, 222, 240, 0) 64%);
  animation: wash-b 28s ease-in-out infinite alternate;
}
@keyframes wash-a { to { transform: translate(-7vw, 5vw) scale(1.08); } }
@keyframes wash-b { to { transform: translate(6vw, -4vw) scale(1.12); } }

.hero__layout { display: grid; gap: 48px; align-items: center; }

/* copy */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; flex: none;
  background: currentColor; opacity: .5;
}
.hero__title {
  margin: 26px 0 0;
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.05em;
  color: var(--text);
  text-wrap: balance;
}
.hero__title .dim { color: inherit; font-weight: inherit; }  /* "Dr." matches the name */
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .03em .12em;
  margin: 0 -.03em -.12em;
}
.hero__title .w > span {
  display: inline-block;
  transition: transform 1.25s var(--ease-hero) var(--d, 0s);
}
.hero__role {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  font-size: var(--fs-role);
  letter-spacing: .005em;
  line-height: 1.1;
  color: var(--blue-600);
}
.hero__lead {
  margin: 28px 0 38px;
  max-width: 44ch;
  font-size: var(--fs-lead); line-height: 1.7;
  color: var(--muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__ctas .link-cta { margin-left: 16px; }

/* quiet secondary button (Instagram) — outline on glass, sits next to the dark CTA */
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(14, 20, 36, .12), 0 1px 2px rgba(14, 20, 36, .04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(14, 20, 36, .18), 0 12px 26px -16px rgba(20, 30, 70, .45);
}
.btn--ghost:hover .i { transform: none; }

.link-cta {
  position: relative;
  display: inline-flex; align-items: center; min-height: 52px;
  font-size: var(--fs-body); font-weight: 500; color: var(--text);
}
.link-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 1px;
  background: currentColor; opacity: .22;
  transition: opacity .3s var(--ease-out);
}
.link-cta::before { /* line that draws over the resting underline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-hero);
}
.link-cta:hover::before { transform: scaleX(1); transform-origin: left; }

.hero__creds {
  display: grid; grid-template-columns: repeat(2, auto); justify-content: start;
  margin: 56px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__creds > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line); }
.hero__creds > div:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.hero__creds dt {
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: #687089;
}
.hero__creds dd { margin: 8px 0 0; font-size: var(--fs-base); color: var(--text); letter-spacing: -.01em; }

/* portrait stage */
.hero__visual {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
}
.stage {
  --r: 40px;
  position: relative;
  aspect-ratio: 9 / 10.4;
  border-radius: var(--r);
  box-shadow:
    0 60px 110px -60px rgba(20, 30, 70, .42),
    0 24px 44px -32px rgba(20, 30, 70, .22);
  transition: box-shadow 1.6s var(--ease-hero) .2s;
}
.stage__inner {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(58% 44% at 50% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #EEF1F7 0%, #DDE3EE 100%);
  box-shadow: inset 0 0 0 1px rgba(14, 20, 36, .05), inset 0 1px 0 #fff;
  clip-path: inset(0 0 0 0 round var(--r));
  transition: clip-path 1.5s var(--ease-hero) .1s;
}
.stage__rings {
  position: absolute; left: 50%; top: 27%;  /* centred on the head */
  width: 118%; height: auto;
  translate: -50% -50%;
  overflow: visible;
}
.stage__rings circle { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.stage__rings .r1 { stroke: rgba(47, 73, 194, .2); }
.stage__rings .r2 { stroke: rgba(14, 20, 36, .09); }
.stage__rings .r3 { stroke: rgba(14, 20, 36, .06); }
.stage__rings .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s var(--ease-hero) var(--d, .5s);
}
.stage__spin, .stage__orbit { transform-box: view-box; transform-origin: 300px 300px; }
.stage__spin { animation: spin 120s linear infinite; }
.stage__spin circle { stroke: rgba(47, 73, 194, .16); stroke-dasharray: 2 7; }
.stage__orbit { animation: spin 26s linear infinite; }
.stage__orbit circle { fill: var(--blue); stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage__doc {
  position: absolute; z-index: 2;
  bottom: 0; left: 50%;
  width: 74%; height: auto;   /* 2:3 portrait — leaves air above the head */
  translate: calc(-50% + var(--px, 0px)) var(--py, 0px);
  filter: drop-shadow(0 30px 40px rgba(20, 30, 70, .16));
  user-select: none; -webkit-user-drag: none;
  transition: opacity 1.2s var(--ease-hero) .3s, scale 1.8s var(--ease-hero) .2s;
}

/* floating glass notes */
.float {
  position: absolute; z-index: 3;
  translate: var(--px, 0px) var(--py, 0px);
  transition: opacity .9s var(--ease-hero) var(--d, 1s), scale 1.1s var(--ease-hero) var(--d, 1s), filter .9s var(--ease-hero) var(--d, 1s);
}
.float__in {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .8),
    0 1px 2px rgba(14, 20, 36, .06),
    0 22px 44px -22px rgba(20, 30, 70, .38);
  animation: float-y 7s ease-in-out infinite;
}
.float--a { top: 15%; right: -28px; }
.float--a .float__in { animation-delay: -3.5s; }
.float--b { bottom: 11%; left: -36px; }
.float__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #1C2542, #0E1424);
}
.float__icon .i { width: 18px; height: 18px; }
.float__icon img { width: 20px; height: auto; }
.float b { display: block; font-weight: 500; font-size: var(--fs-body); letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; }
.float small { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 1.35; white-space: nowrap; }
@keyframes float-y { 50% { transform: translateY(-7px); } }

@media (min-width: 980px) {
  .hero__layout { grid-template-columns: 1.04fr .96fr; grid-template-rows: auto auto; gap: 0 40px; }
  .hero__copy   { grid-column: 1; grid-row: 1; align-self: end; }
  .hero__creds  { grid-column: 1; grid-row: 2; align-self: start; }
  .hero__visual { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 979px) {
  .hero { min-height: auto; padding-top: 112px; }
  /* below the portrait: the two credentials sit centred, split by a hairline */
  .hero__creds { margin-top: 0; justify-content: center; text-align: center; }
  .hero__creds > div, .hero__creds > div:last-child { padding: 0 32px; margin: 0; }
  .hero__visual { width: min(100%, 460px); }
  .float--a { top: 46%; right: 12px; }
  .float--b { bottom: 14px; left: 12px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .hero__layout { gap: 40px; }
  .eyebrow { letter-spacing: .2em; }
  .hero__title { margin-top: 22px; }
  .hero__lead { margin-bottom: 32px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__ctas .link-cta { margin-inline: auto; }
  .hero__creds { grid-template-columns: 1fr 1fr; }
  .hero__creds > div, .hero__creds > div:last-child { padding: 0 12px; }
  .stage { --r: 32px; }
  .float__in { padding: 8px 14px 8px 8px; gap: 10px; border-radius: 16px; }
  .float__icon { width: 34px; height: 34px; border-radius: 10px; }
  .float b { font-size: var(--fs-small); }
  .float small { font-size: var(--fs-label); }
}

/* ---------- Entrance choreography (only when JS is running) ---------- */
[data-in] {
  transition:
    opacity .9s var(--ease-hero) var(--d, 0s),
    translate 1.1s var(--ease-hero) var(--d, 0s),
    filter .9s var(--ease-hero) var(--d, 0s);
}
.js:not(.is-ready) [data-in],
.js:not(.is-ready) .float,
.js:not(.is-ready) .stage__doc,
.js:not(.is-ready) .nav__inner { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-ready) [data-in] { translate: 0 16px; filter: blur(6px); }
  .js:not(.is-ready) .hero__title .w > span { transform: translateY(112%); }
  .js:not(.is-ready) .nav__inner { translate: 0 -10px; }
  .js:not(.is-ready) .stage { box-shadow: 0 0 0 transparent, 0 0 0 transparent; }
  .js:not(.is-ready) .stage__inner { clip-path: inset(100% 0 0 0 round var(--r)); }
  .js:not(.is-ready) .stage__doc { scale: 1.07; }
  .js:not(.is-ready) .stage__rings .draw { stroke-dashoffset: 1; }
  .js:not(.is-ready) .float { scale: .92; filter: blur(6px); }

  /* scroll-linked depth: copy lifts faster than the portrait */
  @supports (animation-timeline: scroll()) {
    .hero__copy, .hero__visual {
      animation: linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
    .hero__copy { animation-name: hero-copy-out; }
    @media (min-width: 980px) {  /* on mobile the creds sit below the portrait, so they stay put */
      .hero__creds {
        animation: hero-copy-out linear both;
        animation-timeline: scroll(root);
        animation-range: 0 90vh;
      }
    }
    .hero__visual { animation-name: hero-visual-out; }
    @keyframes hero-copy-out { to { translate: 0 -56px; opacity: .35; } }
    @keyframes hero-visual-out { to { translate: 0 -20px; scale: .97; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__wash, .float__in, .stage__spin, .stage__orbit { animation: none; }
  [data-in], .float, .stage__doc, .nav__inner { transition: opacity .4s ease; }
  .stage, .stage__inner, .hero__title .w > span, .stage__rings .draw { transition: none; }
}

/* =========================================================
   SECTIONS / PANELS
   ========================================================= */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--soft { background: linear-gradient(180deg, var(--bg), #E9EDF7 60%, var(--bg)); }

.panel {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 40px 80px -50px rgba(20,30,80,.35), 0 0 0 1px var(--line);
  overflow: hidden;
}

.center-head { text-align: center; display: grid; justify-items: center; }
.split-head {
  display: grid; gap: 20px; align-items: end;
  margin-bottom: 40px;
}
@media (min-width: 900px) { .split-head { grid-template-columns: 1.2fr 1fr; } .split-head .body { justify-self: end; } }

/* =========================================================
   ARC CAROUSEL — 3D cards
   ========================================================= */
.panel--carousel {
  padding: clamp(40px, 6vw, 72px) 0 0;
  background:
    radial-gradient(800px 420px at 50% 115%, rgba(59,87,214,.22), transparent 70%),
    linear-gradient(180deg, #F7F8FC, #ECEFF8);
}
.arc-nav { display: flex; gap: 8px; margin-top: 24px; }

.arc {
  --card-w: 290px;
  --card-h: 390px;
  position: relative;
  height: calc(var(--card-h) + 130px);
  margin-top: 28px;
  overflow: hidden;
  /* the wheel sinks softly into the panel instead of a hard crop */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--card-h) + 30px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(var(--card-h) + 30px), transparent);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.arc:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); border-radius: 24px; }
.arc.is-dragging { cursor: grabbing; }
.arc__track { position: absolute; inset: 0; }

.arc-card {
  position: absolute;
  top: 24px;
  left: calc(50% - var(--card-w) / 2);
  width: var(--card-w);
  height: var(--card-h);
  /* transform-origin + transform set by JS (pivot far below the card = wheel) */
  will-change: transform;
}
.arc-card__body {
  position: absolute; inset: 0;
  border-radius: 34px;
  overflow: hidden;
  background: var(--navy-800);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 30px 50px -24px rgba(10,16,40,.55),
    0 12px 20px -12px rgba(10,16,40,.35);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--ry-base, 0deg)));
}
.arc-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06) translateX(var(--shift, 0px));
  pointer-events: none;
  -webkit-user-drag: none;
}
.arc-card__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,10,24,.55) 0%, rgba(6,10,24,0) 38%, rgba(6,10,24,0) 70%, rgba(6,10,24,.35) 100%);
}
.arc-card__head {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 10px 12px 16px;
  border-radius: 22px;
  color: #fff;
  background: rgba(12, 18, 40, .38);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.08);
}
.arc-card__head h3 { font-size: var(--fs-base); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.arc-card__head p { font-size: var(--fs-small); color: rgba(255,255,255,.72); line-height: 1.35; margin-top: 2px; }
.arc-card__go {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy-900); background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
  transition: transform .2s var(--ease-out);
}
.arc-card__go .i { width: 16px; height: 16px; }
.arc-card__go:hover { transform: rotate(-45deg); }
.arc-card__go:active { transform: rotate(-45deg) scale(.9); }
.arc-card__tag {
  position: absolute; left: 16px; bottom: 16px;
  padding: 6px 12px; border-radius: 999px;
  font-size: var(--fs-label); font-weight: 500; color: #fff;
  background: rgba(59,87,214,.85);
  box-shadow: 0 8px 20px -8px rgba(59,87,214,.9);
}
.arc-card .glare { border-radius: 34px; mix-blend-mode: soft-light; }

.arc-caption {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: 10px;
  text-align: center;
  margin-top: -76px;
  padding: 0 20px 48px;
}
.arc-caption__count {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-label); letter-spacing: .08em; color: var(--muted);
}
.arc-caption__text {
  max-width: 46ch; min-height: 3.2em;
  color: var(--text); font-size: var(--fs-base);
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
}
.arc-caption__text.is-swapping { opacity: 0; transform: translateY(4px); }


@media (max-width: 640px) {
  .arc { --card-w: 226px; --card-h: 310px; }
  .arc-card__body, .arc-card .glare { border-radius: 28px; }
  .arc-card__head { padding: 10px 8px 10px 12px; border-radius: 18px; }
  .arc-card__head h3 { font-size: var(--fs-body); }
  .arc-card__go { width: 36px; height: 36px; }
}

/* =========================================================
   IMPLANTES
   ========================================================= */
.panel--implants { padding: clamp(36px, 5vw, 64px); }
.panel--implants::before { /* concentric guide rings */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 58%, transparent 0 139px, rgba(59,87,214,.06) 140px 141px);
  mask-image: radial-gradient(60% 70% at 50% 58%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 58%, #000, transparent);
}
.impl__head { position: relative; margin-bottom: 40px; }
.impl {
  position: relative;
  display: grid; gap: 40px;
  align-items: center;
}
.impl__list { display: grid; gap: 32px; }
.impl-item h3 {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.01em; line-height: 1.35;
  margin-bottom: 8px;
}
.impl-item p { color: var(--muted); font-size: var(--fs-body); max-width: 36ch; }
.more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; min-height: 44px;
  font-weight: 500; font-size: var(--fs-body); color: var(--blue-600);
}
.more .i { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.more:hover .i { transform: translateX(3px); }

.impl__visual {
  position: relative;
  width: min(100%, 440px); aspect-ratio: 1;
  margin-inline: auto;
  display: grid; place-items: center;
}
.impl__glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(72,100,227,.55), rgba(72,100,227,0) 70%);
  filter: blur(20px);
}
.impl__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(59,87,214,.16); }
.impl__ring--1 { width: 100%; aspect-ratio: 1; }
.impl__ring--2 { width: 116%; aspect-ratio: 1; border-style: dashed; border-color: rgba(59,87,214,.12); }
.impl__photo {
  width: 76%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 10px rgba(255,255,255,.7), 0 0 0 11px rgba(59,87,214,.12), 0 40px 60px -30px rgba(20,30,90,.6);
}
.impl__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 980px) {
  .impl { grid-template-columns: 1fr 1.15fr 1fr; gap: 24px; }
  .impl__list--left { text-align: right; }
  .impl__list--left .impl-item h3 { flex-direction: row-reverse; justify-content: flex-start; }
  .impl__list--left .impl-item p { margin-left: auto; }
  .impl__list--left .impl-item:first-child { transform: translateX(-10px); }
  .impl__list--left .impl-item:last-child  { transform: translateX(30px); }
  .impl__list--right .impl-item:first-child { transform: translateX(10px); }
  .impl__list--right .impl-item:last-child  { transform: translateX(-30px); }
  .impl__list { gap: 72px; }
}

/* =========================================================
   SOBRE
   ========================================================= */
.panel--about {
  display: grid; gap: 40px;
  padding: clamp(20px, 3vw, 28px);
  align-items: center;
}
.about__card {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 36px;
  overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(59,87,214,.55), transparent 70%),
    linear-gradient(160deg, #162045, var(--navy-950));
  box-shadow: 0 40px 70px -40px rgba(10,16,40,.8);
}
.about__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.about__card::after { /* navy grade so the badge reads */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,10,24,0) 55%, rgba(6,10,24,.75));
}
.about__badge {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 18, 40, .45);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.08);
  width: fit-content;
}
.about__badge img { width: 30px; height: auto; margin-left: 8px; }
.about__badge b { display: block; font-weight: 500; font-size: var(--fs-body); }
.about__badge small { display: block; font-size: var(--fs-small); color: rgba(255,255,255,.7); }

/* =========================================================
   RESULTADOS — casos reais
   ========================================================= */
.res-note { text-align: center; margin: 16px auto 0; }
.cases {
  display: grid; gap: 16px;
  margin-top: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
  .case--wide { grid-column: span 2; }
}
.case {
  margin: 0;
  display: flex; flex-direction: column;
  padding: 10px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(20,30,80,.5);
}
.case__pair { position: relative; display: grid; gap: 4px; }
.case__img, .case__solo {
  position: relative; overflow: hidden;
  border-radius: 24px;
  background: var(--navy-800);
}
.case__pair .case__img:first-child { border-radius: 24px 24px 8px 8px; }
.case__pair .case__img:last-child  { border-radius: 8px 8px 24px 24px; }
.case__img { aspect-ratio: 16 / 9.5; }
.case__solo { flex: 1; min-height: 260px; }
.case__img img, .case__solo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  transition: scale .8s var(--ease-out);
}
.case:hover .case__img img, .case:hover .case__solo img { scale: 1.03; }
.case__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 999px;
  font-size: var(--fs-label); font-weight: 500; color: #fff;
  background: rgba(12,18,40,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.case__badge--after {
  background: rgba(59,87,214,.88);
  box-shadow: 0 8px 20px -8px rgba(59,87,214,.9);
}
.case__seal { /* clinic seal where the two photos meet */
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; padding: 4px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--surface), 0 12px 24px -10px rgba(10,16,40,.45);
}
@media (max-width: 560px) { .case__seal { width: 64px; height: 64px; } }
.case figcaption { padding: 16px 12px 10px; }
.case h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.01em; }
.case p { color: var(--muted); font-size: var(--fs-body); margin-top: 4px; }
.res-cta { display: flex; justify-content: center; margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .case__img img, .case__solo img { transition: none; } .case:hover img { scale: none; } }

.about__copy { padding: clamp(4px, 2vw, 24px); }
.about__copy .body { margin: 20px 0 28px; }
.facts { display: grid; gap: 4px; }
.facts li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.facts li .dot { transform: translateY(-2px); }
.facts b { display: block; font-weight: 500; }
.facts span:not(.dot) { color: var(--muted); font-size: var(--fs-body); }

@media (min-width: 900px) {
  .panel--about { grid-template-columns: .9fr 1.1fr; gap: 56px; }
}

/* =========================================================
   ETAPAS
   ========================================================= */
.steps {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: s;
}
.step {
  position: relative;
  min-height: 250px;
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF, #F1F4FC);
  box-shadow: 0 0 0 1px var(--line), 0 30px 50px -36px rgba(20,30,80,.45);
}
.step__n {
  font-size: 3.4rem; font-weight: 400; letter-spacing: -.04em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59,87,214,.35);
}
.step h3 {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; margin: 48px 0 8px;
}
/* keep the dot on the first line when a title wraps */
.step h3 .dot, .impl-item h3 .dot { margin-top: calc(.675em - 4px); }
.step p { color: var(--muted); font-size: var(--fs-body); }
.step:last-child {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
}
.step:last-child p { color: rgba(255,255,255,.7); }
.step:last-child .step__n { -webkit-text-stroke-color: rgba(169,184,255,.5); }
.step:last-child .dot { background: var(--blue-soft); box-shadow: 0 0 0 4px rgba(169,184,255,.18); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { display: grid; gap: 32px; }
.faq-head .body { margin-top: 16px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } .faq-head { position: sticky; top: 120px; } }

.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -34px rgba(20,30,80,.4);
  transition: box-shadow .3s var(--ease-out);
}
.faq details[open] { box-shadow: 0 0 0 1px rgba(59,87,214,.22), 0 24px 50px -30px rgba(20,30,80,.45); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
  padding: 18px 20px 18px 24px;
  font-weight: 500; letter-spacing: -.01em;
  cursor: pointer;
  border-radius: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.plus {
  position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: rgba(59,87,214,.08);
  transition: background-color .25s, transform .35s var(--ease-out);
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.6px; background: var(--blue-600); border-radius: 2px;
  translate: -50% -50%;
}
.plus::after { rotate: 90deg; transition: rotate .35s var(--ease-out); }
details[open] .plus { background: var(--blue); transform: rotate(180deg); }
details[open] .plus::before, details[open] .plus::after { background: #fff; }
details[open] .plus::after { rotate: 0deg; }
.faq__a { padding: 0 24px 22px; color: var(--muted); }
.faq__a a { color: var(--blue-600); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* smooth open where supported */
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* =========================================================
   CTA / CONTATO
   ========================================================= */
.cta {
  position: relative; isolation: isolate;
  display: grid; gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #141E44, var(--navy-950));
  box-shadow: 0 50px 90px -50px rgba(10,16,40,.9);
}
.cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(59,87,214,.4), transparent 70%),
    repeating-radial-gradient(circle at 0% 100%, transparent 0 79px, rgba(169,184,255,.06) 80px 81px);
}
.cta__copy .body { margin: 16px 0 28px; }
.contact-list { display: grid; gap: 4px; margin-top: 32px; }
.contact-list li {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.contact-list__icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(169,184,255,.12); color: #DCE3FF;
}
.contact-list small { display: block; font-size: var(--fs-small); color: rgba(255,255,255,.55); }
.contact-list a { font-weight: 500; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cta__map {
  min-height: 320px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.cta__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

@media (min-width: 900px) { .cta { grid-template-columns: 1fr 1.05fr; gap: 48px; } }

/* =========================================================
   FOOTER + FAB
   ========================================================= */
.footer { padding: 40px 0 56px; }
.footer__inner {
  display: grid; gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 40px; height: auto; }
.footer__brand b { display: block; font-weight: 500; }
.footer__brand span { color: var(--muted); font-size: var(--fs-body); }
.footer__legal { color: var(--muted); font-size: var(--fs-small); display: grid; gap: 4px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr auto; align-items: center; } .footer__legal { text-align: right; } }

.fab {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #4864E3, var(--blue-600));
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 16px 30px -10px rgba(59,87,214,.8);
  transition: transform .18s var(--ease-out), opacity .3s, translate .4s var(--ease-out);
}
.fab .i { width: 24px; height: 24px; }
.fab:active { transform: scale(.92); }
.fab.is-hidden { opacity: 0; translate: 0 16px; pointer-events: none; }

/* =========================================================
   ACCESSIBILITY PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { translate: none !important; transition: opacity .3s ease !important; }
  .nav__sheet { animation: none; }
  .btn .i, .more .i { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav__inner, .nav__sheet, .float__in { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .arc-card__head { background: rgba(10,16,36,.86); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .body, .impl-item p, .step p, .faq__a { color: var(--text); }
  .arc-card__head { background: rgba(6,10,24,.92); }
}
