@layer reset, base, components, sections, responsive;

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

  html {
    scroll-behavior: smooth;
  }

  body,
  h1,
  h2,
  h3,
  p,
  ul,
  figure,
  blockquote {
    margin: 0;
  }

  img,
  video {
    display: block;
    height: auto;
    max-width: 100%;
  }
}

@layer base {
  @font-face {
    font-family: "Headstock Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/headstock-sans-regular.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
      U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @font-face {
    font-family: "Helvetica Neue Thin";
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url("assets/fonts/helvetica-neue-thin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
      U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  :root {
    --brown: #63331f;
    --gold: #aa946a;
    --blue: #82bff0;
    --deep-blue: #184a73;
    --blush: #f8f3f4;
    --mist: #e9e4e2;
    --white: #fffafa;
    --display: "Headstock Sans", Garamond, "Times New Roman", serif;
    --sans: "Helvetica Neue Thin", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --page-pad: clamp(2rem, 7vw, 7rem);
  }

  body {
    background: var(--blush);
    color: var(--brown);
    font-family: var(--sans);
    font-weight: 200;
  }

  h1,
  h2 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.88;
    text-wrap: balance;
  }

  p,
  li {
    line-height: 1.22;
    text-wrap: pretty;
  }

  .panel {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow: hidden;
  }

  .skip-link {
    position: fixed;
    z-index: 20;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    transform: translateY(-180%);
    border-radius: 0.35rem;
    background: white;
    color: var(--brown);
  }

  .skip-link:focus {
    transform: translateY(0);
  }
}

@layer components {
  .marquee {
    position: relative;
    z-index: 2;
    isolation: isolate;
    overflow: hidden;
    padding-block: 0.72rem;
    border-block: 1px solid rgba(99, 51, 31, 0.18);
    background: #d8c8aa;
    color: var(--brown);
  }

  .marquee::before,
  .marquee::after {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: clamp(2.5rem, 8vw, 7.5rem);
    content: "";
    pointer-events: none;
  }

  .marquee::before {
    left: 0;
    background: linear-gradient(90deg, #d8c8aa 18%, rgba(216, 200, 170, 0));
  }

  .marquee::after {
    right: 0;
    background: linear-gradient(270deg, #d8c8aa 18%, rgba(216, 200, 170, 0));
  }

  .marquee__track {
    display: flex;
    width: max-content;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: marquee-scroll var(--marquee-duration, 36s) linear infinite;
  }

  .marquee__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: clamp(4.5rem, 7vw, 7rem);
    padding-inline: clamp(1.75rem, 3vw, 3.5rem);
  }

  .marquee__group span {
    position: relative;
    font-family: var(--display);
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.015em;
    line-height: 1;
    white-space: nowrap;
  }

  .marquee__group span::after {
    position: absolute;
    top: 50%;
    right: clamp(-3.7rem, -3.5vw, -2.55rem);
    width: 0.34rem;
    height: 0.34rem;
    border: 1px solid currentColor;
    content: "";
    opacity: 0.58;
    transform: translateY(-50%) rotate(45deg);
  }

  @keyframes marquee-scroll {
    from {
      transform: translate3d(0, 0, 0);
    }

    to {
      transform: translate3d(-50%, 0, 0);
    }
  }

  .cta {
    display: inline-flex;
    min-width: min(27rem, 100%);
    min-height: 4.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    font-size: clamp(0.85rem, 1.45vw, 1.28rem);
    font-weight: 200;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 220ms ease, box-shadow 220ms ease, color 220ms ease, scale 220ms ease,
      transform 220ms ease;
  }

  .cta:hover,
  .cta:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
  }

  .cta--gold {
    padding: 0.65rem 0.95rem;
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
  }

  .cta--gold::before {
    position: absolute;
    inset: 0.45rem 1rem;
    z-index: -1;
    border-radius: 999px;
    background: rgba(169, 146, 99, 0.9);
    content: "";
  }

  .cta--gold {
    position: relative;
    isolation: isolate;
  }

  .cta--solid {
    border-color: var(--white);
    background: var(--white);
    box-shadow: 0 0.5rem 1.3rem rgba(48, 24, 14, 0.18);
    color: var(--brown);
    font-weight: 400;
  }

  .cta--solid:hover,
  .cta--solid:focus-visible {
    border-color: var(--brown);
    background: var(--brown);
    color: var(--white);
  }

  @keyframes control-pulse {
    0%,
    100% {
      box-shadow: 0 0.35rem 0.9rem rgba(48, 24, 14, 0.12);
      scale: 1;
    }

    50% {
      box-shadow: 0 0.85rem 1.7rem rgba(48, 24, 14, 0.28);
      scale: var(--pulse-scale, 1.035);
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .cta:hover,
    .clinic__play:hover,
    .testimonials__arrow:not(:disabled):hover {
      animation: control-pulse 900ms ease-in-out infinite;
      will-change: box-shadow, scale;
    }

    .clinic__play,
    .testimonials__arrow {
      --pulse-scale: 1.055;
    }
  }
}

@layer sections {
  .hero {
    display: grid;
    place-items: center;
    min-height: max(42rem, 100svh);
    color: white;
  }

  .hero__media {
    position: absolute;
    inset: 0;
  }

  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(38, 27, 20, 0.12) 0%,
      rgba(38, 27, 20, 0.2) 48%,
      rgba(38, 27, 20, 0.3) 100%
    );
    content: "";
  }

  .hero__logo,
  .hero__content {
    z-index: 1;
  }

  .hero__logo {
    position: absolute;
    top: clamp(2rem, 6.6vw, 4.8rem);
    left: clamp(2rem, 6vw, 5rem);
    width: clamp(10rem, 15.5vw, 13.2rem);
  }

  .hero__content {
    width: min(72rem, calc(100% - 2rem));
    padding-top: 7rem;
    text-align: center;
  }

  .hero h1 {
    font-family: var(--sans);
    font-size: clamp(3.25rem, 5.4vw, 5.15rem);
    font-weight: 200;
    letter-spacing: -0.012em;
    line-height: 1.02;
  }

  .hero p {
    margin: 1.55rem auto 2.2rem;
    font-size: clamp(0.9rem, 1.45vw, 1.35rem);
    font-weight: 200;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .about {
    display: grid;
    grid-template-columns: 1fr 1.14fr;
    min-height: clamp(42rem, 52vw, 46rem);
    background: var(--blush);
  }

  .about__portrait {
    background-color: var(--mist);
    background-position: center 18%;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .about__portrait.is-background-ready {
    background-image: url("assets/images/doctor-portrait.webp");
    background-image: image-set(
      url("assets/images/doctor-portrait.avif") type("image/avif"),
      url("assets/images/doctor-portrait.webp") type("image/webp")
    );
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem clamp(3rem, 7.2vw, 8rem) 2.5rem clamp(3rem, 7.8vw, 8rem);
  }

  .about__intro,
  .about__role {
    font-size: clamp(0.74rem, 1.1vw, 1.08rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }

  .about h2 {
    margin: 0.7rem 0 0.9rem;
    font-size: clamp(4.4rem, 6.35vw, 6rem);
  }

  .about__role {
    margin-bottom: 2rem;
  }

  .about ul {
    display: grid;
    max-width: 42rem;
    gap: 1.4rem;
    padding-left: 1.65rem;
    font-size: clamp(0.92rem, 1.35vw, 1.18rem);
  }

  .about li {
    padding-left: 0.5rem;
  }

  .about__authorities {
    display: flex;
    width: min(40rem, 100%);
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    margin-top: 2rem;
  }

  .about__authorities img {
    width: 100%;
  }

  .about__authority-main {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
  }

  .about__authority-abmr {
    display: block;
    flex: 0 0 clamp(4.75rem, 8vw, 6.25rem);
  }

  .experience {
    display: flex;
    align-items: center;
    min-height: clamp(45rem, 56.25vw, 90rem);
    background-color: #4d2c1e;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
  }

  .experience.is-background-ready {
    background-image: url("assets/images/doctor-experience.webp");
    background-image: image-set(
      url("assets/images/doctor-experience.avif") type("image/avif"),
      url("assets/images/doctor-experience.webp") type("image/webp")
    );
  }

  .experience__content {
    width: min(43rem, 55%);
    margin-left: clamp(2rem, 9vw, 8rem);
    padding-top: 8rem;
  }

  .experience h2 {
    margin-bottom: 1.75rem;
    font-size: clamp(4rem, 6.3vw, 6rem);
  }

  .experience p {
    max-width: 39rem;
    margin-bottom: 1.2rem;
    font-size: clamp(0.95rem, 1.45vw, 1.25rem);
  }

  .experience .cta {
    margin-top: 2rem;
  }

  .experience-specialties-bridge {
    display: grid;
    min-height: clamp(4.5rem, 6vw, 5.5rem);
    place-items: center;
    padding: 1rem var(--page-pad);
    background: var(--blush);
    color: var(--brown);
    text-align: center;
  }

  .experience-specialties-bridge p {
    max-width: 64rem;
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.1vw, 1.9rem);
    line-height: 1.05;
    text-wrap: balance;
  }

  .conditions {
    display: grid;
    position: relative;
    min-height: clamp(46rem, 56.25vw, 48rem);
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: clamp(3.25rem, 4vw, 4rem) clamp(2rem, 5.7vw, 5.6rem) clamp(2.5rem, 3vw, 3rem);
    overflow: hidden;
    background: #e8ddcf;
    color: var(--brown);
  }

  .conditions__background {
    position: absolute;
    z-index: -1;
    inset: 0;
  }

  .conditions__background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .conditions::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255, 250, 245, 0.04) 0 42%, rgba(255, 250, 245, 0.84) 76% 100%),
      linear-gradient(90deg, rgba(255, 250, 245, 0.38) 0 44%, rgba(255, 250, 245, 0) 72%);
    content: "";
    pointer-events: none;
  }

  .conditions__content {
    display: grid;
    position: relative;
    z-index: 1;
    width: min(86rem, 100%);
    min-width: 0;
    min-height: 100%;
    grid-template-rows: auto 1fr auto;
    margin-inline: auto;
  }

  .conditions__intro {
    width: min(39rem, 55%);
    padding-left: clamp(0rem, 3vw, 3rem);
  }

  .conditions h2 {
    margin: 0;
    color: var(--brown);
    font-size: clamp(4.35rem, 6.2vw, 6rem);
    letter-spacing: -0.035em;
    line-height: 0.78;
    text-wrap: balance;
  }

  .conditions__intro > p {
    max-width: 35rem;
    margin-top: clamp(2rem, 3vw, 2.75rem);
    color: var(--brown);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.25rem, 1.75vw, 1.65rem);
    font-weight: 400;
    line-height: 1.2;
    text-wrap: pretty;
  }

  .conditions__carousel {
    position: relative;
    grid-row: 3;
    align-self: end;
    min-width: 0;
    overflow: hidden;
  }

  .conditions__grid {
    display: flex;
    position: relative;
    width: max-content;
    align-items: stretch;
    gap: 0;
    isolation: isolate;
    text-align: center;
  }

  .conditions__grid.is-marquee-ready {
    will-change: transform;
    animation: conditions-marquee-scroll var(--conditions-marquee-duration, 60s) linear infinite;
  }

  @keyframes conditions-marquee-scroll {
    to {
      transform: translate3d(var(--conditions-marquee-cycle, -50%), 0, 0);
    }
  }

  .condition {
    display: flex;
    position: relative;
    z-index: 1;
    min-height: 11.75rem;
    flex: 0 0 clamp(17rem, 23vw, 21rem);
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(0.75rem, 1.65vw, 1.5rem);
    color: var(--brown);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    transition: filter 240ms ease, translate 240ms ease;
  }

  .condition:not(:first-child)::before {
    position: absolute;
    top: 0.75rem;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(186, 133, 68, 0.46);
    content: "";
  }

  .condition__icon {
    width: clamp(4rem, 4.8vw, 4.7rem);
    height: clamp(4rem, 4.8vw, 4.7rem);
    flex: 0 0 auto;
    padding: 0.9rem;
    border: 1.5px solid #c69551;
    border-radius: 50%;
    color: #b87934;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: background-color 240ms ease, color 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .condition__icon--thermography {
    padding: 0.72rem;
    stroke-width: 1.2;
  }

  .condition__icon--thermography .condition__human-detail {
    opacity: 0.72;
    stroke-width: 0.8;
  }

  .condition h3 {
    margin: 0.8rem 0 0.5rem;
    color: #995f26;
    font-size: clamp(0.92rem, 1.2vw, 1.08rem);
    font-weight: 600;
    letter-spacing: 0.075em;
    line-height: 1.2;
    text-transform: uppercase;
    text-wrap: balance;
  }

  .condition p {
    max-width: 21rem;
    color: #573426;
    font-size: clamp(0.92rem, 1.18vw, 1.05rem);
    font-weight: 400;
    line-height: 1.32;
    text-wrap: pretty;
  }

  .conditions.is-ready .condition {
    clip-path: inset(0 100% 0 0 round 1.5rem);
    opacity: 0.12;
    transform: translate3d(-1rem, 0, 0);
  }

  .conditions.is-revealing .condition {
    animation: condition-reveal 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(100ms + var(--condition-index, 0) * 95ms);
  }

  @keyframes condition-reveal {
    from {
      clip-path: inset(0 100% 0 0 round 1.5rem);
      opacity: 0.12;
      transform: translate3d(-1rem, 0, 0);
    }

    to {
      clip-path: inset(0 0 0 0 round 1.5rem);
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .conditions__carousel:hover .conditions__grid,
    .conditions__carousel:focus-within .conditions__grid {
      animation-play-state: paused;
    }

    .condition:hover {
      translate: 0 -0.25rem;
    }

    .condition:hover .condition__icon {
      background: #b87934;
      color: #fffaf4;
      transform: scale(1.04);
    }
  }

  .story {
    display: grid;
    grid-template-columns: 1fr 1.02fr;
    min-height: clamp(42rem, 52vw, 46rem);
    background: var(--blush);
  }

  .story__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem clamp(3rem, 7.1vw, 7rem);
  }

  .story h2 {
    font-size: clamp(4rem, 6vw, 5.8rem);
  }

  .story__lead {
    margin: 0.6rem 0 2.5rem;
    font-family: var(--display);
    font-size: clamp(2rem, 3.25vw, 3.3rem);
    line-height: 0.86;
  }

  .story blockquote {
    max-width: 31rem;
    padding: 2rem clamp(1.75rem, 3vw, 3.25rem);
    border-radius: 2.3rem;
    background: var(--mist);
    font-size: clamp(0.92rem, 1.43vw, 1.25rem);
  }

  .story blockquote cite {
    display: block;
    margin-top: 2rem;
    font-family: var(--display);
    font-size: 1.25rem;
    font-style: normal;
  }

  .story__photo {
    position: relative;
    min-height: 100%;
  }

  .story__photo picture {
    position: absolute;
    inset: 0;
  }

  .story__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .story--paulo {
    background: var(--gold);
    color: var(--brown);
  }

  .story--paulo .story__copy {
    padding-right: clamp(4rem, 9vw, 8rem);
  }

  .story--paulo blockquote {
    color: var(--brown);
  }

  .testimonials {
    display: flex;
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 4rem clamp(2.5rem, 4.8vw, 5rem);
    background: var(--blush);
  }

  .testimonials h2 {
    font-size: clamp(4rem, 6.3vw, 6rem);
    text-align: center;
  }

  .testimonials__subtitle {
    margin: 0.25rem 0 2.5rem;
    font-family: var(--display);
    font-size: clamp(1.7rem, 2.75vw, 2.8rem);
    text-align: center;
  }

  .testimonials__carousel {
    width: min(82rem, 100%);
    min-width: 0;
    margin-inline: auto;
  }

  .testimonials__grid {
    --testimonial-gap: clamp(1rem, 2vw, 2rem);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
    gap: var(--testimonial-gap);
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .testimonials__grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-shot {
    display: block;
    min-width: 0;
    flex: 0 0 calc((100% - (var(--testimonial-gap) * 2)) / 3);
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .testimonial-shot picture {
    display: block;
  }

  .testimonial-shot img {
    display: block;
    width: 100%;
    height: auto;
  }

  .testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
  }

  .testimonials__closing {
    margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
    color: var(--brown);
    font-family: var(--display);
    font-size: clamp(2.75rem, 4.2vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 0.95;
    text-align: center;
    text-wrap: balance;
  }

  .testimonials__arrow,
  .testimonials__dots button {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background: transparent;
    color: var(--brown);
    cursor: pointer;
    place-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .testimonials__arrow {
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.15rem;
    transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease,
      scale 180ms ease;
  }

  .testimonials__arrow:disabled {
    cursor: default;
    opacity: 0.3;
  }

  .testimonials__arrow:not(:disabled):hover,
  .testimonials__arrow:not(:disabled):focus-visible {
    background: var(--brown);
    color: var(--blush);
  }

  .testimonials__dots {
    display: flex;
  }

  .testimonials__dots button[hidden] {
    display: none;
  }

  .testimonials__dots button::before {
    width: 0.45rem;
    height: 0.45rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    transition: background-color 180ms ease, transform 180ms ease;
  }

  .testimonials__dots button[aria-current="true"]::before {
    background: currentColor;
    transform: scale(1.3);
  }

  .clinic {
    display: grid;
    min-height: max(42rem, 100svh);
    isolation: isolate;
    grid-template-columns: minmax(16rem, 26rem) minmax(22rem, 36rem);
    align-items: center;
    justify-content: center;
    gap: clamp(3rem, 6vw, 8rem);
    padding: 4rem clamp(2.5rem, 6vw, 7rem) 5rem;
    background-color: #6b3d2a;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
  }

  .clinic::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(47, 25, 15, 0.46);
    content: "";
    pointer-events: none;
  }

  .clinic.is-background-ready {
    background-image: url("assets/images/specialties-background-1366.webp");
    background-image: image-set(
      url("assets/images/specialties-background-1366.avif") type("image/avif"),
      url("assets/images/specialties-background-1366.webp") type("image/webp")
    );
  }

  .clinic__video-wrap {
    position: relative;
    width: min(100%, 26rem);
    aspect-ratio: 0.67;
    justify-self: end;
    overflow: visible;
    border-radius: 1.5rem;
    background: rgba(20, 12, 8, 0.35);
  }

  .clinic__video {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
  }

  .clinic__play {
    position: absolute;
    bottom: -0.7rem;
    left: 50%;
    display: grid;
    width: 5.1rem;
    aspect-ratio: 1;
    place-items: center;
    transform: translateX(-50%);
    border: 0;
    border-radius: 50%;
    background: #71351f;
    color: white;
    cursor: pointer;
    transition: box-shadow 220ms ease, scale 220ms ease;
  }

  .clinic__play::before {
    position: absolute;
    inset: -0.35rem;
    transform: scale(0.86);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    animation: clinic-play-pulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    content: "";
    pointer-events: none;
  }

  .clinic__play.is-playing::before {
    animation: none;
    opacity: 0;
  }

  @keyframes clinic-play-pulse {
    0% {
      transform: scale(0.86);
      opacity: 0.8;
    }

    75%,
    100% {
      transform: scale(1.32);
      opacity: 0;
    }
  }

  .clinic__play span {
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    border-top: 0.8rem solid transparent;
    border-bottom: 0.8rem solid transparent;
    border-left: 1.25rem solid white;
  }

  .clinic__play.is-playing span {
    width: 1rem;
    height: 1.45rem;
    margin: 0;
    border: 0;
    border-right: 0.32rem solid white;
    border-left: 0.32rem solid white;
  }

  .clinic__content h2 {
    margin-bottom: 3.7rem;
    font-size: clamp(4.6rem, 6.4vw, 6rem);
  }

  .clinic__content img {
    width: min(30rem, 100%);
    margin-bottom: 3.4rem;
  }

  .clinic__content .cta {
    min-width: min(31rem, 100%);
  }

  .clinic footer {
    position: absolute;
    right: clamp(2rem, 7vw, 7rem);
    bottom: 2rem;
    font-size: clamp(0.55rem, 0.72vw, 0.72rem);
    letter-spacing: 0.24em;
    text-align: right;
    text-transform: uppercase;
  }

  .clinic footer p + p {
    margin-top: 0.4rem;
  }

  .clinic footer a {
    color: inherit;
    text-underline-offset: 0.2em;
  }
}

@layer responsive {
  @media (min-width: 961px) {
    .conditions__intro {
      width: min(52rem, 66%);
      transform: translateY(clamp(1.75rem, 2vw, 2.25rem));
    }

    .conditions h2 span {
      white-space: nowrap;
    }

    .story--elisette .story__photo img {
      object-position: center 35%;
    }

    .story--paulo .story__photo img {
      object-position: center 32%;
    }
  }

  @media (max-width: 1200px) {
  }

  @media (max-width: 960px) {
    .conditions h2 br {
      display: none;
    }

    .panel {
      min-height: auto;
    }

    .hero {
      min-height: 48rem;
    }

    .hero__media img {
      object-position: 58% center;
    }

    .about {
      grid-template-columns: 1fr;
    }

    .about__portrait {
      min-height: 38rem;
      background-position: center 8%;
    }

    .about__content {
      padding-block: 5rem;
    }

    .experience {
      min-height: 46rem;
      background-position: 62% top;
    }

    .experience::before {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(70, 30, 12, 0.72), rgba(70, 30, 12, 0.05));
      content: "";
    }

    .experience__content {
      position: relative;
      width: min(36rem, 76%);
      padding-block: 5rem;
    }

    .clinic.is-background-ready {
      background-image: url("assets/images/specialties-background-768.webp");
      background-image: image-set(
        url("assets/images/specialties-background-768.avif") type("image/avif"),
        url("assets/images/specialties-background-768.webp") type("image/webp")
      );
    }

    .conditions {
      min-height: 56rem;
      padding-block: 4rem;
    }

    .conditions__intro {
      width: min(35rem, 68%);
      padding-left: 0;
    }

    .condition {
      min-height: 10.75rem;
    }

    .story {
      grid-template-columns: 1fr;
    }

    .story__copy {
      min-height: 40rem;
      padding-block: 5rem;
    }

    .story__photo {
      min-height: 38rem;
    }

    .story--paulo .story__photo {
      order: 2;
    }

    .testimonials {
      padding-block: 5rem;
    }

    .testimonials__grid {
      --testimonial-gap: 0rem;
      gap: 0;
      overscroll-behavior-y: none;
    }

    .testimonial-shot {
      flex: 0 0 100%;
    }

    .testimonials__carousel {
      width: min(38rem, 100%);
    }

    .clinic {
      grid-template-columns: minmax(15rem, 18rem) minmax(20rem, 1fr);
      justify-content: center;
      gap: clamp(2rem, 5vw, 3rem);
      padding-inline: clamp(2rem, 5vw, 3rem);
    }

    .clinic__content h2 {
      font-size: clamp(3.6rem, 8vw, 4rem);
      white-space: nowrap;
    }
  }

  @media (max-width: 680px) {
    .clinic {
      grid-template-columns: 1fr;
      gap: 4rem;
      padding: 4rem 1.5rem 8rem;
    }

    .clinic__video-wrap {
      width: min(18rem, 82vw);
      justify-self: center;
    }

    .clinic__content {
      text-align: center;
    }

    .clinic__content img {
      margin-inline: auto;
    }

    .clinic footer {
      right: 1rem;
      bottom: 1.5rem;
      left: 1rem;
      letter-spacing: 0.1em;
      text-align: center;
    }
  }

  @media (max-width: 640px) {
    .hero {
      min-height: 43rem;
      place-items: center;
    }

    .hero::after {
      background: rgba(31, 22, 17, 0.28);
      content: "";
    }

    .hero__media img {
      height: 100%;
      object-position: center 52%;
      transform: scale(1.045);
    }

    .hero__content {
      width: min(100%, 32rem);
      align-self: auto;
      padding: 1.5rem 1rem 0;
      transform: none;
    }

    .hero__logo {
      left: 50%;
      transform: translateX(-50%);
    }

    .hero h1 {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: clamp(1.9rem, 9vw, 2.35rem);
      font-weight: 300;
      letter-spacing: -0.02em;
      line-height: 1.03;
      text-shadow: 0 1px 5px rgba(24, 16, 12, 0.72);
    }

    .hero p {
      max-width: 27rem;
      margin: 1rem auto 1.35rem;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: clamp(0.72rem, 3vw, 0.85rem);
      font-weight: 300;
      line-height: 1.35;
      text-shadow: 0 1px 4px rgba(24, 16, 12, 0.78);
    }

    .hero .cta {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .cta {
      min-width: 100%;
      min-height: 3.8rem;
      padding-inline: 1rem;
      letter-spacing: 0.08em;
    }

    .about__portrait {
      min-height: 31rem;
    }

    .about__content {
      padding: 4rem 1.5rem;
    }

    .about h2,
    .experience h2,
    .conditions h2,
    .story h2,
    .testimonials h2,
    .clinic__content h2 {
      font-size: clamp(3.4rem, 16vw, 4.6rem);
    }

    .experience {
      min-height: 45rem;
      align-items: end;
      background-position: 68% top;
    }

    .experience h2 {
      font-size: clamp(2.9rem, 13.5vw, 3.75rem);
      white-space: nowrap;
    }

    .experience::before {
      background: linear-gradient(0deg, rgba(62, 27, 13, 0.86), rgba(62, 27, 13, 0.03) 80%);
    }

    .experience__content {
      width: auto;
      margin: 0;
      padding: 12rem 1.5rem 3rem;
    }

    .experience-specialties-bridge {
      display: none;
    }

    .experience-specialties-bridge p {
      max-width: 20rem;
      font-size: clamp(1.1rem, 5.5vw, 1.35rem);
      line-height: 1.08;
    }

    .conditions {
      display: block;
      min-height: auto;
      padding: 4rem 1rem;
    }

    .conditions__background {
      overflow: hidden;
      background: #dfc9b4;
    }

    .conditions__background img {
      object-fit: contain;
      object-position: center 38%;
      opacity: 0.48;
    }

    .conditions::after {
      background: rgba(255, 250, 245, 0.58);
    }

    .conditions__content {
      display: block;
      width: 100%;
      max-width: 100%;
      margin-inline: 0;
    }

    .conditions__intro {
      width: 100%;
      padding-left: 0;
      text-align: center;
    }

    .conditions h2 {
      font-size: clamp(2.75rem, 13.2vw, 3.35rem);
      line-height: 0.82;
    }

    .conditions__intro > p {
      max-width: 30rem;
      margin: 1.75rem auto 0;
      font-size: 1.08rem;
      line-height: 1.35;
    }

    .conditions__carousel {
      overflow-x: auto;
      overflow-y: hidden;
      grid-row: auto;
      margin-top: 3rem;
      scrollbar-width: none;
    }

    .conditions__carousel::-webkit-scrollbar {
      display: none;
    }

    .conditions__carousel.is-marquee-ready {
      overflow: hidden;
    }

    .conditions__grid {
      gap: 0;
      padding: 0;
    }

    .condition {
      min-height: 12.25rem;
      flex-basis: min(72vw, 18rem);
      justify-content: center;
      padding: 0.75rem 1rem;
    }

    .condition::before {
      display: block;
    }

    .story__copy {
      min-height: 38rem;
      align-items: center;
      padding: 4rem 1.5rem;
      text-align: center;
    }

    .story__lead {
      font-size: 2.25rem;
    }

    .story blockquote {
      margin-inline: auto;
      padding: 1.5rem;
      border-radius: 1rem;
      text-align: center;
    }

    .story blockquote cite {
      text-align: center;
    }

    .story__photo {
      min-height: 35rem;
    }

    .testimonials {
      padding: 4rem 1.5rem;
    }

    .testimonials__subtitle {
      line-height: 1;
    }

    .testimonials__controls {
      gap: 0.125rem;
    }

    .testimonials__closing {
      margin-top: 1.5rem;
      font-size: clamp(2.15rem, 10vw, 2.8rem);
      line-height: 1;
    }

    .testimonials__arrow {
      width: 2.75rem;
      height: 2.75rem;
      flex: 0 0 2.75rem;
    }

    .testimonials__dots button {
      width: 2.75rem;
      height: 2.75rem;
      flex: 0 0 2.75rem;
    }

    .testimonials__dots button::before {
      width: 0.38rem;
      height: 0.38rem;
    }

    .clinic__content h2 {
      font-size: clamp(3rem, 14vw, 3.9rem);
    }

  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }

    .marquee__track {
      width: 100%;
      animation: none;
      will-change: auto;
    }

    .marquee__group {
      width: 100%;
      flex-wrap: wrap;
      justify-content: center;
      row-gap: 0.75rem;
    }

    .marquee__group[aria-hidden="true"] {
      display: none;
    }

    .conditions__grid {
      animation: none;
      will-change: auto;
    }

    .conditions__carousel {
      overflow-x: auto;
      overflow-y: hidden;
    }

    .conditions.is-ready .condition {
      clip-path: none;
      opacity: 1;
      transform: none;
    }

    .conditions.is-revealing .condition {
      animation: none;
    }

    .clinic__play::before {
      transform: none;
      animation: none;
      opacity: 0.65;
    }

    .clinic__play.is-playing::before {
      opacity: 0;
    }
  }
}
