body.portfolio-home {
    background: radial-gradient(ellipse 55rem 38rem at 77% 11rem, #182e47, transparent), #080f20;
    color: #f6f7fb;
}
.shell {
    width: min(100% - 2.5rem, 76rem);
    margin-inline: auto;
    font-family: system-ui, sans-serif;
    --accent: #83d3ff;
    --muted: #bdc9db;
    --rule: #314359;
}
.shell a { color: inherit; text-underline-offset: .24em; }
.shell a:hover, .brand span { color: var(--accent); }
.shell a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
}
.masthead nav { display: flex; gap: clamp(.8rem, 3vw, 1.75rem); }
.masthead a { text-decoration: none; }
.masthead nav a:focus-visible { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
    .masthead nav a {
        transition: transform 160ms ease-out, color 160ms ease-out;
    }

    .masthead nav a:focus-visible {
        transform: scale(1.08);
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .masthead nav a:hover {
        transform: scale(1.08);
    }
}
.brand { font-weight: 760; }
#hero .landing {
    display: grid;
    min-height: 0;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2rem clamp(2rem, 6vw, 5rem);
    padding: clamp(2.5rem, 5vw, 4.25rem) 0;
}
#hero .label, .about .label {
    margin: 0;
    color: var(--accent);
    font: 650 .875rem/1.45 system-ui, sans-serif;
    letter-spacing: .11em;
    text-transform: uppercase;
}
#hero h1, #AboutMe h2, .project h2 {
    margin: .65rem 0 1rem;
    font-family: Georgia, serif;
    font-weight: 400;
    color: #f6f7fb;
    letter-spacing: -.045em;
}
#hero h1 { font-size: clamp(3.5rem, 7vw, 7rem); line-height: .9; }

#hero h1::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 1px;
    margin-top: 1.25rem;
    background: var(--accent);
    opacity: .45;
}

#AboutMe .bio p:not(.label) {
    max-width: 31rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.62;
}
.actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.1rem; }
.actions .button {
    display: inline-block;
    border-radius: .35rem;
    padding: .65rem .9rem;
    background: var(--accent);
    color: #071523;
    text-decoration: none;
    font-weight: 700;
}
.actions .button:hover { background: #b3e6ff; color: #071523; }
.project {
    display: grid;
    min-width: 0;
    background: #111d30;
    border: 1px solid var(--rule);
    border-radius: .8rem;
    overflow: hidden;
}
.project > img { display: block; width: 100%; }
.project > div { padding: 1rem 1.2rem 1.2rem; }
.project h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: .35rem 0; }
#hero .project p:not(.label) { margin: .45rem 0 .65rem; font-size: 1rem; color: var(--muted); }
#hero .project .stack { color: var(--accent); font-size: .875rem; }
.project a { display: inline-block; margin-top: .25rem; font-weight: 650; }
.project > img { aspect-ratio: 1.65; object-fit: cover; object-position: center 28%; }
#AboutMe.about {
    display: grid;
    min-height: 0;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: 1.25rem clamp(2rem, 6vw, 5rem);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
#AboutMe h2 { font-size: clamp(2.35rem, 4.7vw, 4rem); line-height: 1; }
.skills { margin: 0; }
.skills div { border-top: 1px solid var(--rule); padding: .55rem 0; line-height: 1.45; }
.skills dt { color: var(--accent); font-weight: 650; }
.skills dd { margin: .14rem 0 0; color: var(--muted); }
#Contact { background: linear-gradient(transparent, #060a1a 45%, #010516); }
@media (max-width: 680px) {
    #hero .landing, #AboutMe.about { grid-template-columns: 1fr; gap: 1.5rem; }
    .masthead nav { font-size: .875rem; }
    #hero h1 { max-width: 8ch; }
    #Contact .contact-email-line { font-size: clamp(2rem, 11vw, 3rem); }
}

.bio-heading {
    display: flex;
    align-items: center;
    gap: clamp(.9rem, 2vw, 1.4rem);
    margin-bottom: 1rem;
}
#AboutMe .bio-heading h2 {
    margin: .35rem 0 0;
    font-size: clamp(1.85rem, 4.1vw, 3.6rem);
}
.bio-photo {
    display: block;
    flex: 0 0 auto;
    width: clamp(4rem, 9vw, 6.25rem);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 52% 41%;
    border-radius: .6rem;
    border: 1px solid var(--rule);
}


.bio-photo-frame {
    flex: 0 0 auto;
    width: clamp(4rem, 9vw, 6.25rem);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: .6rem;
    border: 1px solid var(--rule);
}
.bio-photo-frame .bio-photo {
    width: 100%;
    border: 0;
    border-radius: 0;
    transform: scale(2);
    transform-origin: 54.5% 38%;
}

#hero {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    gap: 0;
    align-items: stretch;
}

#AboutMe.about {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    align-content: center;
}

.skills div {
    padding-block: clamp(.85rem, 2vw, 1.4rem);
}

#AboutMe .bio p:not(.label) {
    font-size: clamp(1.08rem, 1.55vw, 1.25rem);
}
