:root {
  --paper: #f9f5ee;
  --ink: #172923;
  --green: #173b31;
  --deep: #102c25;
  --muted: #535f55;
  --sage: #526956;
  --gold: #daba95;
  --line: #d9d8cb;
  --radius: 6px;
}
h1, h2 { text-wrap: balance; }
main { overflow: clip; }
.site-header { background: #f9f5ee; border-color: #bcb4a650; }
.header-inner { min-height: 83px; }
.header-inner .wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-content: center;
  width: 43px;
  height: 47px;
  border: 1px solid #8b795e;
  border-radius: 50% 50% 48% 48%;
  color: var(--green);
  font: italic 1.55rem/1 var(--serif);
  letter-spacing: -.16em;
  padding-right: .15em;
}
.brand-type { display: grid; gap: 3px; }
.brand-type small { margin: 0; }
.site-nav { gap: clamp(16px, 2.5vw, 35px); }
.site-nav > a:not(.btn) { font-size: .85rem; }
.btn { border-radius: 2px; gap: 18px; }
.scroll-progress {
  position: fixed;
  width: 100%;
  inset: 0 auto auto 0;
  height: 3px;
  transform-origin: left;
  transform: scaleX(0);
  background: #b7976d;
  z-index: 34;
  pointer-events: none;
}
.accent-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  margin: 0 10px 4px 0;
  background: #8a7658;
}
.cinema-hero {
  position: relative;
  isolation: isolate;
  background: #dbcbba;
  min-height: clamp(560px, calc(100svh - 154px), 780px);
}
.cinema-shot, .cinema-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cinema-shot { overflow: hidden; }
.cinema-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
}
.cinema-hero::after {
  content: "";
  background: linear-gradient(90deg, #f7eee4 0%, #f7eee4ef 17%, #f7eee4ba 36%, #f7eee45c 52%, transparent 64%);
}
.cinema-layout {
  min-height: inherit;
  display: flex;
  align-items: center;
  position: relative;
}
.cinema-copy {
  width: min(55%, 690px);
  padding-block: 66px 84px;
}
.cinema-copy h1 {
  color: #18362b;
  font-size: clamp(3.45rem, 5.45vw, 6.2rem);
  line-height: .99;
  letter-spacing: -.057em;
  text-wrap: initial;
}
.cinema-copy h1 em { display: block; color: #415b48; }
.cinema-copy .lead { max-width: 45ch; margin-top: 26px; color: #2c4035; }
.cinema-credentials { margin-top: 26px; font-size: .77rem; color: #37483e; }
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  color: var(--paper);
  background: #132e28cc;
  font-size: .74rem;
}
.scroll-cue span {
  width: 1px;
  height: 16px;
  background: #e7d9c9;
  animation: cue 2.5s ease-in-out infinite;
}
@keyframes cue { 50% { transform: scaleY(.44); } }
.symptoms-section { background: #f0e9df; }
.symptoms-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
}
.symptoms-copy h2, .profile-copy h2 { font-size: clamp(2.7rem, 4.5vw, 5rem); text-wrap: initial; }
.symptoms-copy .lead, .profile-copy .lead { margin: 22px 0 24px; }
.symptoms-visual { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; }
.symptoms-visual figure { position: relative; }
.symptoms-visual img { aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.symptoms-index {
  list-style: none;
  padding: 0 0 0 18px;
  margin: 0;
}
.symptoms-index a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  padding-block: 18px;
  border-bottom: 1px solid #b9b4a7;
  font-size: .89rem;
  font-weight: 600;
}
.symptoms-index a:hover { color: #4f6f57; }
.symptoms-index a span, .diagnostic-layout .exam-item span { color: #617860; }
.field-section { background: var(--deep); color: var(--paper); }
.field-section h2 em { color: #cbd7c5; }
.field-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 35px; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-controls button {
  width: 51px;
  height: 51px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d9e4d676;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: background .2s, color .2s;
}
.carousel-controls button:hover { background: var(--paper); color: var(--green); }
.carousel-controls button:disabled { opacity: .45; cursor: default; }
.topic-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 37%;
  gap: 16px;
  padding: 0 0 14px;
  margin: 0;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a59175 #ffffff17;
  overscroll-behavior-inline: contain;
}
.topic-slide { scroll-snap-align: start; min-width: 0; }
.topic-card {
  position: relative;
  isolation: isolate;
  display: flex;
  aspect-ratio: .95;
  min-height: 320px;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius);
  background: #314d38;
}
.topic-card:focus-visible { outline-offset: -5px; outline-color: #fff; }
.topic-card img, .topic-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.topic-card img { object-fit: cover; transition: transform .6s cubic-bezier(.2,.65,.25,1); }
.topic-card:hover img { transform: scale(1.06); }
.topic-card::after { content: ""; background: linear-gradient(0deg, #102b23 1%, #102b23c9 36%, #102b2306 74%); }
.topic-card-content { padding: 23px clamp(18px, 3vw, 34px); }
.topic-card h3 { color: white; font-size: clamp(1.75rem, 3.4vw, 3.3rem); }
.topic-card p { font-size: .9rem; margin-top: 9px; max-width: 32ch; color: #f2eee7; }
.card-action { display: inline-flex; gap: 12px; font-size: .8rem; border-bottom: 1px solid #e9d5b8ab; padding: 3px 0; margin-top: 17px; }
.carousel-footer { padding-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.carousel-count { color: #e4cfb0; font: .84rem var(--sans); font-variant-numeric: tabular-nums; }
.profile-layout { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(32px, 8vw, 125px); }
.profile-image {
  position: relative;
  isolation: isolate;
  padding: 0 14px 14px 0;
}
.profile-image::after {
  content: "";
  position: absolute;
  inset: 14px 0 0 14px;
  z-index: -1;
  border: 1px solid #a99478;
  border-radius: 46% 46% var(--radius) var(--radius);
}
.profile-image img {
  aspect-ratio: .86;
  object-fit: cover;
  object-position: center 27%;
  border-radius: 46% 46% var(--radius) var(--radius);
}
.profile-credentials { margin: 0 0 23px; }
.profile-credentials div { display: grid; grid-template-columns: 92px 1fr; gap: 13px; border-top: 1px solid var(--line); padding: 12px 0; }
.profile-credentials dt { color: var(--green); font-size: .83rem; font-weight: 600; }
.profile-credentials dd { margin: 0; font-size: .88rem; color: var(--muted); }
.journey-editorial { background: #e9ede4; }
.journey-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(35px, 9vw, 140px); }
.journey-visual { position: sticky; top: 112px; }
.journey-visual figure, .diagnostic-layout figure { position: relative; }
.journey-visual img, .diagnostic-layout figure img { border-radius: var(--radius); }
.journey-beats { margin: 30px 0; }
.journey-beats article { border-top: 1px solid #bac5b7; padding: 23px 0; }
.journey-beats h3 { margin-bottom: 9px; }
.journey-beats p { max-width: 50ch; color: var(--muted); }
figure figcaption {
  font-size: .72rem;
  color: #f9f5ee;
  background: #18332bd9;
  padding: 4px 9px;
  position: absolute;
  bottom: 8px;
  right: 8px;
}
.diagnostic-layout { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(35px, 7vw, 100px); }
.diagnostic-layout .lead { margin: 20px 0 28px; }
.diagnostic-layout figure img { aspect-ratio: 2.3; object-fit: cover; object-position: center 67%; }
.diagnostic-layout .exam-item { position: relative; padding-right: 32px; padding-inline-start: 4px; transition: padding-inline-start .25s; }
.diagnostic-layout .exam-item:hover { padding-inline-start: 14px; }
.diagnostic-layout .exam-item span { position: absolute; right: 3px; top: 24px; }
.diagnostic-layout .exam-list > .text-link { margin-top: 20px; }
.reading-section { background: #f0e9df; }
.reading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reading-card { border: 1px solid #d7cbba; background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform .25s; }
.reading-card:hover { transform: translateY(-5px); }
.reading-card img { aspect-ratio: 1.75; object-fit: cover; }
.reading-card h3 { padding: 23px; line-height: 1.16; font-size: clamp(1.4rem, 2.2vw, 2.1rem); }
.final-cta h2 { text-wrap: initial; max-width: 15ch; }
.inner-hero { background: linear-gradient(120deg, #f8f1e6, #eeeee4); }
.inner-hero .wrap { max-width: 1360px; }
.inner-grid { grid-template-columns: 1.13fr .87fr; gap: clamp(26px, 5vw, 70px); }
.inner-grid h1 {
  max-width: 17ch;
  font-size: clamp(2.75rem, 4.25vw, 4.75rem);
  letter-spacing: -.044em;
  text-wrap: initial;
}
.inner-grid .lead { max-width: 52ch; }
.service-photo { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); }
.service-photo img { aspect-ratio: 1.16; object-fit: cover; }
.service-photo:has(img[src*="beatriz-editorial"]) img { object-position: center 28%; }
.service-photo img { animation: media-arrival .9s ease-out both; }
.inner-page main > section > .wrap > .content-grid:last-child { border-top: 1px solid var(--line); padding-top: 30px; }
.inner-page .panel { border: 1px solid #d3dccf; border-radius: var(--radius); }
.inner-page .journey:has(.bio-grid) { background: #e8ede3; }
.home-page .cinema-copy { animation: headline-arrival .75s cubic-bezier(.2,.65,.25,1) both; }
@keyframes headline-arrival { from { opacity: .8; transform: translateY(10px); } }
@keyframes media-arrival { from { transform: scale(1.055); } }
.reveal-ready {
  opacity: .025;
  transform: translateY(28px);
  transition: opacity .65s ease-out, transform .7s cubic-bezier(.2,.65,.25,1);
}
.reveal-ready.is-in-view, .reveal-ready:focus-within { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .cinema-copy { width: 60%; }
  .cinema-copy h1 { font-size: clamp(3rem, 6.4vw, 4.7rem); }
  .hero-break { display: none; }
  .topic-rail { grid-auto-columns: 48%; }
  .symptoms-visual { grid-template-columns: 1fr; gap: 9px; }
  .symptoms-index { padding-left: 0; }
  .symptoms-visual img { aspect-ratio: 2; object-position: center 58%; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 72px; }
  .header-inner .wordmark { gap: 9px; }
  .brand-mark { width: 35px; height: 40px; font-size: 1.32rem; }
  .brand-type strong { font-size: 1.23rem; }
  .brand-type small { font-size: .59rem; }
  .cinema-hero { min-height: 0; background: #eadbca; }
  .cinema-hero::after { display: none; }
  .cinema-layout { display: block; }
  .cinema-copy { width: 100%; padding: 30px 0; }
  .cinema-copy h1 { font-size: clamp(2.85rem, 9.4vw, 4rem); }
  .cinema-copy .lead { margin-top: 18px; font-size: .96rem; }
  .cinema-copy .actions { margin-top: 22px; gap: 17px; }
  .cinema-copy .btn { padding-inline: 18px; }
  .cinema-copy .text-link { font-size: .82rem; }
  .cinema-credentials { margin-top: 20px; font-size: .69rem; }
  .cinema-shot { display: block; position: relative; inset: auto; height: clamp(235px, 69vw, 415px); }
  .cinema-shot img { object-position: center 23%; }
  .scroll-cue { display: none; }
  .symptoms-layout, .profile-layout, .journey-layout, .diagnostic-layout { grid-template-columns: minmax(0, 1fr); }
  .symptoms-visual img { aspect-ratio: 1.62; }
  .field-heading { flex-wrap: wrap; align-items: start; margin-bottom: 24px; gap: 16px; }
  .field-heading h2 { font-size: clamp(2.25rem, 9vw, 3.1rem); }
  .carousel-controls button { width: 44px; height: 44px; }
  .topic-rail { grid-auto-columns: 83%; gap: 10px; }
  .topic-card { min-height: 290px; }
  .profile-image { max-width: 450px; margin-inline: auto; }
  .journey-visual { position: relative; top: 0; }
  .journey-visual img { aspect-ratio: 1.48; object-fit: cover; object-position: center 62%; }
  .reading-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .reading-card { display: grid; grid-template-columns: 36% 1fr; align-items: stretch; }
  .reading-card img { min-height: 100%; height: 100%; aspect-ratio: 1; }
  .reading-card h3 { align-self: center; padding: 14px; }
  .inner-grid { grid-template-columns: minmax(0,1fr); }
  .inner-grid h1 { font-size: clamp(2.4rem, 8vw, 3.65rem); }
  .service-photo img { aspect-ratio: 1.5; object-position: center 42%; }
  .home-page .final-cta { background: var(--deep); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .reveal-ready { opacity: 1; transform: none; }
}

/* Mantém a identificação da marca e o acesso ao menu em telas estreitas. */
@media (max-width: 365px) {
  .header-inner { gap: 8px; padding-inline: 16px; }
  .brand-type strong { font-size: 1.1rem; }
  .brand-type small { letter-spacing: .12em; }
  .header-inner .wordmark { gap: 7px; }
  .menu-toggle { padding-inline: 9px; font-size: .85rem; }
  .cinema-copy .actions { gap: 12px; }
  .cinema-copy .btn { padding-inline: 13px; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 681px) {
  @supports (animation-timeline: scroll()) {
    .cinema-shot img {
      animation: photo-travel linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 770px;
    }
    @keyframes photo-travel {
      from { transform: scale(1); }
      to { transform: translateY(3%) scale(1.085); }
    }
  }
}
@media (max-width: 680px) {
  .cinema-shot img { object-position: center 9%; }
  .inner-grid:has(.service-photo) { gap: 23px; }
  .service-photo { grid-row: 1; }
  .service-photo img { aspect-ratio: 2.16; }
  .service-photo:has(img[src*="beatriz-editorial"]) img { object-position: center 18%; }
}
