:root {
    color-scheme: dark;
    --bg: #080819;
    --footer-bg: #080819;
    --text: #ffffff;
    --muted: #a0a0a0;
    --soft: #c0c0c0;
    --line: #222a3a;
    --line-soft: rgba(98, 181, 229, 0.24);
    --panel: rgba(8, 8, 25, 0.78);
    --accent: #62b5e5;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--bg);
    font-family: 'Alte Haas Grotesk', Arial, sans-serif;
    font-weight: normal;
    line-height: 1.7em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font: inherit;
}

#page-container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    overflow: hidden;
}

.credit-name:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.site-footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

.hero {
    display: grid;
    align-content: center;
    justify-items: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: max(4rem, 14vh) 15px 4rem;
    text-align: center;
}

.hero-stage {
    width: min(18rem, 50vw);
    margin: 0 auto 1.35rem;
}

.hero-logo {
    display: block;
    width: 100%;
    height: auto;
}

.hero-copy {
    width: min(58rem, 100%);
}

.hero h1 {
    max-width: 58rem;
    margin: 0 auto;
    color: var(--accent);
    font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3.55rem;
    line-height: 1.24;
    font-weight: 400;
    font-stretch: 125%;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-wrap: balance;
    transform: scaleX(1.08);
    transform-origin: center;
}

.hero-subtitle {
    margin: 0.04rem auto 0;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.credits {
    position: relative;
    margin: 2.35rem auto 0;
}

.credit-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.05rem;
}

.credit {
    position: relative;
}

.bio-linkedin {
    display: inline-block;
    margin-top: 0.6rem;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credit-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.25rem 0.12rem;
    border: 0;
    border-radius: 0.15rem;
    color: rgba(192, 192, 192, 0.72);
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 300;
    text-decoration: none;
    transition: color 160ms ease;
}

.credit-name:hover,
.credit.is-open .credit-name {
    color: var(--accent);
    text-decoration: none;
}

.credit-divider {
    color: rgba(192, 192, 192, 0.42);
}

.bio-reveal {
    display: grid;
    width: min(40rem, 100%);
    min-height: 5.5rem;
    margin: 0.8rem auto 0;
    color: var(--muted);
}

.bio-card {
    grid-area: 1 / 1;
    align-self: start;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.2rem);
    transition: opacity 160ms ease, transform 160ms ease;
}

.bio-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bio-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.bio-card strong {
    color: var(--text);
    font-weight: 500;
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--muted);
    padding: 1.2rem 15px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 0.18em;
    }
}

@media (max-width: 768px) {
    .hero {
        width: 94%;
        padding-top: max(4.5rem, 12vh);
        padding-bottom: 3rem;
    }

    .hero-stage {
        width: min(14.5rem, 46vw);
    }

    .hero h1 {
        font-size: 2.7rem;
        letter-spacing: 0.14em;
    }

    .credits {
        margin-top: 1.35rem;
    }

    .credit-name {
        min-height: 2.1rem;
        font-size: 0.95rem;
    }

    .bio-reveal {
        min-height: 7rem;
    }
}

@media (max-width: 540px) {
    .hero {
        align-content: center;
        padding-top: max(7rem, 25vh);
    }

    .hero-stage {
        width: min(12rem, 54vw);
        margin-top: 0.4rem;
    }

    .hero h1 {
        font-size: 2.3rem;
        letter-spacing: 0.12em;
        line-height: 1.24;
    }

    .credits {
        margin-top: 4rem;
    }

    .credit-line {
        flex-direction: column;
        gap: 1rem;
    }

    .credit.is-open .credit-name::before {
        content: "";
        position: absolute;
        left: -0.85rem;
        top: 50%;
        width: 2px;
        height: 1.1rem;
        background: var(--accent);
        transform: translateY(-50%);
    }

    .credit-divider {
        display: none;
    }

    .bio-reveal {
        min-height: 10rem;
        margin-top: 0.55rem;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

}
