   :root {
      --bg: #fff;
      --ink: #0a2540;
      --mute: #3d5068;
      --line: rgba(10, 37, 64, .2);
      --acc: #0b5cd5;
      --panel: #eef4fc;
      --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
      --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
      color-scheme: light;
      box-sizing: border-box;
      padding-top: env(safe-area-inset-top, 0px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
    } 

    #surgeon, #contact{
        border-top: 1px solid var(--line);
    }
    #process{
        background: #0a2540; color: #fff;
    } .patients, #procedures{
        padding-top: 0;
    }

    html {
      scroll-padding-top: env(safe-area-inset-top, 0px);
      scroll-behavior: smooth;
      background: var(--bg);
    }

    *, *::before, *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font: 300 1.05rem/1.65 var(--sans);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      height: env(safe-area-inset-top, 0px);
      background: #fff;
      z-index: 60;
    }

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    h1, h2, h3 {
      font-family: var(--serif);
      font-weight: 400;
      line-height: 1.05;
      margin: 0;
      letter-spacing: -.01em;
    }

    h2 {
      font-size: clamp(2rem, 6vw, 3.8rem);
    }

    p {
      margin: 0;
    }

    .wrap {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    }

    section {
      padding: clamp(4.5rem, 11vw, 9rem) 0;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 0 1.9rem;
      border: 1px solid var(--ink);
      border-radius: 99px;
      font: 500 .95rem var(--sans);
      color: var(--ink);
      background: transparent;
      cursor: pointer;
      transition: background .35s, color .35s, transform .35s;
    }

    .btn:hover {
      background: var(--ink);
      color: #fff;
    }

    .btn.fill {
      background: var(--acc);
      border-color: var(--acc);
      color: #fff;
    }

    .btn.fill:hover {
      background: var(--ink);
      border-color: var(--ink);
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: 2px solid var(--acc);
      outline-offset: 3px;
    }

    /* ===== HEADER ===== */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      padding: calc(env(safe-area-inset-top, 0px) + .9rem) 0 .9rem;
      transition: background .4s, border-color .4s;
      border-bottom: 1px solid transparent;
    }

    header.s {
      background: rgba(255, 255, 255, .92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-color: var(--line);
    }

    header .wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .logo {
      font: 500 1.35rem var(--serif);
      letter-spacing: .02em;
    }

    nav {
      display: none;
      gap: 2rem;
      font-size: .95rem;
      color: var(--mute);
    }

    nav a:hover {
      color: var(--ink);
    }

    header .btn {
      min-height: 42px;
      padding: 0 1.2rem;
      font-size: .88rem;
    }

    @media (min-width: 860px) {
      nav {
        display: flex;
      }
    }

    /* ===== HERO ===== */
    .hero {
      position: relative;
      min-height: 100svh;
      display: flex;
      align-items: flex-end;
      padding: 7rem 0 4rem;
      overflow: hidden;
      border-bottom: 1px solid var(--line);
    }

    .hero .wrap {
      position: relative;
      z-index: 2;
      width: 100%;
    }

    .hero h1 {
      font-size: clamp(2.6rem, 7vw, 4.9rem);
      line-height: 1;
    }

    .hg {
      display: grid;
      gap: 2.5rem;
      align-items: end;
    }

    .hp {
      aspect-ratio: 4/5;
      border-radius: 6px;
      overflow: hidden;
      max-height: 68vh;
      border: 1px solid var(--line);
    }

    @media (min-width: 860px) {
      .hg {
        grid-template-columns: 1.15fr .85fr;
        gap: 4rem;
      }
      .hp {
        max-height: none;
      }
    }

    .ln {
      display: block;
      overflow: hidden;
      padding-bottom: .1em;
    }

    .ln > span {
      display: block;
      transform: translateY(112%);
      animation: up 1.2s cubic-bezier(.2, .7, .1, 1) forwards;
      animation-delay: calc(.22s * var(--i) + .2s);
    }

    @keyframes up {
      to {
        transform: none;
      }
    }

    .hero .sub {
      max-width: 34rem;
      margin-top: 1.8rem;
      color: var(--mute);
      font-size: 1.1rem;
      opacity: 0;
      animation: fade 1.2s .95s forwards;
    }

    .hero .cta {
      display: flex;
      flex-wrap: wrap;
      gap: .8rem;
      margin-top: 2rem;
      opacity: 0;
      animation: fade 1.2s 1.15s forwards;
    }

    @keyframes fade {
      to {
        opacity: 1;
      }
    }


    .art {
      position: absolute;
      left: -14%;
      top: 6%;
      width: min(78vw, 640px);
      height: 88%;
      z-index: 1;
      opacity: .28;
      will-change: transform;
    }

    .art svg {
      width: 100%;
      height: 100%;
      overflow: visible;
      animation: sway 14s ease-in-out 4s infinite alternate;
      transform-origin: 50% 50%;
    }

    .art path {
      fill: none;
      stroke: url(#lg);
      stroke-width: 1.1;
      stroke-linecap: round;
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      animation: draw 3.6s cubic-bezier(.4, .1, .2, 1) forwards;
      animation-delay: calc(var(--d) * .35s);
    }

    @keyframes draw {
      to {
        stroke-dashoffset: 0;
      }
    }

    @keyframes sway {
      to {
        transform: rotate(3deg) scale(1.04);
      }
    }


    .mq {
      border-block: 1px solid var(--line);
      overflow: hidden;
      padding: 1.3rem 0;
      white-space: nowrap;
    }

    .mq div {
      display: inline-flex;
      animation: mq 42s linear infinite;
    }

    .mq span {
      font: italic 400 clamp(1.4rem, 4vw, 2.2rem) var(--serif);
      color: var(--mute);
      padding-right: 2.5rem;
    }

    .mq span::after {
      content: "";
      display: inline-block;
      width: 6px;
      height: 6px;
      margin-left: 2.5rem;
      border-radius: 50%;
      background: var(--acc);
      vertical-align: middle;
    }

    @keyframes mq {
      to {
        transform: translateX(-50%);
      }
    }

    /* ===== SHAPES (decorative) ===== */
    section {
      position: relative;
      overflow: hidden;
    }

    .wrap {
      position: relative;
      z-index: 1;
    }

    .sh {
      position: absolute;
      z-index: 0;
      pointer-events: none;
      display: block;
      border-radius: 50%;
      animation: fl 16s ease-in-out infinite alternate;
    }

    .sh.b {
      background: radial-gradient(circle at 30% 30%, #cfe1fb, rgba(207, 225, 251, 0) 70%);
    }

    .sh.r {
      border: 1.5px solid rgba(11, 92, 213, .28);
    }

    .sh.s {
      background: var(--acc);
    }

    .sh.d {
      border-radius: 0;
      opacity: .4;
      background-image: radial-gradient(var(--acc) 1.5px, transparent 1.8px);
      background-size: 22px 22px;
    }

    .sh.n.b {
      background: radial-gradient(circle at 30% 30%, rgba(11, 92, 213, .5), rgba(11, 92, 213, 0) 70%);
    }

    .sh.n.r {
      border-color: rgba(143, 192, 255, .35);
    }

    @keyframes fl {
      to {
        transform: translate(22px, -30px) scale(1.07);
      }
    }

    /* ===== REVEALS ===== */
    .rv {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .1, 1);
      transition-delay: var(--t, 0s);
    }

    .rv.in {
      opacity: 1;
      transform: none;
    }

    .wipe {
      clip-path: inset(0 0 100% 0);
      transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1);
    }

    .wipe img {
      transform: scale(1.25);
      transition: transform 1.8s cubic-bezier(.2, .7, .1, 1);
    }

    .wipe.in {
      clip-path: inset(0);
    }

    .wipe.in img {
      transform: scale(1);
    }

    /* ===== PHILOSOPHY ===== */
    .phil {
      display: grid;
      gap: 2.5rem;
    }

    .phil h2 {
      max-width: 14ch;
    }

    .phil p {
      color: var(--mute);
      max-width: 36rem;
      font-size: 1.12rem;
    }

    .phil p + p {
      margin-top: 1.1rem;
    }

    @media (min-width: 860px) {
      .phil {
        grid-template-columns: 1.2fr 1fr;
        align-items: end;
        gap: 6rem;
      }
    }


    .head {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 3rem;
    }

    .grid {
      display: grid;
      gap: 1rem;
      grid-template-columns: 1fr;
    }

    .tile {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-height: 360px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--panel);
    }

    .tile img {
      position: absolute;
      inset: 0;
      transition: transform 1.4s cubic-bezier(.2, .7, .1, 1), opacity .6s;
    }

    .tile::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, #fff 10%, rgba(255, 255, 255, 0) 62%);
    }

    .tile div {
      position: relative;
      z-index: 2;
      padding: 1.6rem;
    }

    .tile h3 {
      font-size: 1.8rem;
      margin-bottom: .5rem;
    }

    .tile p {
      color: var(--mute);
      font-size: .98rem;
      max-width: 26rem;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height .6s ease, opacity .6s ease;
    }

    .tile:hover img,
    .tile:focus-within img,
    .tile.open img {
      transform: scale(1.07);
    }

    .tile:hover p,
    .tile:focus-within p,
    .tile.open p {
      max-height: 8rem;
      opacity: 1;
    }

    @media (hover: none) {
      .tile p {
        max-height: 8rem;
        opacity: 1;
      }
    }

    @media (min-width: 860px) {
      .grid {
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: minmax(300px, auto);
      }
      .t1 { grid-column: span 7; grid-row: span 2; }
      .t2 { grid-column: span 5; }
      .t3 { grid-column: span 5; }
      .t4 { grid-column: span 4; }
      .t5 { grid-column: span 4; }
      .t6 { grid-column: span 4; }
      .t1 h3 { font-size: 2.6rem; }
    }

  
    .sur {
      display: grid;
      gap: 3rem;
      align-items: center;
    }

    .ph {
      aspect-ratio: 4/5;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid var(--line);
    }

    .sur h2 {
      margin-bottom: 1.5rem;
    }

    .sur p {
      color: var(--mute);
      max-width: 34rem;
    }

    .sur p + p {
      margin-top: 1rem;
    }

    .creds {
      list-style: none;
      padding: 0;
      margin: 2rem 0 0;
      display: grid;
      gap: .6rem;
      border-top: 1px solid var(--line);
    }

    .creds li {
      padding: .8rem 0;
      border-bottom: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      font-size: .98rem;
    }

    .creds li span:first-child {
      color: var(--mute);
    }

    @media (min-width: 860px) {
      .sur {
        grid-template-columns: 5fr 6fr;
        gap: 6rem;
      }
    }

    /* ===== PROCESS ===== */
    .steps {
      position: relative;
      display: grid;
      gap: 0;
      margin-top: 3rem;
    }

    .rail {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 1px;
      background: var(--line);
    }

    .rail i {
      display: block;
      height: 100%;
      background: var(--acc);
      transform: scaleY(0);
      transform-origin: top;
    }

    .step {
      padding: 0 0 3rem 2rem;
    }

    .step:last-child {
      padding-bottom: 0;
    }

    .step h3 {
      font-size: 1.7rem;
      margin-bottom: .5rem;
    }

    .step p {
      color: var(--mute);
      max-width: 34rem;
    }

    .step b {
      display: block;
      font: italic 400 1rem var(--serif);
      color: var(--acc);
      margin-bottom: .4rem;
    }

    @media (min-width: 860px) {
      .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
      }
      .rail {
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        width: auto;
        height: 1px;
      }
      .rail i {
        height: 100%;
        width: 100%;
        transform: scaleX(0);
        transform-origin: left;
      }
      .step {
        padding: 2rem 0 0;
      }
    }

    /* Process section dark overrides */
    #process .step p { color: #c4d3e6; }
    #process .step b { color: #8fc0ff; }
    #process .rail { background: rgba(255, 255, 255, .25); }
    #process .rail i { background: #8fc0ff; }

    /* ===== RESULTS SLIDER ===== */
    .res {
      display: grid;
      gap: 3rem;
      align-items: center;
    }

    .cmp {
      --p: 50%;
      position: relative;
      aspect-ratio: 4/5;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid var(--line);
      user-select: none;
      touch-action: pan-y;
    }

    .cmp .a {
      position: absolute;
      inset: 0;
      clip-path: inset(0 calc(100% - var(--p)) 0 0);
    }

    .cmp .bar {
      position: absolute;
      top: 0;
      bottom: 0;
      left: var(--p);
      width: 2px;
      background: var(--ink);
      transform: translateX(-1px);
      pointer-events: none;
    }

    .cmp .bar::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 44px;
      height: 44px;
      margin: -22px;
      border-radius: 50%;
      border: 1px solid var(--ink);
      background: rgba(255, 255, 255, .75);
      backdrop-filter: blur(6px);
    }

    .cmp input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: ew-resize;
      margin: 0;
    }

    .cmp:focus-within {
      outline: 2px solid var(--acc);
      outline-offset: 3px;
    }

    .cmp em {
      position: absolute;
      bottom: 1rem;
      font: italic 400 1rem var(--serif);
      padding: .2rem .8rem;
      border-radius: 99px;
      background: rgba(255, 255, 255, .9);
    }

    .cmp .l1 { left: 1rem; }
    .cmp .l2 { right: 1rem; }

    .res p {
      color: var(--mute);
      max-width: 32rem;
      margin-top: 1.4rem;
    }

    .res small {
      display: block;
      margin-top: 1.4rem;
      color: var(--mute);
      font-size: .85rem;
    }

    @media (min-width: 860px) {
      .res {
        grid-template-columns: 5fr 6fr;
        gap: 6rem;
      }
      .cmp {
        order: 2;
      }
    }

    /* ===== QUOTES ===== */
    .q {
      display: grid;
      gap: 1rem;
      margin-top: 3rem;
    }

    .q figure {
      margin: 0;
      padding: 2rem;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--panel);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 2rem;
    }

    .q blockquote {
      margin: 0;
      font: 400 1.35rem/1.4 var(--serif);
    }

    .q figcaption {
      color: var(--mute);
      font-size: .92rem;
    }

    @media (min-width: 860px) {
      .q {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    /* ===== CONTACT ===== */
    .ct {
      display: grid;
      gap: 3rem;
    }

    .ct p {
      color: var(--mute);
      max-width: 30rem;
      margin-top: 1.4rem;
    }

    form {
      display: grid;
      gap: 1.2rem;
    }

    label {
      display: grid;
      gap: .5rem;
      font-size: .92rem;
      color: var(--mute);
    }

    input, select, textarea {
      width: 100%;
      min-height: 52px;
      padding: .8rem 1rem;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--panel);
      color: var(--ink);
      font: 300 1rem var(--sans);
      transition: border-color .3s;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--acc);
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    .ok {
      display: none;
      padding: 2rem;
      border: 1px solid var(--acc);
      border-radius: 6px;
      font: 400 1.4rem/1.4 var(--serif);
    }

    @media (min-width: 860px) {
      .ct {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
      }
    }

   
      /* ===== FOOTER PREMIUM ===== */
    footer {
      background: #0a2540;
      color: #b9c9de;
      font-size: .92rem;
      padding: 5rem 0 3rem;
    }

    footer .wrap {
      display: grid;
      gap: 4rem;
    }

    /* Topo: Marca e Newsletter */
    .f-top {
      display: grid;
      gap: 3rem;
      border-bottom: 1px solid rgba(255, 255, 255, .1);
      padding-bottom: 3.5rem;
    }

    .f-brand .logo {
      font-family: var(--serif);
      font-weight: 500;
      letter-spacing: .02em;
      margin-bottom: 1rem;
      display: block;
    }

    .f-brand p {
      color: #8499b4;
      max-width: 25rem;
      line-height: 1.6;
    }

    .f-news b {
      display: block;
      color: #fff;
      font-weight: 400;
      font-family: var(--serif);
      font-size: 1.15rem;
      margin-bottom: 1rem;
    }

    .f-form {
      display: flex;
      gap: .5rem;
      max-width: 400px;
    }

    .f-form input {
      flex: 1;
      min-height: 48px;
      padding: 0 1rem;
      border: 1px solid rgba(255, 255, 255, .2);
      border-radius: 4px;
      background: transparent;
      color: #fff;
      font: 300 .95rem var(--sans);
    }

    .f-form input::placeholder {
      color: #6b829e;
    }

    .f-form input:focus {
      outline: none;
      border-color: #fff;
    }

    .f-form button {
      min-height: 48px;
      padding: 0 1.5rem;
      background: #fff;
      color: #0a2540;
      border: none;
      border-radius: 4px;
      font: 500 .9rem var(--sans);
      cursor: pointer;
      transition: background .3s;
    }

    .f-form button:hover {
      background: #b9c9de;
    }

    /* Grid de Links */
    .f-grid {
      display: grid;
      gap: 2.5rem;
    }

    .f-grid b {
      display: block;
      color: #fff;
      font-weight: 400;
      font-family: var(--serif);
      font-size: 1.05rem;
      margin-bottom: 1.2rem;
      padding-bottom: .8rem;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .f-grid p {
      margin-bottom: .6rem;
      line-height: 1.6;
    }

    .f-grid a {
      transition: color .3s;
    }

    .f-grid a:hover {
      color: #fff;
    }

    .f-link {
      display: inline-block;
      margin-top: .5rem;
      font-size: .85rem;
      text-decoration: underline;
      text-underline-offset: 4px;
      color: #8499b4;
    }

    /* Base: Copyright e Legal */
    .f-bottom {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, .1);
      padding-top: 2rem;
      font-size: .8rem;
      color: #6b829e;
    }

    .f-bottom p {
      margin: 0;
    }

    .f-bottom a {
      margin-right: 1.5rem;
      transition: color .3s;
    }

    .f-bottom a:hover {
      color: #fff;
    }

    /* Responsivo Desktop */
    @media (min-width: 860px) {
      .f-top {
        grid-template-columns: 1fr 1fr;
        align-items: end;
      }
      .f-news {
        justify-self: end;
        width: 100%;
        max-width: 400px;
      }
      .f-news b {
        text-align: right;
      }
      .f-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
      }
    }

    /* ===== REDUCED MOTION ===== */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
      .ln > span,
      .hero .sub,
      .hero .cta {
        transform: none;
        opacity: 1;
      }
      .rv,
      .wipe,
      .wipe img {
        opacity: 1;
        transform: none;
        clip-path: none;
      }
      .art path {
        stroke-dashoffset: 0;
      }
    }