:root {
    --ink: #20222c;
    --muted: #6d7280;
    --hot-pink: #f8075d;
    --paper: #ffffff;
    --soft: #f6f7fb;
    --footer: #1e2028;
    --shadow: 0 18px 44px rgba(27, 31, 43, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.home-page {
    min-height: 100vh;
    overflow: hidden;
}

.hero {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 42%),
        var(--hero-image);
    background-position: center top;
    background-size: cover;
    display: flex;
    min-height: clamp(560px, 72vw, 735px);
    padding: clamp(22px, 4vw, 52px) clamp(26px, 7vw, 96px);
    position: relative;
}

.hero-actions {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    left: clamp(20px, 4vw, 44px);
    position: fixed;
    right: clamp(20px, 3vw, 34px);
    top: clamp(16px, 2.6vw, 28px);
    z-index: 80;
}

.hero-onboarding {
    align-items: center;
    animation: onboarding-float 2.8s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    color: #171923;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    max-width: min(520px, calc(100vw - 150px));
    min-height: 48px;
    padding: 10px 20px;
    position: relative;
    text-align: left;
}

.hero-onboarding[hidden] {
    display: none;
}

.hero-onboarding::after {
    border-bottom: 9px solid transparent;
    border-left: 13px solid rgba(255, 255, 255, 0.94);
    border-top: 9px solid transparent;
    content: "";
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-onboarding:hover,
.hero-onboarding:focus-visible {
    background: #ffffff;
    outline: 0;
    transform: translateY(-2px);
}

.round-action {
    align-items: center;
    border-radius: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
    justify-content: center;
    min-width: 112px;
    text-align: center;
    transition: filter 180ms ease;
}

.round-action:hover,
.round-action:focus-visible {
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.24));
    outline: 0;
}

.round-action--tooth {
    background: transparent;
    color: #101217;
    position: relative;
}

.round-action__icon {
    align-items: center;
    background: #f81207;
    border-radius: 50%;
    display: inline-flex;
    height: 86px;
    justify-content: center;
    width: 86px;
}

.round-action__icon svg {
    fill: currentColor;
    height: 56px;
    width: 58px;
}

.round-action__label {
    background: rgba(7, 8, 13, 0.94);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 9px 12px;
    pointer-events: none;
    white-space: nowrap;
}

.hero-copy {
    align-self: flex-end;
    color: #ffffff;
    margin-bottom: clamp(44px, 9vw, 116px);
    max-width: min(920px, 88vw);
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(42px, 6.2vw, 74px);
    line-height: 1.05;
    margin: 0;
}

.hero-copy h1 span {
    color: #f81207;
}

.hero-copy p {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    margin: 16px 0 0;
}

@keyframes onboarding-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.section-wrap {
    margin: 0 auto;
    max-width: 1180px;
    width: min(100% - 48px, 1180px);
}

.about-section {
    background: var(--paper);
    padding: clamp(72px, 9vw, 120px) 0;
}

.about-grid {
    align-items: center;
    display: grid;
    gap: clamp(42px, 6vw, 76px);
    grid-template-columns: minmax(280px, 465px) minmax(0, 1fr);
}

.about-photo {
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 0;
    overflow: hidden;
}

.about-photo img {
    aspect-ratio: 0.72;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.about-copy h2,
.section-heading h2 {
    color: var(--ink);
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1.05;
    margin: 0;
}

.about-copy p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin: 14px 0 0;
    text-align: justify;
}

.about-copy .about-goal {
    color: var(--ink);
    font-style: italic;
    font-weight: 700;
    line-height: 1.75;
    margin-top: 22px;
}

.publications-section {
    background: var(--soft);
    padding: clamp(76px, 9vw, 112px) 0 clamp(80px, 10vw, 130px);
}

.section-heading {
    margin: 0 auto 36px;
    max-width: 760px;
    text-align: center;
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 16px 0 0;
}

.publication-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.publication-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(27, 31, 43, 0.08);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 245px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.publication-card:hover,
.publication-card:focus-visible {
    box-shadow: 0 16px 32px rgba(27, 31, 43, 0.14);
    outline: 0;
    transform: translateY(-4px);
}

.publication-card__image {
    align-items: center;
    background: #fbfbfd;
    display: flex;
    height: 116px;
    justify-content: center;
    padding: 18px;
}

.publication-card__image img {
    max-height: 86px;
    object-fit: contain;
    width: 100%;
}

.publication-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 18px 22px;
}

.publication-card__type {
    color: var(--hot-pink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.publication-card strong {
    display: -webkit-box;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.portfolio-footer {
    align-items: center;
    background: var(--footer);
    color: rgba(255, 255, 255, 0.52);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 112px;
    padding: 32px clamp(28px, 6vw, 72px);
}

.portfolio-footer p {
    font-size: 14px;
    margin: 0;
}

.footer-credit {
    text-align: right;
}

.footer-credit a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: var(--hot-pink);
    outline: 0;
}

@media (max-width: 1080px) {
    .hero {
        background-position: 58% top;
    }

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

@media (max-width: 860px) {
    .hero {
        min-height: 620px;
        padding-inline: 32px;
    }

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

    .about-photo {
        justify-self: center;
        max-width: 430px;
        width: 100%;
    }

    .about-copy {
        max-width: 700px;
    }

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

@media (max-width: 620px) {
    .hero {
        background-position: 56% top;
        min-height: 560px;
        padding: 20px 22px 42px;
    }

    .hero-copy {
        margin-bottom: 16px;
        max-width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 10vw, 46px);
    }

    .hero-copy p {
        font-size: clamp(24px, 7vw, 32px);
    }

    .round-action {
        min-width: 76px;
    }

    .round-action__icon {
        height: 58px;
        width: 58px;
    }

    .round-action__icon svg {
        height: 34px;
        width: 36px;
    }

    .round-action__label {
        font-size: 11px;
        padding: 7px 9px;
    }

    .hero-actions {
        gap: 10px;
        left: 14px;
        right: 14px;
        top: 14px;
    }

    .hero-onboarding {
        flex: 1 1 auto;
        font-size: 12px;
        max-width: none;
        min-height: 44px;
        padding: 9px 13px;
    }

    .section-wrap {
        width: min(100% - 32px, 1180px);
    }

    .about-section,
    .publications-section {
        padding-block: 58px;
    }

    .about-copy h2,
    .section-heading h2 {
        font-size: 36px;
    }

    .about-copy p {
        font-size: 15px;
        line-height: 1.72;
        text-align: left;
    }

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

    .publication-card {
        min-height: 220px;
    }

    .portfolio-footer {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding-block: 30px;
    }

    .footer-credit {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-onboarding {
        animation: none;
    }

}
