@media (prefers-reduced-motion: no-preference) {
  .site-ready .header {
    animation: header-arrival 560ms cubic-bezier(.2, .8, .2, 1) both;
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 680ms cubic-bezier(.2, .8, .2, 1) var(--motion-delay, 0ms),
      transform 680ms cubic-bezier(.2, .8, .2, 1) var(--motion-delay, 0ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .technology-card.reveal {
    transform: translateY(20px) scale(.985);
  }

  .technology-card.reveal.is-visible {
    transform: translateY(0) scale(1);
  }

  .exam-card,
  .button,
  .header nav a,
  .footer-grid a {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
      transform 180ms ease, box-shadow 180ms ease;
  }

  .exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgb(49 43 37 / 12%);
  }

  .button:hover {
    transform: translateY(-2px);
  }

  .carousel {
    min-height: 0;
  }

  .carousel .slide,
  .carousel .slide[hidden] {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 650ms ease, transform 4s ease;
    pointer-events: none;
  }

  .carousel .slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}

/* Dimensões fluidas e pontos de quebra para notebook, tablet e celular. */
html,
body {
  overflow-x: clip;
}

.carousel {
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.carousel .slide,
.carousel .slide[hidden] {
  z-index: 0;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(247 244 239 / 94%) 0%, rgb(247 244 239 / 84%) 30%, rgb(247 244 239 / 38%) 50%, transparent 69%);
}

.carousel-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(28px, 6.5vw, 104px);
  width: min(35vw, 510px);
  transform: translateY(-50%);
  color: var(--ink);
}

.carousel-eyebrow {
  margin: 0 0 14px;
  color: #786548;
  font-size: clamp(.72rem, 1vw, .9rem);
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.carousel-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.carousel-description {
  max-width: 42ch;
  margin: clamp(14px, 1.8vw, 24px) 0;
  font-size: clamp(.88rem, 1.25vw, 1.2rem);
  line-height: 1.5;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: clamp(.78rem, 1vw, .95rem);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.banner-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.carousel .previous,
.carousel .next,
.carousel .slide-count {
  z-index: 3;
}

@media (min-width: 1680px) {
  .carousel {
    max-width: 1640px;
    margin-inline: auto;
  }

  .section:not(.technology-showcase) {
    max-width: 1360px;
  }

  .detail-content {
    max-width: 1020px;
  }
}

@media (max-width: 900px) {
  .section {
    padding-inline: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 52px;
  }

  .exam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    gap: 36px;
    padding-inline: 32px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 58px 28px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    max-width: 760px;
    padding-block: 50px;
  }

  .detail-hero img {
    height: clamp(260px, 54vw, 430px);
  }

  .detail-content {
    max-width: 760px;
    padding-inline: 28px;
  }

  .technology-showcase .technology-card {
    min-height: clamp(440px, 65vw, 560px);
  }
}

@media (max-width: 780px) {
  .header {
    padding: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    width: 190px;
    height: 52px;
  }

  .menu-toggle {
    display: block;
    border: 1px solid var(--line);
    padding: 10px 14px;
    background: transparent;
  }

  .header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .carousel {
    margin-inline: 12px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 48px 22px;
  }

  .intro p,
  .mission p {
    font-size: 1.05rem;
  }

  .exam-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .exam-grid {
    margin-top: 30px;
  }

  .contact-grid {
    gap: 30px;
  }

  .detail-hero {
    gap: 30px;
    padding: 40px 22px;
  }

  .detail-content {
    padding: 12px 22px 56px;
  }

  footer {
    padding: 40px 22px 25px;
  }
}

@media (max-width: 640px) {
  .technology-cards {
    grid-template-columns: 1fr;
  }

  .technology-showcase .technology-card {
    min-height: 0;
  }

  .technology-showcase .technology-card img {
    max-width: 320px;
  }
}

@media (max-width: 420px) {
  .header,
  .section,
  .detail-hero,
  .detail-content,
  footer {
    padding-inline: 18px;
  }

  .logo {
    width: 170px;
    height: 47px;
  }

  .carousel {
    margin-inline: 8px;
  }

  .carousel button {
    width: 30px;
    height: 34px;
    font-size: 1.45rem;
  }

  .previous { left: 6px; }
  .next { right: 6px; }

  .slide-count {
    bottom: 6px;
    right: 6px;
  }

  .technology-showcase {
    padding-inline: 8px;
  }

  .technology-overview {
    min-height: 330px;
    padding-inline: 24px;
  }

  .technology-showcase .technology-card {
    padding-inline: 20px;
  }

  .actions .button {
    width: 100%;
    min-height: 48px;
  }
}

@keyframes header-arrival {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Home: reproduz a composição em painéis da seção de tecnologia do site atual. */
.technology-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 2fr);
  gap: 14px;
  max-width: none;
  margin: 0 auto 64px;
  padding: 0 4px;
  border: 0;
  position: relative;
  text-align: center;
}

.technology-overview,
.technology-showcase .technology-card {
  border: 0;
  border-radius: 19px;
  background: #eee8dc;
}

.technology-overview {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 92px) clamp(30px, 5vw, 76px);
}

.technology-overview h2 {
  margin: 0 0 34px;
  font-size: clamp(3.3rem, 6.8vw, 6.2rem);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.07em;
}

.technology-overview .lead {
  max-width: 470px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.35vw, 1.23rem);
  line-height: 1.62;
}

.technology-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.technology-showcase .technology-card {
  display: grid;
  min-height: 540px;
  grid-template-rows: clamp(92px, 7vw, 112px) clamp(150px, 13vw, 200px) 1fr;
  row-gap: 0;
  align-items: center;
  justify-items: center;
  padding: clamp(30px, 3.8vw, 58px) clamp(22px, 2.4vw, 42px);
}

.technology-showcase .technology-card h3 {
  width: 100%;
  margin: 0 0 32px;
  font-size: clamp(1.8rem, 3.15vw, 3.25rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.055em;
}

.technology-showcase .technology-card h3 a {
  color: inherit;
}

.technology-showcase .technology-card img {
  width: 82%;
  max-width: none;
  height: clamp(150px, 13vw, 200px);
  margin: 0;
  align-self: start;
  transform: translateY(-4px);
  object-fit: contain;
  mix-blend-mode: normal;
}

.technology-showcase .technology-card p {
  max-width: 390px;
  margin: 0;
  align-self: start;
  text-align: center;
  font-size: clamp(.94rem, 1.18vw, 1.08rem);
  line-height: 1.58;
}

@media (min-width: 901px) {
  .technology-overview {
    position: sticky;
    top: 24px;
    min-height: calc(100svh - 48px);
    align-self: start;
  }

  .technology-overview.is-released {
    position: absolute;
    top: var(--release-top);
    left: var(--release-left);
    width: var(--release-width);
    z-index: 1;
  }

  .technology-showcase.overview-released::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    min-height: 1px;
  }
}

@media (max-width: 900px) {
  .technology-showcase {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .technology-overview {
    min-height: 430px;
  }
}

@media (max-width: 600px) {
  .technology-cards {
    grid-template-columns: 1fr;
  }

  .technology-overview {
    min-height: 360px;
  }

  .technology-overview h2 {
    font-size: clamp(3.7rem, 18vw, 5rem);
  }

  .technology-showcase .technology-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .technology-showcase .technology-card {
    grid-template-rows: auto 190px auto;
    row-gap: 18px;
  }

  .technology-showcase .technology-card img {
    width: 92%;
    height: 190px;
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .carousel-copy {
    left: clamp(24px, 6vw, 54px);
    width: min(45vw, 420px);
  }

  .carousel::after {
    background: linear-gradient(90deg, rgb(247 244 239 / 94%) 0%, rgb(247 244 239 / 80%) 43%, rgb(247 244 239 / 20%) 68%, transparent 84%);
  }
}

@media (max-width: 640px) {
  .carousel-copy {
    left: 24px;
    width: min(64vw, 285px);
  }

  .carousel-eyebrow {
    margin-bottom: 8px;
    font-size: .62rem;
    letter-spacing: .12em;
  }

  .carousel-title {
    font-size: clamp(1.48rem, 7.6vw, 2rem);
    line-height: 1;
  }

  .carousel-description {
    display: none;
  }

  .banner-cta {
    min-height: 32px;
    margin-top: 12px;
    padding: 7px 11px;
    font-size: .7rem;
  }

  .carousel::after {
    background: linear-gradient(90deg, rgb(247 244 239 / 96%) 0%, rgb(247 244 239 / 78%) 54%, transparent 91%);
  }
}

@media (max-width: 420px) {
  .carousel-copy {
    left: 18px;
  }

  .carousel-title {
    font-size: 1.42rem;
  }

  .carousel .slide-count {
    display: none;
  }
}

/* Primeira dobra: cabeçalho e banner completos dentro da altura disponível. */
@media (min-width: 761px) {
  .header {
    height: 128px;
    padding: 10px 24px 12px;
    gap: 6px;
    box-sizing: border-box;
  }

  .header .logo {
    width: 210px;
    height: 56px;
  }

  .carousel {
    height: calc(100svh - 128px);
    max-height: 720px;
    aspect-ratio: auto;
  }

  .carousel .slide,
  .carousel .slide[hidden] {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* Faixa visual contínua antes da missão, inspirada no vídeo do site original. */
.imaging-loop {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  height: clamp(330px, 48vw, 620px);
  margin: 0 auto 64px;
  overflow: hidden;
  border-radius: 24px;
  background: #2f2923;
  isolation: isolate;
}

.imaging-loop__media {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: 63% center;
  filter: saturate(.82) contrast(1.03) brightness(.82);
  animation: imaging-drift 15s ease-in-out infinite alternate;
}

.imaging-loop__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(28 23 18 / 64%), rgb(28 23 18 / 18%) 52%, rgb(28 23 18 / 10%));
}

.imaging-loop__ring {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(12%, 18vw, 26%);
  width: clamp(150px, 21vw, 310px);
  aspect-ratio: 1;
  translate: 50% -50%;
  border: 2px solid rgb(255 231 183 / 68%);
  border-radius: 50%;
  box-shadow: 0 0 0 11px rgb(255 216 145 / 7%), 0 0 45px rgb(255 206 119 / 46%), inset 0 0 45px rgb(255 206 119 / 26%);
  animation: imaging-pulse 4.8s ease-in-out infinite;
}

.imaging-loop__beam {
  position: absolute;
  z-index: 3;
  top: -18%;
  left: -30%;
  width: 23%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgb(255 236 195 / 8%), rgb(255 238 202 / 55%), rgb(255 236 195 / 8%), transparent);
  transform: skewX(-18deg);
  filter: blur(2px);
  animation: imaging-scan 7s ease-in-out infinite;
}

.imaging-loop__caption {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 5vw, 78px);
  bottom: clamp(30px, 5vw, 68px);
  display: grid;
  gap: 10px;
  color: #fffaf0;
}

.imaging-loop__caption span {
  color: #e7c889;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.imaging-loop__caption strong {
  max-width: 8ch;
  font-size: clamp(2rem, 4.3vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .94;
}

@keyframes imaging-drift {
  from { transform: scale(1) translate3d(-1%, 0, 0); }
  to { transform: scale(1.08) translate3d(1.5%, -1%, 0); }
}

@keyframes imaging-pulse {
  0%, 100% { opacity: .42; scale: .96; }
  50% { opacity: 1; scale: 1.04; }
}

@keyframes imaging-scan {
  0%, 18% { translate: 0 0; opacity: 0; }
  30% { opacity: .8; }
  68% { opacity: .5; }
  82%, 100% { translate: 590% 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .imaging-loop__media,
  .imaging-loop__ring,
  .imaging-loop__beam {
    animation: none;
  }
}

@media (max-width: 640px) {
  .imaging-loop {
    width: calc(100% - 24px);
    height: 390px;
    margin-bottom: 48px;
    border-radius: 18px;
  }

  .imaging-loop__media {
    object-position: 67% center;
  }

  .imaging-loop__shade {
    background: linear-gradient(0deg, rgb(28 23 18 / 70%), rgb(28 23 18 / 4%) 68%);
  }

  .imaging-loop__ring {
    top: 42%;
    right: 38%;
    width: 170px;
  }

  .imaging-loop__caption {
    left: 26px;
    bottom: 30px;
  }
}

/* Cards de exames integrados à apresentação da Home. */
.home-exams {
  max-width: 1240px;
  margin: 0 auto 76px;
  padding: 0 40px;
}

.home-exams__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.home-exams__heading .eyebrow {
  margin-bottom: 12px;
}

.home-exams__heading h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  letter-spacing: -.055em;
  line-height: 1;
}

.home-exams__heading > p {
  max-width: 42ch;
  margin: 0;
  color: #5e5145;
}

.intro h1 {
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 3.6vw, 3.1rem);
  letter-spacing: -.055em;
  line-height: 1.08;
  white-space: nowrap;
}

.home-exams__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-exam-card {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgb(220 212 200 / .8);
  border-radius: 20px;
  background: #eee8dc;
}

.home-exam-card--ressonancia { background: #e8e1d4; }
.home-exam-card--gastro { background: #e4dccd; }

.home-exam-card__number {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 26px;
  color: #927d5d;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.home-exam-card img {
  width: 100%;
  height: 250px;
  margin: 22px 0 12px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.home-exam-card--gastro img {
  width: 112%;
  justify-self: center;
}

.home-exam-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -.04em;
}

.home-exam-card p {
  margin: 0;
  color: #5a4d41;
  font-size: .96rem;
  line-height: 1.58;
}

.home-exam-card:hover img {
  transform: scale(1.045);
}

.home-exams__link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0 auto;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
}

.home-exams__link span {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.home-exams__link:hover span {
  transform: translate(3px, -3px);
}

@media (max-width: 900px) {
  .home-exams {
    padding-inline: 28px;
  }

  .home-exams__heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .home-exams__grid {
    grid-template-columns: 1fr;
  }

  .home-exam-card {
    min-height: 360px;
    grid-template-columns: minmax(200px, .95fr) minmax(0, 1.05fr);
    grid-template-rows: 1fr;
    align-items: center;
  }

  .home-exam-card img {
    height: 220px;
    margin: 0;
  }

  .home-exams__link {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .home-exams {
    margin-bottom: 48px;
    padding-inline: 22px;
  }

  .home-exams__grid {
    gap: 12px;
  }

  .home-exam-card {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 210px auto;
    padding: 24px;
  }

  .home-exam-card img {
    height: 190px;
  }
}

@media (max-width: 420px) {
  .intro h1 {
    font-size: 1.15rem;
  }
}

/* Quando os cards pertencem à abertura, eles acompanham o mesmo bloco visual. */
.intro {
  max-width: 1240px;
}

.intro .home-exams {
  max-width: none;
  margin: clamp(38px, 5vw, 58px) 0 0;
  padding: 0;
  text-align: left;
}

.intro .home-exam-card {
  text-align: left;
}

.intro .home-exam-card p {
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .intro .home-exams {
    padding-inline: 0;
  }
}

/* Versão compacta: a apresentação e seus três exames cabem na janela desktop. */
@media (min-width: 901px) {
  .intro {
    box-sizing: border-box;
    min-height: 100svh;
    padding-top: clamp(32px, 5vh, 56px);
    padding-bottom: clamp(32px, 5vh, 56px);
  }

  .intro .home-exams {
    margin-top: clamp(28px, 4vh, 42px);
  }

  .intro .home-exam-card {
    min-height: clamp(270px, 39vh, 320px);
    padding: 22px;
  }

  .intro .home-exam-card img {
    height: clamp(140px, 20vh, 180px);
    margin: 14px 0 7px;
  }

  .intro .home-exam-card h3 {
    margin-bottom: 6px;
    font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  }

  .intro .home-exam-card p {
    font-size: .87rem;
    line-height: 1.45;
  }
}

/* História da Clínica Átomo, entre tecnologia e missão. */
.home-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 56px);
  align-items: start;
  padding-top: clamp(80px, 10vw, 138px);
  padding-bottom: clamp(80px, 10vw, 138px);
}

.home-story__intro {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}

.home-story__intro .eyebrow {
  margin-bottom: 16px;
}

.home-story h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  letter-spacing: -.06em;
  line-height: .98;
}

.home-story__subtitle {
  margin: 24px 0 0;
  color: #745d42;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
}

.home-story__content {
  display: grid;
  width: min(100%, 1080px);
  box-sizing: border-box;
  grid-template-columns: minmax(130px, .45fr) minmax(0, 1.55fr);
  gap: clamp(28px, 4vw, 58px);
  margin: 0 auto;
  padding: clamp(28px, 4.2vw, 52px);
  border: 1px solid rgb(179 147 102 / .32);
  border-radius: 28px;
  background: linear-gradient(135deg, #40342a 0%, #2b231d 100%);
  box-shadow: 0 20px 45px rgb(52 40 27 / .12);
  color: #f3ede3;
  font-size: 1rem;
  line-height: 1.65;
}

.home-story__year {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.home-story__year strong {
  color: #e3c48e;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: .8;
}

.home-story__year span {
  max-width: 14ch;
  color: rgb(243 237 227 / .72);
  font-size: .82rem;
  line-height: 1.5;
}

.home-story__body p {
  margin: 0;
}

.home-story__signature {
  margin-top: 8px !important;
  padding-top: 18px;
  border-top: 1px solid rgb(227 196 142 / .32);
  color: #f2d8aa;
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .home-story {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-story__content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-story__year {
    flex-direction: row;
    align-items: end;
  }

  .home-story__year span {
    max-width: 30ch;
  }
}

@media (max-width: 640px) {
  .home-story__content {
    padding: 26px 22px;
    border-radius: 18px;
    font-size: .96rem;
  }
}

/* Na tela ampla, toda a história é apresentada em uma única dobra. */
@media (min-width: 901px) {
  .home-story {
    box-sizing: border-box;
    min-height: 100svh;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .home-story__intro .eyebrow {
    margin-bottom: 8px;
  }

  .home-story h2 {
    font-size: clamp(2.15rem, 4vw, 3.55rem);
  }

  .home-story__subtitle {
    margin-top: 12px;
    font-size: 1.05rem;
  }

  .home-story__content {
    display: grid;
    width: min(100%, 1080px);
    grid-template-columns: 150px minmax(0, 1fr);
    column-count: unset;
    column-gap: 44px;
    padding: 26px 30px;
    font-size: .84rem;
    line-height: 1.45;
  }

  .home-story__body {
    column-count: 2;
    column-gap: 34px;
  }

  .home-story__body p {
    break-inside: avoid;
    margin: 0 0 11px;
  }

  .home-story__signature {
    margin-top: 3px !important;
    padding-top: 12px;
    font-size: .92rem;
  }
}

/* Última seção da Home: canais e localização da Clínica Átomo. */
.home-contact {
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
  scroll-margin-top: 24px;
}

.home-contact__heading {
  max-width: 650px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.home-contact__heading .eyebrow {
  margin-bottom: 12px;
}

.home-contact__heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.1vw, 3.85rem);
  letter-spacing: -.055em;
  line-height: 1;
}

.home-contact__heading > p:last-child {
  max-width: 56ch;
  margin: 0;
  color: #5e5145;
}

.home-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.contact-panel {
  border: 1px solid rgb(220 212 200 / .8);
  border-radius: 22px;
  background: #eee8dc;
}

.contact-panel--channels {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 52px);
}

.contact-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -.04em;
}

.contact-panel p {
  margin: 0;
  color: #5e5145;
  line-height: 1.65;
}

.contact-list {
  display: grid;
  width: 100%;
  gap: 18px;
  margin: clamp(32px, 4vw, 48px) 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgb(140 117 81 / .2);
  border-radius: 50%;
  background: rgb(255 252 247 / .72);
  color: #6f593d;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-list li > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-list small {
  color: #77685a;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-list a {
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.contact-action:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 22px rgb(49 43 37 / .16);
  transform: translateY(-2px);
}

.contact-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.contact-panel--location {
  padding: clamp(20px, 2.5vw, 30px);
}

.location-layout {
  display: grid;
  min-height: 100%;
  grid-template-columns: minmax(190px, .82fr) minmax(260px, 1.18fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: stretch;
}

.location-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(8px, 1.5vw, 16px);
}

.location-copy address {
  margin: 25px 0 28px;
  color: #4e4338;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.7;
}

.contact-action--map {
  border-color: #9a8668;
  background: transparent;
  color: var(--ink);
}

.contact-action--map:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.contact-map {
  display: block;
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: 15px;
  background: #ded5c6;
}

@media (max-width: 1080px) {
  .home-contact__grid {
    grid-template-columns: 1fr;
  }

  .contact-panel--channels {
    min-height: 0;
  }

  .location-layout {
    grid-template-columns: minmax(210px, .8fr) minmax(300px, 1.2fr);
  }
}

@media (max-width: 680px) {
  .home-contact__heading h2 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .contact-panel--channels,
  .contact-panel--location {
    padding: 26px 22px;
  }

  .location-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .location-copy {
    padding: 0;
  }

  .location-copy address {
    margin: 22px 0 24px;
  }

  .contact-action {
    width: 100%;
  }

  .contact-map {
    min-height: 290px;
  }
}

@media (min-width: 901px) {
  .home-contact {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(28px, 5vh, 56px);
  }

  .home-contact__heading {
    margin-bottom: clamp(22px, 3.2vh, 34px);
  }

  .contact-panel--channels {
    padding: clamp(28px, 3vw, 42px);
  }

  .contact-list {
    gap: 15px;
    margin-block: clamp(26px, 3.5vh, 38px);
  }

  .contact-map {
    min-height: 290px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .home-contact__heading h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .home-contact__heading > p:last-child,
  .contact-panel p {
    font-size: .94rem;
  }

  .contact-map {
    min-height: 260px;
  }
}

/* Rodapé compacto, com atalhos e redes sociais integrados. */
footer.site-footer {
  padding: 0 40px;
  background: radial-gradient(circle at 16% 0%, #42362a 0%, #2f2923 45%, #24201c 100%);
  color: #f6f0e6;
}

.footer-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  min-height: 136px;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 62px);
}

.footer-brand {
  display: grid;
  width: fit-content;
  gap: 5px;
  color: #ead6ae;
  text-decoration: none;
}

.footer-brand img {
  width: 150px;
  height: auto;
}

.footer-brand span {
  font-size: .8rem;
  letter-spacing: .16em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  padding: 16px clamp(28px, 4vw, 54px);
  border-right: 1px solid rgb(225 203 160 / .34);
  border-left: 1px solid rgb(225 203 160 / .34);
}

.footer-nav a,
.footer-social a {
  color: #f6f0e6;
  font-size: .84rem;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-nav a:hover,
.footer-social a:hover,
.footer-bottom a:hover {
  color: #e7c889;
}

.footer-social {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(18px, 2.3vw, 32px);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: #ead6ae;
}

footer.site-footer .footer-bottom {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 18px 0 28px;
  border-top: 1px solid rgb(225 203 160 / .34);
  color: #e7ddd0;
  font-size: .75rem;
}

footer.site-footer .footer-bottom a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

@media (max-width: 900px) {
  footer.site-footer {
    padding-inline: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 25px;
    padding: 42px 0 30px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    padding: 18px 0;
    border-top: 1px solid rgb(225 203 160 / .34);
    border-bottom: 1px solid rgb(225 203 160 / .34);
    border-right: 0;
    border-left: 0;
  }

  .footer-social {
    justify-self: auto;
  }
}

@media (max-width: 560px) {
  footer.site-footer {
    padding-inline: 22px;
  }

  .footer-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 13px 24px;
  }

  footer.site-footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    padding-bottom: 24px;
    text-align: center;
    line-height: 1.55;
  }
}
