:root {
    --bg: #a1a5a6;
    --mist: #E9ECF1;
    --ink: #101827;
    --slate: #566071;
    --blue: #2457F5;
    --sun: #FFC94A;
    --r: 18px
}

* {
    box-sizing: border-box;
    margin: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px
}

body {
    font: 17px/1.65 "IBM Plex Sans", system-ui, sans-serif;
    background: var(--mist);
    color: var(--ink)
}

h1,
h2,
h3,
.logo {
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    line-height: 1.05
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 96px 24px 0
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 36px
}

.nav {
    position: fixed;
    inset: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(233, 236, 241, .55)
}

.nav nav {
    display: flex;
    gap: 22px
}

.nav nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem
}

.nav nav a:hover,
.nav nav a.on {
    color: var(--blue)
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    background: var(--ink);
    color: var(--mist);
    padding: 2px 10px;
    border-radius: 8px
}

.hero {
    background: var(--bg);
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr minmax(240px, 340px);
    gap: clamp(32px, 6vw, 90px);
    align-items: center;
    padding: 120px max(24px, calc((100vw - 1040px)/2)) 80px;
    overflow: hidden
}

.hero-text {
    align-self: center
}

.hi {
    font-weight: 500;
    font-size: 1.2rem
}

h1 {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 6px 0 22px
}

.w {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom
}

.w::before {
    content: "";
}

.role {
    font-size: 1.25rem;
    max-width: 34ch;
    min-height: 3.4em
}

#typed {
    font-weight: 500;
    background: linear-gradient(transparent 62%, var(--sun) 62%)
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--ink);
    margin-left: 3px;
    vertical-align: -.2em;
    animation: blink 1s steps(2) infinite
}

.portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 10/11;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    border: 3px solid var(--ink);
    box-shadow: 14px 14px 0 var(--sun);
    justify-self: end
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px
}

.btn {
    padding: 12px 22px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: transform .2s, background .2s, color .2s
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--ink);
    color: var(--mist)
}

.btn.solid {
    background: var(--ink);
    color: var(--mist)
}

.btn.solid:hover {
    background: var(--blue);
    border-color: var(--blue)
}

.about {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px
}

.about p {
    margin-bottom: 16px;
    max-width: 62ch;
}

.text-justify {
    text-align: justify;
}

.facts {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px
}

.facts li {
    font-size: .9rem;
    color: var(--slate);
    max-width: 14ch
}

.facts b {
    display: block;
    font: 800 2rem "Bricolage Grotesque", sans-serif;
    color: var(--blue)
}

.project {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 84px
}

.project p:not(.sub) {
    text-align: justify;
}

.project.flip .shot {
    order: 2
}

.shot {
    aspect-ratio: 16/10;
    border-radius: var(--r);
    background: #fff;
    border: 2px dashed #b7bdc9;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: transform .25s ease-out, box-shadow .25s;
    transform-style: preserve-3d;
    box-shadow: 0 18px 40px -22px rgba(16, 24, 39, .5)
}

.shot::after {
    content: attr(data-ph);
    color: var(--slate);
    font-size: .95rem
}

.shot:has(img)::after {
    display: none
}

.shot:has(img) {
    border: 0
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block
}

.project h3 {
    font-size: 1.9rem;
    font-weight: 800
}

.sub {
    color: var(--blue);
    font-weight: 500;
    margin: 6px 0 12px
}

.tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0
}

.tags li {
    background: #fff;
    border-radius: 999px;
    padding: 3px 13px;
    font-size: .85rem
}

.link {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--sun);
    text-decoration-thickness: 3px
}

.group {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid #c6ccd8;
    align-items: center
}

.group h3 {
    font-size: 1.15rem
}

.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 14px
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 78px;
    font-size: .78rem;
    text-align: center;
    color: var(--slate)
}

.skill span.t {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff;
    display: grid;
    place-items: center;
    transition: transform .25s cubic-bezier(.3, 1.6, .5, 1)
}

.skill:hover span.t {
    transform: translateY(-6px) rotate(-6deg)
}

.skill img {
    width: 34px;
    height: 34px
}

.skill .txt {
    font-weight: 800;
    font-size: .7rem;
    color: var(--ink)
}

.timeline {
    list-style: none;
    padding: 0 0 0 26px;
    border-left: 3px solid var(--ink);
    max-width: 720px
}

.timeline li {
    position: relative;
    padding-bottom: 34px
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--sun);
    border: 3px solid var(--ink)
}

.timeline time {
    font-size: .88rem;
    color: var(--blue);
    font-weight: 500
}

.timeline h3 {
    font-size: 1.3rem;
    margin: 2px 0 4px
}

.timeline p {
    color: var(--slate)
}

footer {
    margin-top: 110px;
    background: var(--ink);
    color: var(--mist);
    padding-bottom: 40px
}

footer .wrap {
    padding-top: 80px
}

footer p {
    margin-bottom: 6px
}

footer .btn {
    border-color: var(--mist)
}

footer .btn:hover {
    background: var(--mist);
    color: var(--ink)
}

footer .btn.solid {
    background: var(--sun);
    color: var(--ink);
    border-color: var(--sun)
}

footer small {
    display: block;
    margin-top: 56px;
    opacity: .6
}

.hero .w,
.hi,
.role,
.hero .cta,
.portrait {
    animation: up .9s cubic-bezier(.2, .7, .2, 1) both
}

.w:nth-child(1) {
    animation-delay: .15s
}

.w:nth-child(2) {
    animation-delay: .3s
}

.role {
    animation-delay: .55s
}

.hero .cta {
    animation-delay: .7s
}

.portrait {
    animation-delay: .25s
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(40px)
    }
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

@media(max-width:820px) {

    .hero,
    .about,
    .project,
    .group {
        grid-template-columns: 1fr
    }

    .project.flip .shot {
        order: 0
    }

    .hero {
        padding-top: 100px
    }

    .portrait {
        width: min(300px, 80%);
        justify-self: center;
        margin: 10px 0 14px
    }

    .nav nav a:not(:last-child) {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto
    }
}