.nav-cta,
.btn-primary-custom {
    background: var(--green);
    color: #fff !important;
    border: 0;
    border-radius: 3px;
    padding: 13px 19px;
    font-size: 11px;
    letter-spacing: .035em;
    transition: .2s
}

.nav-cta:hover,
.btn-primary-custom:hover {
    background: var(--ink);
    color: #fff !important;
    transform: translateY(-1px)
}

.hero {
    position: relative;
    min-height: 630px;
    display: grid;
    grid-template-columns: 48% 52%;
    overflow: hidden;
    background: var(--paper)
}

.hero-copy {
    padding: 96px 6vw 88px max(7vw, calc((100vw - 1200px)/2));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 2
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px
}

.eyebrow:before {
    content: '';
    width: 24px;
    height: 1px;
    background: #9ab8c9
}

.hero h1 {
    font: 400 clamp(48px, 5.4vw, 76px)/1.06 var(--serif);
    letter-spacing: -.045em;
    margin: 23px 0 18px;
    max-width: 580px
}

.hero h1 em {
    font-weight: 400;
    color: #5586a2
}

.hero-copy>p {
    max-width: 370px;
    color: #6c7c88;
    font-size: 14px;
    line-height: 1.85;
    margin: 0 0 29px
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px
}

.text-link {
    font-size: 11px;
    border-bottom: 1px solid #a7bac6;
    padding: 6px 0
}

.hero-meta {
    margin-top: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #657b89;
    font-size: 10px
}

.avatars {
    display: flex
}

.avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--paper);
    margin-left: -8px
}

.avatars img:first-child {
    margin-left: 0
}

.stars {
    color: #b48e5a;
    letter-spacing: 2px;
    font-size: 11px
}

.hero-visual {
    position: relative;
    min-height: 630px;
    background: #dceaf1;
    overflow: hidden
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease
}

.hero-slide.active {
    opacity: 1
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 37%;
    filter: saturate(.76)
}

.hero-visual:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(25, 54, 77, .13), transparent 30%), linear-gradient(0deg, rgba(20, 43, 61, .18), transparent 35%);
    pointer-events: none
}

.slide-caption {
    position: absolute;
    z-index: 1;
    bottom: 36px;
    left: 40px;
    color: white;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase
}

.slide-controls {
    position: absolute;
    z-index: 2;
    right: 35px;
    bottom: 30px;
    display: flex;
    gap: 8px
}

.slide-dot {
    width: 23px;
    height: 23px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: none;
    color: white;
    font-size: 9px;
    padding: 0
}

.slide-dot.active {
    background: white;
    color: var(--ink)
}

.floating-note {
    position: absolute;
    z-index: 2;
    top: 49px;
    right: 40px;
    background: rgba(255, 255, 255, .92);
    padding: 15px 18px;
    font-size: 10px;
    letter-spacing: .05em;
    box-shadow: 0 12px 35px #173b3612
}

.floating-note b {
    display: block;
    font: 16px var(--serif);
    margin-bottom: 3px
}

.scroll-mark {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 3;
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    writing-mode: vertical-rl;
    display: flex;
    gap: 9px;
    align-items: center
}

.scroll-mark:after {
    content: '';
    width: 1px;
    height: 32px;
    background: #ffffffb5
}

.trust-strip {
    padding: 20px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #edf1f3;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: .07em;
    color: #647269
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 9px
}

.trust-item b {
    color: var(--green);
    font: 17px var(--serif)
}

.section {
    padding: 105px max(7vw, calc((100vw - 1200px)/2))
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 38px
}

.section h2 {
    font: 400 clamp(36px, 4vw, 52px)/1.1 var(--serif);
    letter-spacing: -.035em;
    margin: 14px 0 0
}

.section-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 300px;
    margin: 0
}

.services {
    background: var(--cream)
}

.service-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.service-card {
    position: relative;
    min-height: 325px;
    padding: 23px;
    background: #eaf2f6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .35s
}

.service-card:hover {
    transform: translateY(-5px)
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .62;
    transition: transform .6s, opacity .3s
}

.service-card:hover img {
    transform: scale(1.05);
    opacity: .74
}

.service-card:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 50, 70, .02), rgba(22, 50, 70, .72))
}

.service-card>*:not(img) {
    z-index: 1;
    position: relative
}

.service-num {
    font-size: 10px;
    letter-spacing: .14em;
    color: #fff
}

.service-bottom {
    color: white
}

.service-bottom h3 {
    font: 25px var(--serif);
    margin: 0 0 8px
}

.service-bottom p {
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
    max-width: 210px;
    color: #f3f3ed
}

.service-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    border: 1px solid #ffffffc9;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px
}

.services-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    color: #74818b;
    font-size: 11px
}

.carousel-controls {
    display: flex;
    gap: 7px
}

.circle-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #c8d4dc;
    background: transparent;
    border-radius: 50%;
    color: var(--green)
}

.circle-btn:hover {
    background: var(--green);
    color: #fff
}

.about {
    background: #e9f1f5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
    padding-top: 104px;
    padding-bottom: 104px
}

.before-after {
  --reveal: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  background: #e8eef2;
  border-radius: 18px;
}

.before-after > .after-img,
.before-img-wrap,
.before-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.before-after > .after-img,
.before-img-wrap img {
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.before-img-wrap {
  z-index: 1;
  overflow: hidden;
  width: var(--reveal);
  border-right: 2px solid #fff;
}

.ba-label {
  position: absolute;
  z-index: 2;
  top: 14px;
  padding: 7px 11px;
  color: #19364d;
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
}

.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }

.ba-handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: var(--reveal);
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #19364d;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 14px #19364d35;
  pointer-events: none;
}

.ba-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-caption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  color: #fff;
  background: #19364dcc;
  border-radius: 6px;
  font-size: 11px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .before-after {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  .before-after > .after-img,
  .before-img-wrap img {
    object-position: center 48%;
  }
}

.ba-label {
    position: absolute;
    top: 18px;
    padding: 8px 12px;
    background: #fffE;
    color: var(--ink);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .13em;
    z-index: 2
}

.ba-label.before {
    left: 17px
}

.ba-label.after {
    right: 17px
}

.ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: ew-resize;
    z-index: 4
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 14px #1a33252e;
    display: grid;
    place-items: center;
    z-index: 3;
    color: var(--green);
    font-size: 15px;
    pointer-events: none
}

.ba-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #122e27ad);
    color: #fff;
    padding: 48px 20px 18px;
    font-size: 10px;
    letter-spacing: .08em;
    z-index: 2
}

.about-copy h2 {
    font-size: clamp(38px, 4vw, 54px);
    max-width: 450px;
    margin: 17px 0 17px
}

.about-copy>p {
    color: #657b89;
    font-size: 13px;
    line-height: 1.9;
    max-width: 450px
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin: 28px 0 30px
}

.point {
    font-size: 11px;
    color: #607482;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.6
}

.point i {
    font-style: normal !important;
    color: var(--green) !important;
    font-size: 15px
}

.about-copy .btn-primary-custom {
    display: inline-block
}

.clinic {
    background: var(--paper);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    align-items: center
}

.clinic-image {
    height: 440px;
    position: relative
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.72)
}

.clinic-image:after {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid #b4ccd9;
    z-index: 0
}

.clinic-image img {
    position: relative;
    z-index: 1
}

.clinic-copy h2 {
    max-width: 450px
}

.clinic-copy>p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 420px;
    margin: 18px 0 25px
}

.clinic-details {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    font-size: 11px
}

.clinic-details small {
    display: block;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: .13em;
    color: #8a938b;
    margin-bottom: 5px
}

.clinic-details b {
    font-weight: 500
}

.testimonial {
    background: var(--ink);
    color: #f8f6ef;
    padding: 83px 8%;
    text-align: center
}

.quote-mark {
    font: 70px/.7 var(--serif);
    color: #9caf9f
}

.testimonial blockquote {
    font: 400 clamp(24px, 3vw, 37px)/1.42 var(--serif);
    max-width: 800px;
    margin: 25px auto
}

.testimonial cite {
    font: 10px var(--sans);
    font-style: normal;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #bdc9bf
}

.stars-light {
    color: #c8a672;
    letter-spacing: 3px;
    font-size: 11px;
    margin-bottom: 13px
}

.booking {
    padding: 76px 7%;
    background: #eaeef0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.booking h2 {
    font: 400 clamp(35px, 4vw, 51px)/1.1 var(--serif);
    margin: 10px 0 0;
    max-width: 600px
}

.booking .btn-primary-custom {
    white-space: nowrap
}
/*

.footer {
    background: #f7f5f0;
    padding: 30px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #728076;
    font-size: 10px
}

.footer-brand {
    font: 21px var(--serif);
    color: var(--ink)
}

.footer-brand img {
    width: 88px;
    height: 68px;
    object-fit: contain;
    mix-blend-mode: multiply
}

.footer-links {
    display: flex;
    gap: 22px
}*/

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s, transform .6s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:900px) {
    .nav-links {
        gap: 17px
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        min-height: 580px
    }

    .hero-copy {
        padding-left: 6vw;
        padding-right: 3vw
    }

    .hero-visual {
        min-height: 580px
    }

    .trust-strip {
        padding: 18px 5%;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center
    }

    .section {
        padding: 80px 6vw
    }

    .service-track {
        grid-template-columns: repeat(2, 1fr)
    }

    .about,
    .clinic {
        gap: 6%
    }


}

@media(max-width:640px) {
    .announcement {
        font-size: 8px
    }

    .navbar {
        padding: 5px 0
    }

    .nav-links {
        display: none;
        position: absolute;
        z-index: 10;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--cream);
        padding: 22px 7%;
        box-shadow: 0 15px 20px #173b3610;
        flex-direction: column;
        align-items: flex-start
    }

    .nav-links.open {
        display: flex
    }

    .nav-cta {
        margin-left: auto;
        margin-right: 12px;
        padding: 11px 13px;
        font-size: 10px
    }

    .menu-toggle {
        display: block
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto
    }

    .hero-copy {
        padding: 62px 8% 35px
    }

    .hero h1 {
        font-size: 53px
    }

    .hero-meta {
        margin-top: 36px
    }

    .hero-visual {
        min-height: 420px
    }

    .floating-note {
        top: 20px;
        right: 20px
    }

    .slide-caption {
        left: 20px;
        bottom: 24px
    }

    .slide-controls {
        right: 17px;
        bottom: 19px
    }

    .trust-strip {
        justify-content: flex-start;
        overflow: hidden;
        flex-wrap: nowrap;
        padding: 17px 8%;
        font-size: 9px
    }

    .trust-item {
        white-space: nowrap
    }

    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        display: none
    }

    .section {
        padding: 69px 7%
    }

    .section-head {
        display: block
    }

    .section-sub {
        margin-top: 15px
    }

    .service-track {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }

    .service-card {
        min-height: 270px;
        padding: 16px
    }

    .service-bottom h3 {
        font-size: 20px
    }

    .service-bottom p {
        font-size: 10px
    }

    .services-foot {
        font-size: 10px
    }

    .about,
    .clinic {
        grid-template-columns: 1fr;
        gap: 45px
    }

    .about-copy h2 {
        font-size: 43px
    }

    .about-points {
        gap: 14px
    }

    .clinic-image {
        height: 330px;
        margin-right: 14px
    }

    .clinic-copy h2 {
        font-size: 43px
    }

    .testimonial {
        padding: 68px 8%
    }

    .booking {
        padding: 57px 8%;
        align-items: flex-start;
        flex-direction: column
    }

    .footer {
        padding: 25px 7%;
        flex-wrap: wrap;
        gap: 15px
    }

    .footer-links {
        gap: 12px
    }

    .footer-links a:nth-child(2) {
        display: none
    }
}

.service-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 1px 12px
}

.service-track::-webkit-scrollbar {
    display: none
}

.service-card {
    flex: 0 0 calc(25% - 11px);
    scroll-snap-align: start
}

@media(max-width:900px) {
    .service-card {
        flex-basis: calc(50% - 8px)
    }
}

@media(max-width:640px) {
    .service-track {
        gap: 9px
    }

    .service-card {
        flex-basis: 78%
    }
}

.services-carousel {
    position: relative
}

.carousel-overview {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin: 0 0 19px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase
}

.carousel-kicker {
    color: var(--green);
    font-weight: 600
}

.carousel-position {
    font-variant-numeric: tabular-nums
}

.carousel-position i {
    font-style: normal;
    color: #a9b5bc;
    padding: 0 4px
}

.carousel-current {
    grid-column: 3;
    grid-row: 1;
    color: var(--ink);
    font: italic 17px var(--serif);
    letter-spacing: 0;
    text-transform: none
}

.carousel-progress {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    height: 2px;
    background: #dce5ea;
    overflow: visible
}

.carousel-progress>span {
    display: block;
    width: 16.67%;
    height: 100%;
    background: var(--green);
    transition: width .45s ease
}

.tooth-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16.67%;
    width: 19px;
    height: 22px;
    overflow: visible;
    transform: translate(-50%, -54%);
    fill: #fff;
    stroke: var(--green);
    stroke-width: 1.35;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 2px #19364d20);
    transition: left .45s cubic-bezier(.2, .75, .25, 1)
}

.service-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 1px 13px;
    touch-action: pan-x;
    cursor: grab;
    overscroll-behavior-inline: contain
}

.service-track:active {
    cursor: grabbing
}

.service-track::-webkit-scrollbar {
    display: none
}

.service-card {
    position: relative;
    display: flex;
    flex: 0 0 calc(33.333% - 11px);
    min-height: 355px;
    padding: 22px;
    background: #eaf2f6;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .35s, box-shadow .35s;
    scroll-snap-align: start;
    isolation: isolate
}

.service-card:hover,
.service-card.is-current {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px #19364d19
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .73;
    transition: transform .7s, opacity .35s;
    z-index: -2
}

.service-card:hover img,
.service-card.is-current img {
    transform: scale(1.045);
    opacity: .88
}

.service-card:before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: linear-gradient(180deg, rgba(14, 40, 61, .06) 10%, rgba(14, 40, 61, .12) 42%, rgba(14, 40, 61, .88) 100%);*/
     background: rgba(14, 40, 61, .45);
    z-index: -1
}

.service-card:after {
    display: none
}

.service-num {
    font-size: 9px;
    letter-spacing: .15em;
    color: #fff;
    background: #ffffff25;
    border: 1px solid #ffffff4a;
    padding: 8px 10px;
    align-self: flex-start;
    backdrop-filter: blur(8px)
}

.service-bottom {
    color: white;
    max-width: 82%
}

.service-bottom h3 {
    font: 26px/1.1 var(--serif);
    margin: 0 0 9px
}

.service-bottom p {
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
    color: #eef5f9
}

.service-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    border: 1px solid #ffffffa6;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    transition: background .25s, transform .25s
}

.service-arrow-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round
}

.service-card:hover .service-arrow,
.service-card.is-current .service-arrow {
    background: #fff;
    color: var(--ink);
    transform: translateX(2px)
}

.services-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    color: var(--muted);
    font-size: 11px
}

.carousel-controls {
    display: flex;
    gap: 7px
}

.circle-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    color: #718894;
    display: grid;
    place-items: center;
    transition: background .2s, color .2s
}

.circle-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round
}

.circle-btn:hover,
.circle-btn:focus-visible {
    background: #e9f2f6;
    color: var(--ink)
}

.circle-btn:focus-visible,
.service-card:focus-visible {
    outline: 3px solid #70b8de;
    outline-offset: 3px
}

@media(max-width:900px) {
    .service-card {
        flex-basis: calc(50% - 8px);
        min-height: 330px
    }
}

@media(max-width:640px) {
    .carousel-overview {
        grid-template-columns: auto 1fr;
        gap: 10px
    }

    .carousel-current {
        grid-column: 1;
        grid-row: 2
    }

    .carousel-progress {
        grid-column: 2;
        grid-row: 2
    }

    .service-track {
        gap: 12px
    }

    .service-card {
        flex-basis: 86%;
        min-height: 315px
    }

    .services-foot {
        font-size: 10px
    }

    .circle-btn {
        width: 35px;
        height: 35px
    }
}

.service-card {
    font: inherit;
    text-align: left;
    color: inherit;
    border: 0;
    cursor: pointer
}

.service-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 19px 2px 4px;
    margin-top: 8px
}

.service-detail span {
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 600
}

.service-detail h3 {
    font: 22px var(--serif);
    margin: 5px 0 3px;
    color: var(--ink)
}

.service-detail p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6
}

.service-detail-link {
    font-size: 10px;
    letter-spacing: .04em;
    color: var(--green);
    white-space: nowrap;
    border-bottom: 1px solid #9ab8c9;
    padding: 0 0 7px
}

.service-detail-link b {
    font-size: 14px;
    font-weight: 400;
    margin-left: 7px
}

.service-detail-link:hover {
    color: var(--ink)
}

@media(max-width:640px) {
    .service-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px
    }

    .service-detail h3 {
        font-size: 21px
    }
}

.carousel-overview {
    position: relative;
    grid-template-columns: auto minmax(90px, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 11px 16px;
    margin-bottom: 20px
}

.carousel-kicker {
    grid-column: 1;
    grid-row: 1
}

.carousel-overview>.carousel-controls {
    grid-column: 3;
    grid-row: 1;
    justify-self: end
}

.carousel-position {
    grid-column: 1;
    grid-row: 2
}

.carousel-overview>.carousel-progress {
    grid-column: 2;
    grid-row: 2
}

.carousel-overview>.carousel-current {
    grid-column: 3;
    grid-row: 2;
    white-space: nowrap
}

.service-track {
    padding: 10px 9px 19px;
    margin: -8px -8px 0
}

.service-card.is-current {
    z-index: 2;
    transform: translateY(-5px) scale(1.035);
    box-shadow: 0 20px 40px #19364d26
}

.service-card:hover:not(.is-current) {
    transform: translateY(-3px) scale(1.012)
}

@media(max-width:640px) {
    .carousel-overview {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 10px;
        margin-bottom: 16px
    }

    .carousel-overview>.carousel-controls {
        grid-column: 2;
        grid-row: 1
    }

    .carousel-position {
        grid-column: 1;
        grid-row: 2
    }

    .carousel-overview>.carousel-progress {
        grid-column: 2;
        grid-row: 2
    }

    .carousel-overview>.carousel-current {
        grid-column: 1 / -1;
        grid-row: 3
    }

    .service-track {
        padding: 9px 9px 17px;
        margin: -7px -8px 0
    }

    .service-card.is-current {
        transform: translateY(-3px) scale(1.025)
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* Centra el nombre y la descripción dentro de cada tarjeta de categoría. */
.service-card .service-bottom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 86%;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.service-card .service-bottom h3 {
  color: #fff;
  margin-bottom: 12px;
  text-wrap: balance;
}

.service-card .service-bottom p {
  max-width: 38ch;
  margin-inline: auto;
  text-wrap: pretty;
}

.service-card .service-arrow {
  z-index: 2;
}

/* Comparador antes/después: las dos imágenes ocupan el mismo lienzo y se superponen. */
.before-after {
  --reveal: 50%;
}

.before-after > .after-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.before-after .before-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100%;
  overflow: hidden;
  border: 0;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}

.before-after .before-img-wrap img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.before-after::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

.before-after .ba-handle {
  left: var(--reveal);
  margin: 0;
  transform: translate(-50%, -50%);
}
