:root {
    --ink: #142321;
    --paper: #f3f0e9;
    --accent: #1d8075;
    --accent-light: #88d9ca;
    --line: rgba(20, 35, 33, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #1e2928;
    color: var(--ink);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.hero {
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    position: relative;
}

.hero__image,
.hero__shade {
    inset: 0;
    position: absolute;
}

.hero__image {
    background-image: url("../images/clini-consultation-hero.png");
    background-position: center center;
    background-size: cover;
    z-index: -3;
}

.hero__shade {
    background:
        linear-gradient(90deg, rgba(243, 240, 233, 0.99) 0%, rgba(243, 240, 233, 0.96) 30%, rgba(243, 240, 233, 0.6) 48%, rgba(13, 26, 25, 0.04) 68%),
        linear-gradient(180deg, rgba(10, 23, 22, 0.14), transparent 24%, transparent 72%, rgba(10, 23, 22, 0.52));
    z-index: -2;
}

.contact-link {
    background: #253d39;
    border: 1px solid #253d39;
    border-radius: 999px;
    bottom: 2.5rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    left: max(3rem, calc((100% - 1480px) / 2));
    padding: 0.9rem 1.3rem;
    position: absolute;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, transform 180ms ease;
    z-index: 2;
}

.contact-link:hover,
.contact-link:focus-visible {
    background: #102522;
    transform: translateY(-2px);
}

.site-footer,
.hero__content {
    margin-inline: auto;
    width: min(100% - 6rem, 1480px);
}

.hero__content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100svh;
    padding-block: 3.25rem 7rem;
}

.wordmark {
    display: flex;
    flex-direction: column;
    font-size: clamp(2.15rem, 3.6vw, 4rem);
    font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.075em;
    line-height: 0.88;
    margin: 0;
    text-transform: uppercase;
    width: max-content;
}

.wordmark::after {
    background: linear-gradient(90deg, rgba(38, 83, 78, 0.85), rgba(119, 139, 132, 0.22), transparent);
    content: "";
    height: 1px;
    margin-top: 0.65em;
    width: 7.5em;
}

.wordmark__clinical,
.wordmark__intelligence {
    -webkit-background-clip: text;
    background-image: linear-gradient(180deg, #1a2928 0%, #61706d 43%, #132321 51%, #314542 100%);
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(0 1px 1px rgba(9, 27, 24, 0.15));
    white-space: nowrap;
}

.wordmark__clinical {
    padding-bottom: 0.18em;
}

.wordmark__intelligence {
    margin-left: 3.9em;
}

.wordmark__ai {
    -webkit-background-clip: text;
    background-image: linear-gradient(180deg, #71817e 0%, #3b5551 43%, #203a36 53%, #506762 100%);
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(0 1px 1px rgba(9, 27, 24, 0.15));
}

.site-footer {
    align-items: center;
    bottom: 0;
    color: #fff;
    display: flex;
    font-size: 0.74rem;
    font-weight: 700;
    justify-content: flex-end;
    left: 50%;
    letter-spacing: 0.1em;
    padding-block: 2.65rem;
    position: absolute;
    transform: translateX(-50%);
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.site-footer p,
.site-footer__link {
    margin: 0;
}

.site-footer__link {
    text-decoration: none;
    text-underline-offset: 0.3em;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    text-decoration: underline;
}

.hero__image--nyb {
    background-image: url("../images/nyb-medical-consultation-hero.png");
    background-position: center center;
}

.hero__shade--nyb {
    background:
        linear-gradient(90deg, rgba(243, 240, 233, 0.98) 0%, rgba(243, 240, 233, 0.93) 29%, rgba(243, 240, 233, 0.5) 47%, rgba(13, 26, 25, 0.03) 68%),
        linear-gradient(180deg, rgba(10, 23, 22, 0.1), transparent 25%, transparent 72%, rgba(10, 23, 22, 0.5));
}

.nyb-introduction {
    margin-top: 0;
}

.nyb-wordmark {
    -webkit-background-clip: text;
    background-image: linear-gradient(180deg, #1a2928 0%, #61706d 43%, #132321 51%, #314542 100%);
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(0 1px 1px rgba(9, 27, 24, 0.15));
    font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(2rem, 3.6vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.nyb-wordmark::after {
    background: linear-gradient(90deg, rgba(38, 83, 78, 0.85), rgba(119, 139, 132, 0.22), transparent);
    content: "";
    display: block;
    height: 1px;
    margin-top: 0.65em;
    width: 7.5em;
}

.nyb-services,
.clini-services {
    color: rgba(20, 35, 33, 0.82);
    font-size: clamp(0.9rem, 1.25vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.055em;
    line-height: 1.75;
    margin: 1.5rem 0 0;
}

@media (max-width: 820px) {
    .contact-link {
        bottom: 1.25rem;
        left: 1.25rem;
    }

    .hero__image {
        background-position: 62% center;
    }

    .hero__image--nyb {
        background-position: 60% center;
    }

    .hero__shade {
        background:
            linear-gradient(90deg, rgba(243, 240, 233, 0.97) 0%, rgba(243, 240, 233, 0.9) 55%, rgba(243, 240, 233, 0.2) 100%),
            linear-gradient(180deg, rgba(11, 25, 24, 0.04), transparent 70%, rgba(11, 25, 24, 0.72));
    }

    .site-footer,
    .hero__content {
        width: min(100% - 2.5rem, 42rem);
    }

    .hero__content {
        min-height: 100svh;
        padding-block: 2rem 7rem;
    }

    .wordmark {
        font-size: clamp(1.45rem, 5.9vw, 2.8rem);
        line-height: 0.9;
    }

    .site-footer {
        bottom: 0;
        font-size: 0.62rem;
        padding-bottom: 1.45rem;
    }

    .nyb-wordmark {
        font-size: clamp(1.45rem, 6.6vw, 2.8rem);
    }

    .nyb-services,
    .clini-services {
        font-size: clamp(0.78rem, 3.2vw, 1rem);
        margin-top: 1.15rem;
    }

}

@media (max-width: 430px) {
    .hero__content {
        padding-top: 1.5rem;
    }

    .wordmark {
        font-size: clamp(1.2rem, 5.25vw, 1.45rem);
    }

    .nyb-wordmark {
        font-size: clamp(1.35rem, 6.5vw, 1.7rem);
        letter-spacing: 0.035em;
    }

    .site-footer {
        font-size: 0.57rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
