/* ─────────────────────────────────────────────
   Dra. Caroline Berg — Otorrinolaringologia
   Rinoplastia funcional e estética · Porto Alegre
   ───────────────────────────────────────────── */

:root {
  --brand-aqua: #2BB4B0;
  --brand-teal: #0B7B77;
  --brand-gray: #A8AB9F;

  --paper:      #F6F1E9;
  --paper-warm: #ECE5DB;
  --ink:        #24211F;
  --ink-soft:   #5A5550;
  --ink-mute:   #645D57;
  --petrol:     var(--brand-teal);
  --petrol-lt:  #096965;
  --sand:       var(--brand-aqua);
  --line:       color-mix(in srgb, var(--brand-gray) 42%, #E8DED2);
  --white:      #FFFCF7;

  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-body:    "Manrope", "Helvetica Neue", sans-serif;
  --text-min:   .625rem;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.46rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.2rem);
  --step-3:  clamp(1.95rem, 1.55rem + 2vw, 3.3rem);
  --step-4:  clamp(2.5rem, 1.7rem + 3.9vw, 5.3rem);

  --gut: clamp(1.25rem, 5vw, 6rem);
  --sec: clamp(4.5rem, 8vw, 7.5rem);
  --grid-gap: clamp(2rem, 5vw, 5rem);
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* profundidade */
  --shadow-sm: 0 1px 2px rgba(36,33,31,.04), 0 6px 16px -10px rgba(36,33,31,.14);
  --shadow-md: 0 2px 6px rgba(36,33,31,.05), 0 20px 44px -22px rgba(36,33,31,.20);
  --shadow-lg: 0 4px 14px rgba(36,33,31,.06), 0 44px 80px -34px rgba(36,33,31,.26);
  --shadow-xl: 0 8px 26px -14px rgba(36,33,31,.14), 0 70px 130px -52px rgba(36,33,31,.38);
  --shadow-dark: 0 30px 90px -40px rgba(4,46,45,.55);

  /* sangria total até a borda da viewport (só para blocos sem moldura) */
  --bleed: calc(((100vw - min(100vw, 1280px)) / 2 + var(--gut)) * -1);
  /* deslocamento parcial: a moldura continua inteira na tela */
  --shift: clamp(-1rem, -3vw, -3.5rem);
  /* respiro interno da moldura; compensado para a FOTO alinhar ao gutter */
  --frame-pad: clamp(.5rem, .9vw, .85rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  font-synthesis: none;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Títulos em Newsreader (escolhida pela cliente numa prova de 10 fontes; a Bodoni
   Moda tinha traço fino demais para tela). Tamanho óptico fixo em 36 em todo uso da
   fonte de display: no automático, os títulos grandes pegariam o desenho de 72, mais fino. */
h1, h2, h3,
.cred dt, .philo-n, .philo p, .rino-facts b, .contact-info a, .contact-info span,
.sec-head .lede .hl, .tm-hi, .nav a {
  font-variation-settings: "opsz" 36;
}
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }

/* ── Header ───────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background .3s ease, border-color .3s ease;
}
.site-head.is-stuck {
  background: color-mix(in srgb, var(--paper) 99%, transparent);
  border-bottom-color: color-mix(in srgb, var(--ink) 15%, transparent);
}

.head-in {
  position: relative;
  min-height: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  grid-template-areas: "left brand right action";
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.brand {
  grid-area: 1 / 1 / 2 / -1;
  position: absolute;
  padding-block: .45rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  line-height: 1;
  transform: translateX(-50%);
}
.brand-name {
  font-family: "Marcellus", var(--ff-display);
  font-size: 1.38rem;
  letter-spacing: -.025em;
  color: var(--ink);
}
.brand-role {
  margin-top: .3rem;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--petrol);
}

.nav-shell { display: contents; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(.95rem, 1.7vw, 1.7rem);
}
.nav-left { grid-area: left; justify-content: flex-start; }
.nav-right { grid-area: right; justify-content: flex-end; }
.nav a {
  position: relative;
  padding-block: 1.45rem;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .005em;
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.05rem;
  height: 1px;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.75,.25,1);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-mobile-cta { display: none; }

.head-actions { grid-area: action; display: flex; align-items: center; gap: .75rem; }
.head-cta {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .15rem 0;
  color: var(--petrol);
  font-size: .7rem;
  font-weight: 500;
  transition: color .25s ease;
}
.head-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .4rem;
  left: 0;
  height: 1px;
  background: color-mix(in srgb, var(--petrol) 45%, transparent);
  transition: background-color .25s ease;
}
.head-cta span { font-size: .82rem; transition: transform .25s ease; }
.head-cta:hover { color: var(--petrol-lt); }
.head-cta:hover::after { background: var(--petrol); }
.head-cta:hover span { transform: translate(1px, -1px); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-body); font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
  padding: .82rem 1.5rem;
  border: 1px solid var(--petrol); background: var(--petrol);
  color: var(--white); border-radius: 1px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(36,33,31,.08), 0 14px 28px -14px rgba(11,123,119,.5);
  transition: background .35s, color .35s, transform .35s, border-color .35s, box-shadow .35s;
}
.btn:hover {
  background: var(--petrol-lt); border-color: var(--petrol-lt);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(36,33,31,.1), 0 22px 40px -16px rgba(11,123,119,.62);
}
.btn--ghost { box-shadow: none; }
.btn--ghost:hover { box-shadow: none; }
.btn--ghost { background: transparent; color: var(--petrol); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--petrol); color: var(--petrol); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.nav-toggle, .nav-backdrop { display: none; }

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100dvh - 5rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 8% 4%, rgba(255,255,255,.95), transparent 46%),
    radial-gradient(70% 60% at 62% 108%, color-mix(in srgb, var(--brand-gray) 30%, transparent), transparent 70%),
    linear-gradient(90deg, var(--paper) 0 62%, color-mix(in srgb, var(--paper-warm) 92%, var(--brand-gray)) 62% 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -10% -22% 46%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--petrol) 16%, transparent), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(21rem, .86fr);
  align-items: center;
  gap: 0;
  position: relative;
  min-height: inherit;
  padding-block: clamp(2.25rem, 5vh, 4.5rem);
}
.hero-copy { position: relative; z-index: 3; min-width: 0; max-width: 43rem; padding-right: clamp(1.5rem, 4vw, 4rem); }
.hero-place {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.hero-place svg {
  width: 1.08rem;
  stroke: var(--sand);
  stroke-width: 1.7;
}
.hero-place span { width: 6.2rem; height: 1px; margin-left: .4rem; background: var(--sand); }
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  font-size: clamp(2.6rem, 4.65vw, 4.65rem);
  line-height: .95;
  letter-spacing: -.015em;
}
.hero h1 span { display: block; }
.hero h1 em {
  position: relative;
  z-index: 1;
  margin-top: .06em;
  color: var(--petrol);
  font-weight: 500;
  line-height: .95;
}
.hero-lede {
  max-width: 39ch;
  margin-top: clamp(1.4rem, 2.5vh, 2rem);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.24rem);
  line-height: 1.55;
}
.credential {
  position: relative;
  z-index: 4;
  margin-top: clamp(1.25rem, 2.4vh, 1.8rem);
  margin-right: clamp(-1rem, -5vw, -5.5rem);
  padding: 1.1rem clamp(1.1rem, 2vw, 1.6rem);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-left: 2px solid var(--sand);
  box-shadow: var(--shadow-md);
  color: var(--ink-soft);
  font-size: .7rem;
  letter-spacing: .13em;
  line-height: 1.65;
  text-transform: uppercase;
}
.credential span { display: flex; flex-direction: column; }
.credential b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: clamp(1.5rem, 3vh, 2.2rem); }
.hero-cta .btn { min-height: 3.5rem; padding-inline: 1.6rem; }
.hero-cta .btn:first-child { min-width: 17.5rem; justify-content: center; }
.hero-cta .btn--ghost {
  min-height: auto;
  padding: .75rem 0 .55rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.hero-cta .btn--ghost:hover { border-bottom-color: var(--petrol); }
.btn-arrow { margin-left: auto; font-size: 1.15rem; font-weight: 400; }
.hero-fig {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: min(72vh, 47rem);
  margin: 0;
  margin-right: var(--bleed);
  width: calc(100% - var(--bleed));
  isolation: isolate;
}
/* placa petróleo deslocada, cria o degrau de profundidade */
.hero-fig::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: clamp(1.4rem, 3vw, 2.8rem) auto clamp(-1.4rem, -3vw, -2.8rem) clamp(-1.4rem, -3vw, -2.8rem);
  width: 100%;
  background: linear-gradient(160deg, var(--petrol), color-mix(in srgb, var(--petrol) 70%, var(--ink)));
  box-shadow: var(--shadow-dark);
}
.hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 36%, rgba(11,60,58,.42)),
    linear-gradient(90deg, rgba(36,33,31,.22), transparent 34%);
  pointer-events: none;
}
.hero-fig picture {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-fig img {
  width: 100%;
  height: 114%;
  margin-top: -7%;
  object-fit: cover;
  object-position: 52% 50%;
  filter: contrast(1.02) saturate(1.02);
  will-change: transform;
}
.hero-fig figcaption {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: .08rem;
  bottom: auto;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: rgba(252,250,247,.96);
  font-size: var(--text-min);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ── Formação ─────────────────────────────── */
.creds {
  position: relative;
  z-index: 3;
  margin-top: clamp(-3.5rem, -5vw, -5.5rem);
  background:
    radial-gradient(120% 140% at 12% -20%, color-mix(in srgb, var(--petrol) 82%, var(--sand)), transparent 62%),
    linear-gradient(170deg, var(--petrol), color-mix(in srgb, var(--petrol) 64%, var(--ink)));
  color: var(--white);
  box-shadow: var(--shadow-lg);
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}
.creds::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252,250,247,.34), transparent);
}
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin: 0; }
.cred {
  position: relative;
  border-top: 1px solid rgba(252,250,247,.22);
  padding-top: 1.2rem;
}
.cred::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  width: 2.2rem;
  height: 2px;
  background: var(--sand);
  transform: scaleX(.42);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.75,.25,1);
}
.cred:hover::before { transform: scaleX(1); }
.cred dt { font-family: var(--ff-display); font-size: var(--step-1); line-height: 1.2; margin-bottom: .45rem; }
.cred dd { margin: 0; font-size: .87rem; line-height: 1.55; color: rgba(252,250,247,.96); }

/* ── Seções ───────────────────────────────── */
.sec { position: relative; padding-block: var(--sec); }
.sec--tint {
  background:
    radial-gradient(90% 70% at 88% 0%, color-mix(in srgb, var(--white) 70%, transparent), transparent 62%),
    var(--paper-warm);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent),
              inset 0 -1px 0 color-mix(in srgb, var(--ink) 7%, transparent);
}

.sec-head {
  display: grid; grid-template-columns: minmax(10rem, .62fr) minmax(0, 1.38fr);
  gap: var(--grid-gap); align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.sec-head > div { grid-column: 2; }
.sec-head h2 { font-size: var(--step-3); }
.sec-head .lede { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; max-width: 50ch; margin-top: 1.4rem; }
.section-mark {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: .2rem 0 0;
  color: var(--petrol);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-mark::after {
  content: "";
  width: clamp(2rem, 4vw, 4rem);
  height: 1px;
  margin-left: var(--space-xs);
  background: var(--line);
}
.section-mark span { color: var(--ink-mute); }
.section-mark--light { color: var(--sand); }
.section-mark--light span { color: rgba(252,250,247,.58); }
.section-mark--light::after { background: rgba(252,250,247,.2); }

/* ── Filosofia ─────────────────────────────── */
.stance {
  font-family: var(--ff-display); font-size: var(--step-2);
  line-height: 1.34; letter-spacing: -.015em; max-width: 34ch;
}
.stance + .stance-sub { margin-top: 1.5rem; color: var(--ink-soft); max-width: 46ch; }

/* dez frases curtas, em tom de manifesto: duas colunas desencontradas (a da direita
   desce meia linha), palavra-chave de cada frase em itálico petróleo */
.philo {
  --philo-drop: clamp(3rem, 6vw, 5.5rem);
  list-style: none; margin: 0; padding: 0 0 var(--philo-drop);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 7vw, 7rem); row-gap: clamp(2.6rem, 4.4vw, 4rem);
}
/* top, não transform/margin: não briga com o reveal .rv nem com a altura das linhas */
.philo li:nth-child(even) { position: relative; top: var(--philo-drop); }
.philo-n {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--ff-display); font-style: italic; font-size: 1.05rem; line-height: 1;
  font-variant-numeric: lining-nums; color: var(--petrol);
  margin-bottom: clamp(.8rem, 1.2vw, 1.1rem);
}
.philo-n::after {
  content: ""; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, var(--sand), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(.2,.75,.25,1) .25s;
}
.philo li.in .philo-n::after { transform: scaleX(1); }
.philo p {
  font-family: var(--ff-display); font-size: var(--step-2); line-height: 1.2;
  letter-spacing: -.015em; color: var(--ink); max-width: 21ch; text-wrap: balance;
}
.philo em { font-style: italic; color: var(--petrol); }

/* ── Moldura de imagem (passepartout) ─────── */
.frame {
  display: block;
  position: relative;
  padding: var(--frame-pad);
  background: linear-gradient(160deg, var(--white), color-mix(in srgb, var(--white) 82%, var(--paper-warm)));
  box-shadow: var(--shadow-lg);
}
.frame::after {
  content: "";
  position: absolute;
  inset: var(--frame-pad);
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(36,33,31,.09);
  pointer-events: none;
}
.frame > img, .frame picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: hidden;
}

/* ── Sobre ────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: minmax(17rem, .62fr) minmax(0, 1.38fr);
  gap: var(--grid-gap); align-items: center;
}
.about-visual { display: grid; gap: var(--space-xl); }
.about-fig {
  position: relative;
  margin-left: calc(var(--frame-pad) * -1);
  width: calc(100% + var(--frame-pad));
}
.about-fig .frame { position: relative; z-index: 1; }
.about-fig::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: clamp(-2.5rem, -5.5vw, -5.5rem);
  bottom: clamp(-2.5rem, -5.5vw, -5.5rem);
  width: 72%;
  aspect-ratio: 1;
  background: linear-gradient(210deg,
    color-mix(in srgb, var(--petrol) 26%, transparent),
    color-mix(in srgb, var(--petrol) 8%, transparent) 62%,
    transparent);
}
.about-fig .frame { overflow: hidden; }
.about-fig picture { display: block; overflow: hidden; }
.about-fig img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
  will-change: transform;
}
.about-body .first {
  font-family: var(--ff-display); font-size: var(--step-2);
  line-height: 1.32; letter-spacing: -.015em; margin-block: 0 1.4rem;
}
.about-body p + p { margin-top: 1.25rem; }
.about-body p:not(.first) { color: var(--ink-soft); }

.about-meta {
  margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem 2.5rem;
}
.about-meta div { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.about-meta b {
  display: block; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: .3rem;
}

/* ── Rinoplastia ──────────────────────────── */
.rino-grid {
  display: grid; grid-template-columns: minmax(10rem, .62fr) minmax(0, 1.38fr);
  gap: var(--grid-gap); align-items: start;
}
.rino-body { grid-column: 2; }
.rino-body p { color: var(--ink-soft); max-width: 52ch; }
.rino-body p + p { margin-top: 1.25rem; }
.rino-facts {
  position: relative;
  grid-column: 1; grid-row: 1;
  list-style: none;
  margin: 0;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  background: linear-gradient(180deg, var(--white), color-mix(in srgb, var(--white) 60%, var(--paper)));
  box-shadow: var(--shadow-md);
}
.rino-facts::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sand), transparent 78%);
}
.rino-facts li {
  display: grid; gap: .3rem;
  padding-block: 1.15rem; font-size: .92rem;
}
.rino-facts li + li { border-top: 1px solid var(--line); }
.rino-facts li:first-child { padding-top: 0; }
.rino-facts li:last-child { padding-bottom: 0; }
.rino-facts li span { color: var(--ink-soft); line-height: 1.5; }
.rino-facts b {
  font-family: var(--ff-display); font-size: var(--step-1);
  color: var(--petrol); font-weight: 400; line-height: 1.2;
}
.rino-links { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
/* rótulos informativos, não links: sem borda/pílula para não parecer tocável */
.tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.4;
}
.tag::before { content: ""; width: .32rem; height: .32rem; flex: none; border-radius: 50%; background: var(--sand); }

/* ── Respiração ───────────────────────────── */
.breathe-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
  gap: var(--grid-gap); align-items: center;
}
.breathe-fig {
  position: relative;
  justify-self: end;
  margin-right: calc(var(--frame-pad) * -1);
  width: min(calc(100% + var(--frame-pad)), 30rem);
}
.breathe-fig .frame { position: relative; z-index: 1; }
.breathe-fig::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto auto clamp(-1.2rem, -2.4vw, -2.4rem) clamp(-1.2rem, -2.4vw, -2.4rem);
  width: 48%;
  aspect-ratio: 1;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--petrol) 22%, transparent),
    color-mix(in srgb, var(--petrol) 7%, transparent) 62%,
    transparent);
}
.breathe-fig .frame { overflow: hidden; }
.breathe-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.breathe-body h2 { font-size: var(--step-3); }
.breathe-body .section-mark, .office-body .section-mark, .contact .section-mark { margin-bottom: var(--space-lg); }
.breathe-body p { margin-top: 1.5rem; color: var(--ink-soft); max-width: 46ch; }

.grp { margin-top: 2.2rem; }
.grp b {
  display: block; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: .8rem;
}
.grp .tags { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin: 0; padding: 0; list-style: none; }

/* ── Consultório ──────────────────────────── */
.office-grid { display: grid; grid-template-columns: minmax(18rem, .95fr) minmax(0, 1.05fr); gap: var(--grid-gap); align-items: center; }
/* Composição assimétrica: a paisagem ancora à esquerda, a retrato alta
   desce sobre o canto direito e a terceira sobe pela base — as peças se
   tocam, sem vão aberto no meio. */
.office-fig {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  /* a moldura recua a foto; compensamos para a IMAGEM encostar no gutter */
  margin-left: calc(var(--frame-pad) * -1);
  width: calc(100% + var(--frame-pad));
}
/* placa de cor atrás do conjunto: é ela que cria o plano de fundo */
.office-fig::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 26%;
  bottom: clamp(-1.5rem, -3vw, -3rem);
  width: 32%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(200deg,
    color-mix(in srgb, var(--petrol) 20%, transparent),
    color-mix(in srgb, var(--petrol) 6%, transparent) 64%,
    transparent);
}
.office-fig .frame { position: relative; z-index: 1; }
/* 1 — paisagem larga, ancora o topo à esquerda */
.office-fig .frame:nth-child(1) {
  grid-column: 1 / 10;
  grid-row: 1;
  z-index: 1;
}
.office-fig .frame:nth-child(1) img { aspect-ratio: 16 / 10; }

/* 2 — retrato alta: desce e cobre o canto direito da paisagem */
.office-fig .frame:nth-child(2) {
  grid-column: 8 / 13;
  grid-row: 1;
  margin-top: clamp(2.5rem, 5.5vw, 5rem);
  z-index: 3;
  box-shadow: var(--shadow-xl);
}
.office-fig .frame:nth-child(2) img { aspect-ratio: 3 / 4; }

/* 3 — retrato baixa: indentada à direita da 1, sobe e encosta na 2 */
.office-fig .frame:nth-child(3) {
  grid-column: 3 / 10;
  grid-row: 2;
  margin-top: clamp(-9rem, -19vw, -17rem);
  z-index: 2;
}
.office-fig .frame:nth-child(3) img { aspect-ratio: 5 / 4; }

.office-fig img { width: 100%; object-fit: cover; }
.office-body h2 { font-size: var(--step-3); }
.office-body p { margin-top: 1.5rem; color: var(--ink-soft); max-width: 46ch; }
.office-list { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.office-list li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding-block: 1.1rem; border-top: 1px solid var(--line); font-size: .95rem;
}
.office-list b {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500; padding-top: .18rem;
}

/* ── Contato ──────────────────────────────── */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(90% 110% at 86% 118%, color-mix(in srgb, var(--petrol) 60%, var(--ink)), transparent 66%),
    radial-gradient(70% 90% at 4% -10%, color-mix(in srgb, var(--ink) 80%, var(--sand)), transparent 62%),
    var(--ink);
  color: var(--white);
  padding-block: var(--sec);
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -12% auto auto;
  width: min(46rem, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sand) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .85fr); gap: var(--grid-gap); align-items: end; }
.contact h2 { font-size: var(--step-3); }
.contact h2 em { font-style: italic; color: var(--sand); }
.contact .lede { margin-top: 1.4rem; color: rgba(252,250,247,.78); max-width: 40ch; }
.contact-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.contact .btn { border-color: var(--white); background: var(--white); color: var(--ink); }
.contact .btn:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.contact .btn--ghost { background: transparent; color: var(--white); border-color: rgba(252,250,247,.3); }
.contact .btn--ghost:hover { background: transparent; border-color: var(--white); color: var(--white); }

.contact-info {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  background: rgba(252,250,247,.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(252,250,247,.12), 0 30px 70px -40px rgba(0,0,0,.7);
}
.contact-info div { border-top: 1px solid rgba(252,250,247,.18); padding-top: 1rem; }
.contact-info div:first-child { border-top: 0; padding-top: 0; }
.contact-info b {
  display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(252,250,247,.66); font-weight: 500; margin-bottom: .4rem;
}
.contact-info a, .contact-info span {
  display: inline-block;
  padding-block: .55rem;
  font-family: var(--ff-display); font-size: var(--step-1); line-height: 1.35; transition: color .3s;
}
.contact-info a:hover { color: var(--sand); }

/* ── Rodapé ───────────────────────────────── */
.site-foot {
  background: var(--ink); color: rgba(252,250,247,.62);
  border-top: 1px solid rgba(252,250,247,.12);
  padding-block: 2.4rem 3rem; font-size: .82rem;
}
.foot-in { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; align-items: center; justify-content: space-between; }
.foot-in a { display: inline-block; padding-block: .7rem; }
.foot-in a:hover { color: var(--white); }
.foot-note {
  margin-top: 1.7rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(252,250,247,.1);
  font-size: .76rem; line-height: 1.6; color: rgba(252,250,247,.56); max-width: 72ch;
}

/* ── WhatsApp flutuante ───────────────────── */
.wa {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 200; width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  background: var(--petrol); color: var(--white); border-radius: 50%;
  box-shadow: 0 2px 6px rgba(21,25,27,.16), 0 18px 40px -14px rgba(11,123,119,.55);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .35s, box-shadow .35s, opacity .25s ease;
}
.wa:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--petrol-lt);
  box-shadow: 0 4px 10px rgba(21,25,27,.18), 0 26px 56px -16px rgba(11,123,119,.68);
}
.wa svg { width: 1.6rem; height: 1.6rem; }
body.at-contact .wa { opacity: 0; pointer-events: none; transform: translateY(.75rem); }

/* ── Revelação ────────────────────────────── */
/* parallax: deslocamento controlado por --p (-1..1) via JS */
.px { --p: 0; --px-amp: 6%; }
.px .frame img {
  transform: translate3d(0, calc(var(--p) * var(--px-amp)), 0) scale(1.1);
  transform-origin: center;
}
.hero-fig.px img { transform: translate3d(0, calc(var(--p) * 3.5%), 0); }
@media (prefers-reduced-motion: reduce) {
  .px .frame img, .hero-fig.px img { transform: none !important; }
}

.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .09s; }
.rv[data-d="2"] { transition-delay: .18s; }
.rv[data-d="3"] { transition-delay: .27s; }

:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.contact :focus-visible, .site-foot :focus-visible, .wa:focus-visible { outline-color: var(--sand); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--petrol); color: var(--white); padding: .8rem 1.2rem; z-index: 999; }
.skip:focus { left: 0; }

/* ── Responsivo ───────────────────────────── */
@media (max-width: 1100px) {
  .hero {
    min-height: calc(100dvh - 4.75rem);
    overflow: hidden;
    background:
      radial-gradient(circle at 18% 12%, rgba(255,255,255,.88), transparent 28%),
      var(--paper);
  }
  .hero-stage {
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .88fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(2rem, 4vh, 3rem);
  }
  .hero-copy { width: 100%; padding-right: 0; }
  .hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.75rem); }
  .hero-fig {
    align-self: center;
    min-height: 0;
    height: min(62vh, 34rem);
    margin-right: 0;
    width: 100%;
  }
  .hero-fig::before { inset: clamp(1rem, 2vw, 1.6rem) auto clamp(-1rem, -2vw, -1.6rem) clamp(-1rem, -2vw, -1.6rem); }
  .hero-fig figcaption { display: none; }
  .credential { margin-right: 0; }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  body.menu-open { overflow: hidden; }
  body.menu-open .wa { opacity: 0; pointer-events: none; transform: translateY(.75rem); }
  .head-in {
    min-height: 4rem;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand action";
    gap: 1rem;
  }
  .head-actions { position: relative; z-index: 104; }
  .brand { grid-area: brand; position: relative; left: auto; z-index: 104; align-items: flex-start; transform: none; }
  .nav-shell {
    position: fixed;
    z-index: 103;
    inset: 0 0 0 auto;
    width: min(88vw, 27rem);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 6.5rem clamp(1.5rem, 6vw, 2.5rem) 2rem;
    background: var(--paper);
    box-shadow: -20px 0 55px rgba(36, 33, 31, .1);
    counter-reset: nav-item;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.2,.75,.2,1), visibility 0s linear .4s;
  }
  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav a {
    min-height: 3.8rem;
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--ff-display);
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    font-weight: 400;
    letter-spacing: -.02em;
    counter-increment: nav-item;
  }
  .nav a::before {
    content: "0" counter(nav-item);
    font-family: var(--ff-body);
    font-size: var(--text-min);
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--petrol);
  }
  .nav a::after { display: none; }
  .nav-mobile-cta {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: .6rem 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--petrol) 45%, transparent);
    color: var(--petrol) !important;
    font-size: .76rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }
  .nav-mobile-cta span { font-size: 1rem; }
  .nav-toggle {
    width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: 0 .75rem;
    border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
    background: transparent;
    color: var(--ink);
    font-family: var(--ff-body);
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease;
  }
  .nav-toggle-label { display: none; }
  .nav-toggle-icon { width: 1.1rem; height: .8rem; display: grid; align-content: space-between; }
  .nav-toggle-icon i {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .3s ease;
  }
  .nav-shell { right: 0; }
  .nav-backdrop {
    position: fixed;
    z-index: 102;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(28, 35, 33, .28);
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .site-head.open .nav-shell {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .site-head.open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .site-head.open .nav-toggle { background: transparent; border-color: color-mix(in srgb, var(--ink) 28%, transparent); color: var(--ink); }
  .site-head.open .nav-toggle-icon i:first-child { transform: translateY(.35rem) rotate(45deg); }
  .site-head.open .nav-toggle-icon i:last-child { transform: translateY(-.35rem) rotate(-45deg); }
  .site-head.open .brand-role { color: var(--ink-soft); }
  .site-head.open .head-cta { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 840px) {
  .sec-head, .about-grid, .rino-grid, .breathe-grid, .office-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .sec-head { gap: var(--space-lg); }
  .sec-head > div, .rino-body, .rino-facts { grid-column: 1; }
  .rino-facts { grid-row: auto; }
  .philo { grid-template-columns: 1fr; padding-bottom: 0; }
  .philo li:nth-child(even) { top: 0; }
  .about-grid, .breathe-grid, .office-grid, .contact-grid { align-items: start; }
  .about-visual { grid-template-columns: minmax(8rem, .38fr) minmax(16rem, .62fr); align-items: start; }
  .about-fig { grid-column: 2; max-width: 27rem; }
  .breathe-fig { width: min(100%, 26rem); margin-right: 0; justify-self: start; }
  .office-fig { width: min(100%, 42rem); margin-left: 0; }
  .contact-info { width: min(100%, 38rem); }
  .about-fig { margin-left: 0; width: 100%; }
  .office-fig { margin-left: 0; }
}

@media (max-width: 640px) {
  .head-actions { gap: .5rem; }
  .brand-name { font-size: 1.22rem; }
  .brand-role { margin-top: .25rem; font-size: .7rem; letter-spacing: .075em; }
  .head-cta { display: none; }
  .nav-shell { width: 100%; padding-top: 5.75rem; }
  .nav a { min-height: 3.7rem; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 1.16rem; }
}

@media (max-width: 720px) {
  .creds { margin-top: 0; }
  .creds-grid { grid-template-columns: 1fr; }
  /* moldura mais fina e sem sobreposição em telas estreitas */
  .frame { padding: clamp(.35rem, 1.4vw, .55rem); }
  /* mobile: grid simples 1 + 2, sem sobreposição */
  .office-fig { column-gap: .7rem; row-gap: .7rem; }
  .office-fig::before { display: none; }
  .office-fig .frame:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  .office-fig .frame:nth-child(2) { grid-column: 1 / 7; grid-row: 2; margin-top: 0; }
  .office-fig .frame:nth-child(3) { grid-column: 7 / 13; grid-row: 2; margin-top: 0; }
  .office-fig .frame:nth-child(2) img,
  .office-fig .frame:nth-child(3) img { aspect-ratio: 4 / 5; }
  .office-list li, .rino-facts li { grid-template-columns: 1fr; gap: .25rem; }
  .hero { min-height: calc(100dvh - 4.6rem); }
  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    min-height: calc(100dvh - 4.6rem);
    height: auto;
    padding-top: 1.5rem;
    padding-bottom: 0;
  }
  .hero-place span { width: 3.5rem; }
  .hero h1 { margin-top: 1rem; font-size: clamp(2.05rem, 8.6vw, 2.6rem); line-height: .98; }
  .hero-place { letter-spacing: .2em; }
  .hero-lede { margin-top: 1rem; font-size: 1rem; line-height: 1.55; }
  .credential { margin-top: .9rem; padding-top: .75rem; font-size: .75rem; letter-spacing: .08em; line-height: 1.55; }
  .btn { font-size: .88rem; }
  .contact-info a { padding-block: .7rem; }
  .foot-note { font-size: .82rem; }
  /* folga para o WhatsApp flutuante não cobrir a última linha do rodapé */
  .site-foot { padding-bottom: 5.5rem; }
  .hero-cta { align-items: stretch; margin-top: 1rem; }
  .hero-cta .btn:first-child { width: 100%; min-width: 0; justify-content: center; }
  .hero-cta .btn { min-height: 3.25rem; }
  .hero-cta .btn--ghost { display: none; }
  .hero-fig {
    width: calc(100% + var(--gut) * 2);
    min-height: 0;
    height: auto;
    margin-left: calc(var(--gut) * -1);
    margin-right: calc(var(--gut) * -1);
  }
  .hero-fig::before { display: none; }
  .hero-fig picture { box-shadow: var(--shadow-md); }
  .hero-fig img { height: 100%; margin-top: 0; }
  .hero::after { display: none; }
  .hero-fig picture { aspect-ratio: 4 / 3; }
  .hero-fig img { object-position: 50% 22%; }
  .hero-fig figcaption { display: none; }
  .about-visual { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about-fig { grid-column: 1; width: min(82vw, 24rem); }
  .section-mark::after { flex: 1; width: auto; max-width: 4rem; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .hero-stage { padding-top: 1.15rem; gap: 1rem; }
  .hero-place { font-size: .66rem; }
  .hero h1 { font-size: clamp(1.85rem, 8.2vw, 2.15rem); }
  .hero-lede { font-size: 1rem; }
  .credential { font-size: .72rem; letter-spacing: .06em; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .hero-stage { padding-block: 1.5rem; }
  .hero h1 { margin-top: 1.25rem; font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
  .hero-lede { margin-top: 1.2rem; }
  .credential { margin-top: 1rem; }
  .hero-cta { margin-top: 1.25rem; }
  .hero-fig { min-height: calc(100dvh - 8rem); }
}

/* ── V3: ajustes pedidos pela cliente ─────── */
/* "como você respira" ganha destaque na abertura do Critério */
.sec-head .lede .hl {
  position: relative; display: inline-block; white-space: nowrap;
  font-family: var(--ff-display); font-style: italic; font-weight: 500;
  font-size: 1.22em; line-height: 1; letter-spacing: -.01em;
  color: var(--petrol); padding-bottom: .12em;
}
/* linha de ar: desenha ao revelar a seção e depois "respira" devagar */
.hl-wave {
  position: absolute; left: -.05em; right: -.05em; bottom: -.42em;
  width: calc(100% + .1em); height: .5em; overflow: visible;
  transform-origin: 50% 50%;
  clip-path: inset(-50% 100% -50% 0);
  transition: clip-path 1.6s cubic-bezier(.45,.05,.25,1) .7s;
}
.rv.in .hl-wave { clip-path: inset(-50% -2% -50% 0); }
.hl-wave path {
  fill: none; stroke: var(--sand); stroke-width: 2.4; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.rv.in .hl-wave { animation: hl-breathe 5.5s ease-in-out 2.4s infinite; }
@keyframes hl-breathe {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(.45); opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-wave { transition: none; clip-path: none; }
  .rv.in .hl-wave { animation: none; }
}
/* Rinoplastia: fatos em coluna aberta, sem card (como na V2) */
.rino-facts { padding: 0; background: transparent; box-shadow: none; }
.rino-facts::before { content: none; }
.rino-facts li { padding-block: 1.3rem; gap: .35rem; }
.rino-facts li span { line-height: 1.55; }
.rino-facts b { font-size: clamp(1.8rem, 2.2vw, 2.2rem); }

/* ── V3: placeholders (conteúdo a receber da cliente) ── */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; padding: 1.5rem; text-align: center;
  background: repeating-linear-gradient(135deg, var(--paper-warm) 0 12px, color-mix(in srgb, var(--paper-warm) 55%, var(--white)) 12px 24px);
  outline: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); outline-offset: -1px;
}
.ph--photo { width: 100%; aspect-ratio: 4 / 3; }
.ph-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol); background: var(--white); padding: .35rem .7rem; line-height: normal;
}
.ph-text { font-size: .9rem; color: var(--ink-soft); max-width: 22ch; line-height: 1.5; }

/* ── Resultados: faixa de pares em movimento ─ */
.ba { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.ba .sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.ba-run, .tm-run {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ba-run { padding-block: .4rem .8rem; }
.ba-row { display: flex; gap: clamp(1rem, 1.8vw, 1.5rem); width: max-content; animation: run-x 150s linear infinite; }
.ba-run:hover .ba-row, .ba-run:focus-within .ba-row, .ba-run.paused .ba-row { animation-play-state: paused; }
@keyframes run-x { to { transform: translateX(calc(-50% - clamp(1rem, 1.8vw, 1.5rem) / 2)); } }
.ba-card { flex: none; margin: 0; transition: opacity .45s cubic-bezier(.2,.75,.25,1); }
/* largura segue a proporção de cada foto: nada é cortado */
.ba-pair {
  position: relative; display: flex;
  height: clamp(16rem, 30vw, 24rem);
  overflow: hidden; border-radius: 4px; background: #0d0d0d; box-shadow: var(--shadow-sm);
}
.ba-pair picture { display: block; flex: none; height: 100%; }
.ba-pair img { display: block; width: auto; max-width: none; height: 100%; }
.ba-pair::before { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(180deg, transparent, rgba(10,10,10,.55)); pointer-events: none; }
.ba-pair::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(252,250,247,.6); }
.ba-lb { position: absolute; bottom: .8rem; z-index: 1; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: normal; }
.ba-lb--a { left: .9rem; color: rgba(252,250,247,.82); }
.ba-lb--d { left: calc(50% + .9rem); color: var(--sand); }
.run-hint { text-align: center; font-size: .78rem; color: var(--ink-mute); margin-top: .6rem; line-height: normal; }
@media (hover: hover) {
  .ba-run:hover .ba-card { opacity: .5; }
  .ba-run .ba-card:hover { opacity: 1; }
}

/* ── Pacientes: duas faixas de depoimentos ─── */
#pacientes .sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.tm-run { display: grid; gap: 1.25rem; padding-block: .5rem 1.5rem; }
.tm-row { display: flex; align-items: center; width: max-content; gap: clamp(1.25rem, 2.4vw, 2.25rem); padding-block: .9rem; animation: tm-x 90s linear infinite; }
.tm-row--rev { animation-direction: reverse; animation-duration: 110s; }
.tm-run:hover .tm-row, .tm-run:focus-within .tm-row, .tm-run.paused .tm-row { animation-play-state: paused; }
@keyframes tm-x { to { transform: translateX(calc(-50% - clamp(1.25rem, 2.4vw, 2.25rem) / 2)); } }
/* recortes de jornal: tamanhos diferentes, papel levemente torto, fio no topo */
.tm-card {
  flex: none; margin: 0; position: relative;
  background: linear-gradient(175deg, var(--white), color-mix(in srgb, var(--white) 70%, var(--paper-warm)));
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .9rem;
  border-top: 3px double color-mix(in srgb, var(--ink) 55%, transparent);
  transition: transform .5s cubic-bezier(.2,.75,.25,1), box-shadow .5s cubic-bezier(.2,.75,.25,1);
}
.tm-card:nth-child(4n+1) { transform: rotate(-1.1deg); }
.tm-card:nth-child(4n+2) { transform: rotate(.7deg) translateY(.6rem); }
.tm-card:nth-child(4n+3) { transform: rotate(-.4deg) translateY(-.5rem); }
.tm-card:nth-child(4n+4) { transform: rotate(1.3deg); }
@media (hover: hover) {
  .tm-card:hover { transform: none; box-shadow: var(--shadow-md); }
}
.tm-card--sm { width: clamp(13rem, 17vw, 15.5rem); }
.tm-card--md { width: clamp(16rem, 22vw, 20rem); }
.tm-card--lg { width: clamp(19rem, 30vw, 27rem); padding: 1.7rem 1.9rem 1.5rem; }
.tm-card blockquote { margin: 0; }
.tm-hi { font-family: var(--ff-display); line-height: 1.22; color: var(--ink); letter-spacing: -.01em; }
.tm-card--sm .tm-hi { font-size: 1.12rem; }
.tm-card--md .tm-hi { font-size: 1.4rem; }
.tm-card--lg .tm-hi { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); line-height: 1.12; }
.tm-note { font-size: .8rem; color: var(--ink-mute); margin-top: .8rem; line-height: normal; }

@media (max-width: 960px) {
  .tm-card--sm { width: 58vw; }
  .tm-card--md { width: 68vw; }
  .tm-card--lg { width: 80vw; }
}
/* toque: cada faixa vira rolagem horizontal nativa (arrastável); o avanço
   automático é feito por JS, que pausa enquanto o dedo está na faixa */
@media (hover: none) {
  .ba-row, .tm-row {
    width: auto; min-width: 0; animation: none;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ba-row::-webkit-scrollbar, .tm-row::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-run, .tm-run { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ba-row, .tm-row { animation: none; }
  .ba-row [aria-hidden="true"], .tm-row [aria-hidden="true"] { display: none; }
}

/* mobile: texto dos depoimentos (declarado depois das regras-base de .tm-*) */
@media (max-width: 720px) {
  .tm-note { font-size: .85rem; }
}

/* Filosofia — modelo 7 aprovado */

#criterio:has(.fz) { overflow: hidden; isolation: isolate; }
#criterio:has(.fz) > .wrap { position: relative; }
.fz-bg {
  position: absolute; z-index: -1; inset: 0 auto 0 0; width: min(40%, 38rem); pointer-events: none;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent), linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, #000 62%, transparent), linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.fz-bg picture, .fz-bg img { display: block; width: 100%; height: 100%; }
.fz-bg img { object-fit: cover; object-position: 100% 50%; }
.fz { display: grid; grid-template-columns: minmax(10rem, .62fr) minmax(0, 1.38fr); gap: var(--grid-gap); }
.fz-cols { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: clamp(1.6rem, 2.6vw, 2.2rem); }
.fz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.1rem, 1.8vw, 1.5rem); align-content: start; }
.fz-list + .fz-list { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.75rem); margin-left: clamp(1.5rem, 3vw, 2.75rem); }
.fz-list li { display: grid; grid-template-columns: clamp(3.2rem, 4.4vw, 4.2rem) minmax(0, 1fr); align-items: start; column-gap: clamp(.7rem, 1.2vw, 1.1rem); }
.fz-n {
  font-family: var(--ff-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 1.8vw, 3.1rem); line-height: .9; letter-spacing: -.02em;
  color: color-mix(in srgb, var(--petrol) 80%, transparent); font-variant-numeric: lining-nums; font-variation-settings: "opsz" 36;
}
.fz-list p { font-family: var(--ff-display); font-size: clamp(1.02rem, .92rem + .36vw, 1.22rem); line-height: 1.3; padding-top: .25rem; font-variation-settings: "opsz" 36; }
.fz-list em { font-style: italic; color: var(--petrol); }
#criterio:has(.fz) .sec-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
@media (max-width: 840px) {
  /* celular: a escultura fica atrás do título, no alto à direita, bem apagada */
  .fz-bg { inset: 0 0 auto auto; width: 78%; height: 30rem; opacity: .28;
    -webkit-mask-image: linear-gradient(270deg, #000 35%, transparent), linear-gradient(180deg, #000 45%, transparent);
            mask-image: linear-gradient(270deg, #000 35%, transparent), linear-gradient(180deg, #000 45%, transparent); }
  .fz-bg img { object-position: 85% 40%; }
  .fz { grid-template-columns: 1fr; }
  .fz-cols { grid-column: 1; grid-template-columns: 1fr; }
  .fz-list + .fz-list { border-left: 0; padding-left: 0; margin-left: 0; margin-top: clamp(1.1rem, 1.8vw, 1.5rem); }
  .fz-list li { grid-template-columns: 2.9rem minmax(0, 1fr); }
  .fz-n { font-size: 2.1rem; }
  .fz-list p { font-size: 1.06rem; padding-top: .15rem; }
}
