:root {
    --navy: #071433;
    --navy-soft: #101f45;
    --blue: #3f63e8;
    --blue-dark: #2849c5;
    --cream: #f7f5f0;
    --paper: #fffdfa;
    --ink: #15203b;
    --muted: #667087;
    --line: #e3e6ee;
    --coffee: #ffdd72;
    --radius: 24px;
    --shadow: 0 22px 60px rgba(7, 20, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 6.6vw, 5.9rem);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 3.6vw, 3.35rem);
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: white;
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    min-height: 124px;
    overflow: hidden;
    color: white;
    background: var(--navy);
}

.header-art {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(7, 20, 51, 0.55), rgba(7, 20, 51, 0.04)), url("header.webp");
    background-position: center;
    background-size: cover;
    opacity: 0.92;
}

.header-inner {
    position: relative;
    display: flex;
    min-height: 124px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover:not(.button-disabled) {
    transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.brand:focus-visible {
    outline: 3px solid var(--coffee);
    outline-offset: 4px;
}

.button-small {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.94rem;
}

.button-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(7, 20, 51, 0.3);
    backdrop-filter: blur(8px);
}

.button-ghost:hover {
    background: rgba(7, 20, 51, 0.56);
}

.button-primary {
    color: white;
    background: var(--blue);
    box-shadow: 0 12px 26px rgba(63, 99, 232, 0.28);
}

.button-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 16px 34px rgba(63, 99, 232, 0.32);
}

.button-dark {
    color: white;
    background: var(--navy);
}

.button-disabled {
    color: #747d91;
    border-color: #dfe3eb;
    background: #edf0f5;
    cursor: default;
}

.button-coffee {
    min-width: 240px;
    color: var(--navy);
    background: var(--coffee);
    box-shadow: 0 12px 26px rgba(4, 13, 34, 0.24);
}

.button-coffee:hover {
    background: #ffe58f;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(50px, 9vw, 130px);
    align-items: center;
    padding-block: clamp(76px, 10vw, 140px);
}

.eyebrow {
    margin-bottom: 17px;
    color: var(--blue-dark);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    max-width: 720px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.text-link {
    color: var(--blue-dark);
    font-weight: 750;
    text-underline-offset: 4px;
}

.portrait-card {
    position: relative;
    margin: 0;
}

.portrait-card::before {
    position: absolute;
    z-index: -1;
    inset: -18px 22px 35px -22px;
    border-radius: 34px;
    background: #e7ebfb;
    content: "";
    transform: rotate(-4deg);
}

.portrait-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.portrait-card figcaption {
    display: grid;
    gap: 2px;
    width: calc(100% - 28px);
    margin: -42px auto 0;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 10px 32px rgba(7, 20, 51, 0.14);
    backdrop-filter: blur(12px);
}

.portrait-card figcaption strong {
    color: var(--navy);
}

.portrait-card figcaption span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.projects-section {
    padding-block: clamp(76px, 9vw, 120px);
    background: var(--cream);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    color: #3d4b68;
    border: 1px solid #dce0e8;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
    font-weight: 720;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e7a33d;
    box-shadow: 0 0 0 4px rgba(231, 163, 61, 0.16);
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(36px, 7vw, 90px);
    align-items: center;
    padding: clamp(30px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid #e4e6ec;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.project-kicker {
    margin-bottom: 10px;
    color: var(--blue-dark);
    font-weight: 760;
}

.project-main > p:not(.project-kicker) {
    max-width: 700px;
    color: var(--muted);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 30px 0 34px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    color: #374158;
    font-size: 0.94rem;
}

.feature-list li::before {
    position: absolute;
    top: 0.62em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--blue);
    content: "";
    transform: rotate(45deg);
}

.project-action {
    display: flex;
    align-items: center;
    gap: 18px;
}

.project-action p {
    max-width: 270px;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.scoreboard-preview {
    padding: 20px;
    color: white;
    border: 8px solid #16213e;
    border-radius: 30px;
    background: #0c1736;
    box-shadow: 0 30px 55px rgba(7, 20, 51, 0.27);
    transform: rotate(2deg);
}

.preview-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #9ea9c8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.score-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 10px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
}

.score-row:nth-of-type(3) {
    background: rgba(63, 99, 232, 0.3);
}

.player {
    color: #dde3f6;
    font-weight: 670;
}

.score-row strong {
    color: var(--coffee);
    font-size: 1.8rem;
    line-height: 1;
}

.preview-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px;
    border-radius: 12px;
    background: var(--blue);
}

.preview-bottom span {
    font-size: 1.35rem;
    line-height: 1;
}

.preview-bottom small {
    font-weight: 760;
}

.support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-block: clamp(72px, 9vw, 120px);
    padding: clamp(30px, 5vw, 58px);
    color: white;
    border-radius: var(--radius);
    background: var(--navy);
    box-shadow: var(--shadow);
}

.support .eyebrow {
    color: #9bb0ff;
}

.support h2 {
    margin-bottom: 10px;
    color: white;
}

.support p:last-child {
    margin-bottom: 0;
    color: #bdc7df;
}

.site-footer {
    padding-block: 28px;
    color: #7a8398;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .portrait-card {
        width: min(330px, 90%);
        margin-inline: auto;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .scoreboard-preview {
        width: min(420px, 100%);
        margin-inline: auto;
        transform: none;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

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

    .site-header,
    .header-inner {
        min-height: 96px;
    }

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

    .hero {
        padding-block: 64px 80px;
    }

    .section-heading,
    .support,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading {
        gap: 20px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .project-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .support .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
