:root {
    --bg: #ffffff;
    --text: #31465f;
    --muted: #6d7e92;
    --line: #e8edf3;
    --panel: #fbfcfe;
    --accent: #6f97b4;
    --accent-soft: #edf4f7;
    --footer: #556274;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", sans-serif;
}

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

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

.container {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.hero {
    height: 100vh;
    height: 100svh;
    padding: 0;
}

.hero > .container {
    width: 100%;
    max-width: none;
}

.hero-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    height: 100svh;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0) 58%),
        #ffffff;
    box-shadow: none;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 40px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.08rem;
    font-weight: 600;
}

.brand-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: var(--accent);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 72px), var(--max-width));
    margin: 0 auto;
    padding: 64px 0 0;
    text-align: center;
}

.hero h1 {
    max-width: 760px;
    margin: 0 auto;
    color: #102947;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 4.7rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.95;
}

.hero-meta {
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.55;
}

.hero-authors {
    margin: 10px auto 0;
    color: #8a9bae;
    font-size: 0.92rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    font-weight: 600;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
    border-color: #cfd9e4;
}

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.button-primary:hover {
    background: #5e86a3;
    border-color: #5e86a3;
}

.hero-scene {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 0;
    margin: -92px 0 0;
    background: #cce5ee url("./../images/start-background.svg") center bottom / cover no-repeat;
}

.hero-scene::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 45%;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 22%, rgba(255, 255, 255, 0.56) 54%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-art {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.section {
    padding: 26px 0;
}

.section-title {
    margin: 0 0 28px;
    font-size: 2.7rem;
    font-weight: 500;
    letter-spacing: 0;
}

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

.card {
    min-height: 100%;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
}

.card h3 {
    margin: 0 0 16px;
    font-size: 1.7rem;
    font-weight: 500;
    text-align: center;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.media-card {
    padding: 0;
    overflow: hidden;
}

.media-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f4f7fb;
}

.card-body {
    padding: 24px 26px 28px;
}

.abstract-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 22px 24px;
    border: 0;
}

.abstract-card p {
    color: #7b8ca0;
    font-size: 0.94rem;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.48;
}

.video-embed {
    max-width: 900px;
    margin: 12px auto 0;
    padding: 0 24px;
}

.video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    background: #f4f7fb;
}

#about .section-title {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

#about .abstract-title {
    margin-bottom: 0;
    padding-top: 24px;
    font-size: 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.link-box {
    padding: 30px 28px;
    border: 1px solid var(--line);
    background: #ffffff;
    text-align: center;
}

.link-box h3 {
    margin: 0 0 16px;
    font-size: 1.55rem;
    font-weight: 500;
}

.link-box p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.75;
}

.citation {
    max-width: 900px;
    margin: 10px auto 0;
}

.citation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.copy-button {
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #8ea0b2;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1;
    min-height: 24px;
    padding: 0 6px;
}

.copy-button:hover {
    color: var(--text);
    border-color: #d8e0e8;
}

.citation pre {
    margin: 0;
    white-space: pre-wrap;
    padding: 20px 24px;
    background: #f1f1f1;
    color: #26313e;
    font-family: "SFMono-Regular", "Consolas", monospace;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

#paper .section-title {
    margin: 0;
    color: #5f6d7c;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
}

.site-footer {
    margin-top: 40px;
    padding: 22px 0 18px;
    background: var(--footer);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.site-footer p {
    margin: 0;
    line-height: 1.6;
}

.site-footer p + p {
    opacity: 0.82;
}

@media (max-width: 980px) {
    .grid-2,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 4.2rem;
    }

    .citation pre {
        padding: 16px 18px;
        font-size: 0.76rem;
        line-height: 1.25;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 22px), var(--max-width));
    }

    .hero-nav {
        align-items: flex-start;
        width: 100%;
        padding: 22px 20px 0;
    }

    .nav-links {
        justify-content: flex-end;
        gap: 10px 14px;
        font-size: 0.82rem;
    }

    .brand span:last-child {
        display: none;
    }

    .hero-copy {
        width: min(calc(100% - 32px), var(--max-width));
        padding: 50px 0 0;
    }

    .hero h1 {
        font-size: 3.45rem;
    }

    .hero-meta {
        font-size: 1rem;
    }

    .hero-scene {
        margin-top: -54px;
    }

    .section-title {
        font-size: 2.15rem;
    }
}
