:root {
    color-scheme: dark;
    --page-top: #121214;
    --page-bottom: #0d0d0f;
    --surface: rgb(26 27 30 / 0.9);
    --surface-strong: rgb(33 35 40 / 0.94);
    --surface-soft: rgb(41 43 48 / 0.82);
    --line: rgb(96 102 114 / 0.18);
    --line-strong: rgb(96 102 114 / 0.28);
    --text: #eff1f5;
    --text-body: rgb(239 241 245 / 0.94);
    --text-muted: #a5aab3;
    --blue: #427bc9;
    --blue-soft: #6594db;
    --red: #e76f66;
    --red-deep: #a3524f;
    --shadow: 0 28px 56px -32px rgb(0 0 0 / 0.62);
    --shadow-soft: 0 22px 44px -32px rgb(0 0 0 / 0.55);
    --focus-ring: rgb(101 148 219 / 0.78);
    --selection: rgb(101 148 219 / 0.3);
    --radius-panel: 1.5rem;
    --radius-card: 1.15rem;
    --radius-pill: 999px;
    --max-width: 82rem;
    --page-padding: clamp(1rem, 3vw, 1.75rem);
    --panel-padding: clamp(1.15rem, 2.5vw, 1.85rem);
    --wordmark-size: clamp(3rem, 11vw, 7.4rem);
    --role-size: clamp(1.05rem, 2vw, 1.45rem);
    --copy-size: 1.05rem;
    --chip-gap: 0.75rem;
    --chip-padding-block: 0.58rem;
    --chip-padding-inline: 0.96rem;
    --chip-border-alpha: 0.28;
    --chip-border-alpha-hover: 0.42;
    --intime-shadow: rgb(54 46 109 / 0.44);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    background: radial-gradient(circle at 14% 12%, rgb(66 123 201 / 0.22), transparent 24rem), radial-gradient(circle at 86% 14%, rgb(231 111 102 / 0.16), transparent 21rem), radial-gradient(circle at 50% 78%, rgb(66 68 74 / 0.22), transparent 23rem), linear-gradient(180deg, var(--page-top) 0%, var(--page-bottom) 100%);
    overflow-x: hidden;
}

::selection {
    background: var(--selection);
}

a {
    color: inherit;
}

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

main:focus {
    outline: none;
}

.site-shell {
    width: min(calc(100% - (var(--page-padding) * 2)), var(--max-width));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    padding: 0.72rem 1rem;
    border-radius: var(--radius-pill);
    color: var(--text);
    background: rgb(26 27 30 / 0.96);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

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

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem);
}

.hero {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.35rem);
    max-width: 54rem;
    margin-inline: auto;
}

.hero-wordmark {
    margin: 0;
    font-size: var(--wordmark-size);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.055em;
    color: var(--text);
    text-wrap: balance;
    filter: drop-shadow(0 0.7rem 1rem rgb(0 0 0 / 0.14));
    position: relative;
    z-index: 1;
}

.wordmark-initial-red {
    color: var(--red);
    text-shadow: 0.015em 0.02em 0 rgb(163 82 79 / 0.18);
}

.wordmark-initial-blue {
    color: var(--blue);
    text-shadow: 0.015em 0.02em 0 rgb(101 148 219 / 0.18);
}

.hero-role-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 0.85rem;
    margin-top: -42.04px;
    position: relative;
    left: 6.53px;
}

.hero-role {
    margin: 0;
    color: var(--blue);
    font-size: var(--role-size);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.hero-role-rule {
    display: block;
    flex: 1 1 auto;
    min-width: 3.5rem;
    height: 0.7rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgb(101 148 219 / 0.3) 0%, rgb(66 123 201 / 0.2) 65%, rgb(231 111 102 / 0.18) 100%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 0 0.85rem rgb(66 123 201 / 0.08);
}

.hero-summary,
.project-description {
    margin: 0;
    color: var(--text-body);
    font-size: var(--copy-size);
    line-height: 1.85;
}

.hero-grid {
    display: grid;
    gap: 1.25rem;
}

.info-panel,
.section-shell,
.project-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: linear-gradient(180deg, rgb(26 27 30 / 0.92), rgb(31 33 37 / 0.82));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.info-panel {
    padding: var(--panel-padding);
}

.info-panel-title {
    display: grid;
    gap: 0.65rem;
    justify-items: start;
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

    .info-panel-title::after {
        content: "";
        width: clamp(4rem, 12vw, 6rem);
        height: 1px;
        border-radius: var(--radius-pill);
        background: linear-gradient(90deg, rgb(101 148 219 / 0.18) 0%, rgb(239 241 245 / 0.86) 50%, rgb(231 111 102 / 0.18) 100%);
    }

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--chip-gap);
    padding: 0;
    margin: 0;
    list-style: none;
}

    .pill-list > li {
        display: flex;
    }

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: var(--chip-padding-block) var(--chip-padding-inline);
    border: 1px solid rgb(96 102 114 / var(--chip-border-alpha));
    border-radius: var(--radius-pill);
    background: rgb(41 43 48 / 0.82);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.15;
}

.pill-list-skills > li:nth-child(3n + 1) .pill {
    color: var(--blue-soft);
    border-color: rgb(66 123 201 / var(--chip-border-alpha));
}

.pill-list-skills > li:nth-child(3n + 2) .pill {
    color: var(--red);
    border-color: rgb(231 111 102 / var(--chip-border-alpha));
}

.pill-item-location .pill {
    color: var(--blue-soft);
    border-color: rgb(101 148 219 / var(--chip-border-alpha));
}

.pill-link {
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

    .pill-link:hover {
        border-color: rgb(96 102 114 / var(--chip-border-alpha-hover));
        background: rgb(31 33 37 / 0.96);
    }

.pill-label,
.pill-detail {
    font-weight: 700;
}

.pill-separator {
    margin-inline: 0.4rem 0.45rem;
    color: rgb(239 241 245 / 0.48);
}

.pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.12rem;
    height: 1.12rem;
    flex: 0 0 auto;
    opacity: 0.88;
    transform: translateY(-0.06em);
}

    .pill-icon svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

.site-section {
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.section-shell {
    padding: clamp(1.2rem, 2.5vw, 1.9rem);
}

.section-header {
    margin-bottom: clamp(1.15rem, 3vw, 1.7rem);
}

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.project-grid {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    display: grid;
    grid-template-rows: auto 1fr;
    row-gap: clamp(1rem, 2vw, 1.3rem);
    padding: clamp(1rem, 2vw, 1.25rem);
    border-radius: calc(var(--radius-panel) - 0.1rem);
    background: linear-gradient(180deg, rgb(26 27 30 / 0.94), rgb(41 43 48 / 0.82));
}

.project-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.project-brand-link {
    display: inline-flex;
    max-width: 100%;
}

.project-logo {
    width: min(25.625rem, 100%);
}

.project-logo-intime {
    width: min(17.75rem, 100%);
    border-radius: 1rem;
    box-shadow: 0 1rem 1.8rem -1.2rem var(--intime-shadow);
}

.project-content {
    display: grid;
    gap: 0.82rem;
    padding-inline: clamp(0.15rem, 0.7vw, 0.5rem);
}

.site-footer {
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

@media (min-width: 48rem) {
    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 75rem) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 63.998rem) {
    .site-header {
        padding-top: clamp(2.25rem, 7vw, 4rem);
    }
}

@media (max-width: 47.998rem) {
    :root {
        --wordmark-size: clamp(2.5rem, 14vw, 4.35rem);
        --role-size: 1.05rem;
        --chip-gap: 0.65rem;
        --chip-padding-inline: 0.9rem;
    }

    .site-main,
    .site-footer {
        margin-top: clamp(1.75rem, 5vw, 2.5rem);
    }

    .hero-role-row {
        margin-top: -27.24px;
        left: 3.83px;
    }

    .pill {
        font-size: 0.92rem;
    }
}

@media (max-width: 35.998rem) {
    .hero-role-row {
        gap: 0.65rem;
    }

    .hero-role-rule {
        height: 0.58rem;
    }

    .hero-role-row {
        margin-top: -27.63px;
    }
}

@media (prefers-contrast: more) {
    :root {
        --surface: rgb(26 27 30);
        --surface-strong: rgb(26 27 30);
        --surface-soft: rgb(26 27 30);
        --line: rgb(96 102 114 / 0.4);
        --text-body: var(--text);
        --shadow: none;
        --shadow-soft: none;
    }

    .info-panel,
    .section-shell,
    .project-card {
        backdrop-filter: none;
    }

    .pill {
        background: rgb(26 27 30);
        box-shadow: none;
    }

    .pill-link:hover {
        text-decoration: underline;
        text-underline-offset: 0.18em;
    }
}

@media (forced-colors: active) {
    .info-panel,
    .section-shell,
    .project-card,
    .project-brand,
    .pill,
    .skip-link {
        border: 1px solid CanvasText;
        box-shadow: none;
    }

    .hero-role-rule {
        border: 1px solid CanvasText;
        background: Canvas;
    }

    :where(a, button, [tabindex]):focus-visible {
        outline: 2px solid Highlight;
    }
}

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

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