.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative
}

.hero__text {
    max-width: 1024px;
    width: 100%;
    position: relative;
    top: calc(var(--spaceL) * -1)
}

@media (max-width: 2080px) {
    .hero__text {
        max-width: 920px
    }
}

@media (max-width: 1680px) {
    .hero__text {
        max-width: 780px
    }
}

@media (max-width: 696px) {
    .hero__text {
        top: calc(var(--space3XL) * -1)
    }
}

@media (max-width: 400px) {
    .hero__text {
        top: calc(var(--spaceXL) * -1)
    }
}

@media (max-width: 820px) and (max-height: 420px) {
    .hero__text {
        top: calc(var(--spaceM) * -1)
    }
}

.hero__name {
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: .3em;
    color: var(--textLight);
    margin-bottom: var(--space2XL);
    margin-top: 0;
    font-weight: var(--fontWeightMedium);
    line-height: 1;
    opacity: 0;
    transition: opacity var(--durationL) var(--bezierFastoutSlowin) .2s
}

@media (max-width: 1680px) {
    .hero__name {
        font-size: 1.375rem;
        margin-bottom: var(--spaceXL)
    }
}

@media (max-width: 1040px) {
    .hero__name {
        font-size: 1.125rem
    }
}

@media (max-width: 696px) {
    .hero__name {
        margin-bottom: var(--spaceL);
        letter-spacing: .2em;
        white-space: nowrap;
        overflow: hidden
    }
}

@media (max-width: 820px) and (max-height: 420px) {
    .hero__name {
        margin-bottom: var(--spaceL);
        margin-bottom: var(--spaceXL)
    }
}

.hero__name[data-visible=true] {
    opacity: 1
}

.hero__title {
    letter-spacing: -.03em
}

.hero__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative
}

.hero__row[data-hidden=true] {
    opacity: 0
}

@keyframes hero-intro-text-reveal {
    0% {
        color: color-mix(in lab, var(--text) 0%, transparent)
    }

    50% {
        color: color-mix(in lab, var(--text) 0%, transparent)
    }

    60% {
        color: var(--textTitle)
    }

    to {
        color: var(--textTitle)
    }
}

.hero__word {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    line-height: 1;
    animation-duration: 1.5s;
    animation-delay: var(--delay);
    animation-fill-mode: forwards;
    animation-timing-function: var(--bezierFastoutSlowin);
    color: color-mix(in lab, var(--text) 0%, transparent);
    transition: opacity .5s ease var(--durationM);
    isolation: isolate
}

.hero__word:after {
    content: "";
    background: var(--accent);
    animation-duration: 1.5s;
    animation-delay: var(--delay);
    animation-fill-mode: forwards;
    animation-timing-function: var(--bezierFastoutSlowin);
    transform-origin: left;
    transform: scale3d(0, 1, 1);
    position: absolute;
    top: 0;
    right: -.02em;
    bottom: 0;
    left: 0;
    z-index: var(--zIndex1);
    will-change: transform
}

.hero__word[data-plus=true]:before {
    content: "+";
    margin-right: 10px;
    opacity: .4
}

.hero__word[data-status=entering] {
    animation-name: hero-intro-text-reveal
}

@media (prefers-reduced-motion: no-preference) {
    .hero__word[data-status=entering]:after {
        animation-name: reveal
    }
}

.hero__word[data-status=entered] {
    color: var(--textTitle)
}

.hero__word[data-status=entered]:after {
    opacity: 1;
    transform: scale3d(0, 0, 1);
    transform-origin: right
}

.hero__word[data-status=exiting] {
    color: var(--textTitle);
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: var(--zIndex0)
}

@keyframes hero-intro-line {
    0% {
        transform: scaleX(0);
        opacity: 1
    }

    to {
        transform: scaleX(1);
        opacity: 1
    }
}

.hero__line {
    content: "";
    height: 2px;
    background: color-mix(in lab, var(--text) 30%, transparent);
    width: 120%;
    display: flex;
    margin-left: 20px;
    animation-duration: .8s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: var(--bezierFastoutSlowin);
    transform-origin: left;
    opacity: 0;
    position: relative;
    top: .05em
}

.hero__line[data-status=entering] {
    animation-name: fade-in
}

@media (prefers-reduced-motion: no-preference) {
    .hero__line[data-status=entering] {
        animation-name: hero-intro-line
    }
}

.hero__line[data-status=entered] {
    transform: scaleX(1);
    opacity: 1
}

@keyframes hero-intro-scroll-indicator {
    0% {
        transform: translate3d(-1px, 0, 0);
        opacity: 0
    }

    20% {
        transform: translate3d(-1px, 0, 0);
        opacity: 1
    }

    to {
        transform: translate3d(-1px, 8px, 0);
        opacity: 0
    }
}

.hero__scroll-indicator {
    border: 2px solid color-mix(in lab, var(--text) 40%, transparent);
    border-radius: 20px;
    width: 26px;
    height: 38px;
    position: fixed;
    bottom: 64px;
    transition-property: opacity;
    transition-duration: var(--durationL);
    transition-timing-function: ease;
    opacity: 0
}

.hero__scroll-indicator:before {
    content: "";
    height: 7px;
    width: 2px;
    background: color-mix(in lab, var(--text) 40%, transparent);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translate(-1px)
}

@media (prefers-reduced-motion: no-preference) {
    .hero__scroll-indicator {
        transition-property: opacity, transform
    }

    .hero__scroll-indicator:before {
        animation: hero-intro-scroll-indicator 2s ease infinite
    }
}

.hero__scroll-indicator[data-status=entered] {
    opacity: 1
}

.hero__scroll-indicator[data-hidden=true] {
    opacity: 0
}

@media (prefers-reduced-motion: no-preference) {
    .hero__scroll-indicator[data-hidden=true] {
        transform: translate3d(0, 20px, 0)
    }
}

@media (pointer: coarse) {
    .hero__scroll-indicator {
        display: none
    }
}

.hero__scroll-indicator:focus-visible {
    opacity: 1
}

@keyframes hero-intro-mobile-scroll-indicator {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }

    to {
        transform: translateY(0)
    }
}

.hero__mobile-scroll-indicator {
    position: fixed;
    bottom: 0;
    opacity: 0;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(.8, .1, .27, 1);
    transition-duration: var(--durationM);
    padding: 20px
}

@media (prefers-reduced-motion: no-preference) {
    .hero__mobile-scroll-indicator {
        animation-name: hero-intro-mobile-scroll-indicator;
        transition-property: opacity, transform;
        transform: translate3d(0, 20px, 0)
    }
}

.hero__mobile-scroll-indicator[data-status=entered] {
    opacity: 1
}

.hero__mobile-scroll-indicator[data-hidden=true] {
    opacity: 0;
    transform: none
}

@media (pointer: fine) {
    .hero__mobile-scroll-indicator {
        display: none
    }
}

.hero__mobile-scroll-indicator svg {
    stroke: color-mix(in lab, var(--text) 50%, transparent)
}

.hero__mobile-scroll-indicator:focus-visible {
    opacity: 1
}

.profile {
    width: 100vw;
    min-height: 100vh;
    margin-top: 60px;
    margin-bottom: 40px;
    padding-top: 60px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center
}

@media (max-width: 1040px) {
    .profile {
        padding-top: 50px;
        padding-right: 80px;
        padding-left: 160px;
        height: auto;
        margin-top: 40px;
        margin-bottom: 20px
    }
}

@media (max-width: 696px) {
    .profile {
        margin-top: 0;
        padding-top: var(--space4XL);
        overflow-x: hidden
    }
}

@media (max-width: 696px),
(max-height: 696px) {
    .profile {
        padding-right: var(--spaceOuter);
        padding-left: var(--spaceOuter)
    }
}

@media (max-width: 820px) and (max-height: 420px) {
    .profile {
        padding-right: var(--space4XL);
        padding-left: var(--space4XL)
    }
}

.profile__content {
    display: grid;
    grid-template-columns: 1fr 50%;
    grid-column-gap: var(--space2XL);
    max-width: var(--maxWidthL);
    width: 100%
}

@media (max-width: 1040px) {
    .profile__content {
        max-width: 600px;
        grid-template-columns: 100%
    }
}

.profile__column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
    transform: translateZ(0)
}

.profile__title {
    white-space: nowrap;
    margin-bottom: var(--spaceL);
    opacity: 0;
    transition: opacity var(--durationXL) ease var(--durationM)
}

.profile__title[data-visible=true] {
    opacity: 1
}

.profile__description {
    margin-bottom: var(--spaceXL);
    opacity: 0;
    transition: opacity var(--durationXL) ease var(--durationL)
}

.profile__description[data-visible=true] {
    opacity: 1
}

.profile__tag {
    margin-top: 220px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: var(--space4XL) 1fr;
    gap: 12px;
    align-items: center
}

@media (max-width: 1040px) {
    .profile__tag {
        margin-top: 30px
    }
}

.profile__tag-text {
    font-size: var(--fontSizeBodyS);
    font-weight: var(--fontWeightMedium);
    color: var(--primary);
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: var(--bezierFastoutSlowin);
    transition-duration: var(--durationM);
    transition-delay: 1.3s
}

@media (prefers-reduced-motion: no-preference) {
    .profile__tag-text {
        transition-property: opacity, transform;
        transform: translate3d(calc(var(--spaceM) * -1), 0, 0)
    }
}

.profile__tag-text[data-visible=true] {
    transform: none;
    opacity: 1
}

.profile__image {
    position: relative;
    width: 100%
}

.profile__placeholder-svg {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate3d(50%, -20%, 0);
    height: 100%;
    z-index: var(--zIndex3);
    opacity: 0;
    transition: opacity var(--durationM) ease var(--durationL);
    fill: var(--textTitle)
}

.profile__placeholder-svg[data-visible=true] {
    opacity: 1
}

.profile__button {
    opacity: 0;
    transition: opacity var(--durationXL) ease var(--durationL)
}

.profile__button[data-visible=true] {
    transform: none;
    opacity: 1
}

.profile__section-title {
    margin-top: var(--spaceL);
    margin-bottom: var(--spaceM);
    font-size: var(--fontSizeH4);
    opacity: 0;
    transition: opacity var(--durationXL) ease var(--durationL)
}

.profile__section-title[data-visible=true] {
    opacity: 1
}

.profile__education,
.profile__tech-stack {
    opacity: 0;
    transform: translate3d(0, var(--spaceM), 0);
    transition-property: transform, opacity;
    transition-duration: var(--durationXL);
    transition-timing-function: var(--bezierFastoutSlowin);
    transition-delay: var(--durationM);
    padding-bottom: var(--spaceM)
}

.profile__education[data-visible=true],
.profile__tech-stack[data-visible=true] {
    transform: none;
    opacity: 1
}

.profile__education-item {
    margin-bottom: var(--spaceM)
}

.profile__education-degree {
    color: var(--textTitle);
    font-weight: var(--fontWeightMedium);
    margin-bottom: 2px
}

.profile__education-details {
    color: var(--textLight)
}

.profile__tech-category {
    margin-bottom: var(--spaceM)
}

.profile__tech-title {
    color: var(--textTitle);
    font-weight: var(--fontWeightMedium);
    margin-bottom: 2px
}

.profile__tech-list {
    color: var(--textBody)
}

.profile__tech-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spaceM);
    margin-top: 8px
}

.profile__tech-icon {
    color: var(--primary);
    transition: transform .2s ease
}

.profile__tech-icon:hover {
    transform: translateY(-3px)
}

.project-summary {
    height: 100vh;
    width: 100%;
    max-height: 1080px;
    padding-bottom: var(--spaceL);
    margin: 120px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

@media (max-width: 2080px) {
    .project-summary {
        margin: var(--space2XL) 0
    }
}

@media (max-width: 1040px) {
    .project-summary {
        height: auto;
        margin: var(--space3XL) 0
    }
}

@media (max-width: 696px) {
    .project-summary {
        padding-bottom: var(--space4XL);
        margin-bottom: 0
    }
}

.project-summary[data-first=true] {
    margin-top: 0
}

@media (max-width: 1040px) {
    .project-summary[data-first=true] {
        margin-top: 0
    }
}

.project-summary__content {
    --textColumnWidth: 36%;
    width: 100%;
    max-width: var(--maxWidthL);
    align-items: center;
    justify-content: center;
    display: grid;
    grid-template-columns: var(--textColumnWidth) 1fr;
    grid-column-gap: var(--space2XL)
}

.project-summary[data-alternate=true] .project-summary__content {
    grid-template-columns: 1fr var(--textColumnWidth)
}

@media (max-width: 1680px) {
    .project-summary__content {
        --textColumnWidth: 40%
    }
}

@media (max-width: 1040px) {
    .project-summary__content {
        grid-template-columns: 100%;
        flex-direction: column-reverse;
        height: auto
    }

    .project-summary[data-alternate=true] .project-summary__content {
        grid-template-columns: 100%
    }
}

.project-summary__details {
    z-index: var(--zIndex1);
    position: relative
}

@media (max-width: 1040px) {
    .project-summary__details {
        flex: 0 0 auto;
        max-width: 410px;
        grid-row: 2;
        grid-column: 1;
        justify-self: center
    }
}

.project-summary__preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-self: center;
    justify-content: center;
    height: 100%;
    width: 100%
}

.project-summary__model {
    --width: 180%;
    --aspectRatio: 12 / 10;
    min-width: var(--width);
    aspect-ratio: var(--aspectRatio);
    display: grid;
    position: relative
}

.project-summary__model[data-device=laptop] {
    top: 6%;
    left: 14%
}

@media (max-width: 2080px) {
    .project-summary__model[data-device=laptop] {
        --width: 180%
    }
}

@media (max-width: 1040px) {
    .project-summary__model[data-device=laptop] {
        --width: 140%;
        top: 10%;
        left: 0
    }
}

.project-summary__model[data-device=phone] {
    --width: 116%;
    --aspectRatio: 7 / 10;
    top: 5%;
    left: -10%
}

@media (max-width: 2080px) {
    .project-summary__model[data-device=phone] {
        --width: 108%;
        left: 0
    }
}

@media (max-width: 1040px) {
    .project-summary__model[data-device=phone] {
        --width: 108%;
        left: 0;
        max-height: 60vh
    }
}

@media (max-width: 696px) {
    .project-summary__model[data-device=phone] {
        --width: 108%;
        left: 0;
        max-height: none
    }
}

.project-summary__loader {
    opacity: 0;
    transition: opacity .4s ease 1s
}

.project-summary__loader[data-visible=true] {
    opacity: 1
}

.project-summary__placeholder-svg {
    opacity: 0;
    transition: opacity 1.2s ease 1.4s;
    fill: var(--textTitle)
}

.project-summary__placeholder-svg[data-visible=true] {
    opacity: var(--opacity)
}

.project-summary__placeholder-svg[data-device=laptop] {
    position: absolute;
    width: 100%;
    right: -36%;
    bottom: 24%;
    transform: translateY(50%)
}

@media (max-width: 1040px) {
    .project-summary__placeholder-svg[data-device=laptop] {
        width: 80%;
        right: -10%;
        bottom: 18%
    }
}

@media (max-width: 696px) {
    .project-summary__placeholder-svg[data-device=laptop] {
        right: 0
    }
}

.project-summary__placeholder-svg[data-device=phone] {
    position: absolute;
    bottom: 23%;
    transform: translateY(50%);
    width: 100%;
    transition-delay: .8s
}

@media (max-width: 1040px) {
    .project-summary__placeholder-svg[data-device=phone] {
        width: 80%;
        bottom: 23%
    }
}

.project-summary__index {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: var(--spaceM);
    align-items: center;
    margin-bottom: var(--spaceXL)
}

.project-summary__index-number {
    font-size: var(--fontSizeBodyS);
    font-weight: var(--fontWeightMedium);
    color: var(--primary);
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: var(--bezierFastoutSlowin);
    transition-duration: var(--durationM);
    transition-delay: 1.3s
}

@media (prefers-reduced-motion: no-preference) {
    .project-summary__index-number {
        transition-property: transform, opacity;
        transform: translate(calc(var(--spaceM) * -1))
    }
}

.project-summary__index-number[data-visible=true] {
    transform: translate(0);
    opacity: 1
}

.project-summary__title {
    margin-bottom: var(--spaceL);
    transition-property: opacity;
    transition-timing-function: var(--bezierFastoutSlowin);
    transition-duration: var(--durationXL);
    transition-delay: var(--durationM);
    opacity: 0
}

@media (prefers-reduced-motion: no-preference) {
    .project-summary__title {
        transition-property: transform, opacity;
        transform: translate3d(0, var(--spaceL), 0)
    }
}

.project-summary__title[data-visible=true] {
    transform: none;
    opacity: 1
}

.project-summary__description {
    margin-bottom: var(--spaceXL);
    transition-property: opacity;
    transition-timing-function: var(--bezierFastoutSlowin);
    transition-duration: var(--durationXL);
    transition-delay: var(--durationL);
    opacity: 0
}

@media (prefers-reduced-motion: no-preference) {
    .project-summary__description {
        transition-property: transform, opacity;
        transform: translate3d(0, var(--spaceL), 0)
    }
}

.project-summary__description[data-visible=true] {
    transform: none;
    opacity: 1
}

.project-summary__button {
    transition-property: opacity;
    transition-timing-function: var(--bezierFastoutSlowin);
    transition-duration: var(--durationXL);
    transition-delay: var(--durationXL);
    transform: translate3d(0, var(--spaceL), 0);
    opacity: 0
}

@media (prefers-reduced-motion: no-preference) {
    .project-summary__button {
        transition-property: transform, opacity;
        transform: translate3d(0, var(--spaceL), 0)
    }
}

.project-summary__button[data-visible=true] {
    transform: none;
    opacity: 1
}

.home {
    overflow-x: hidden
}
.profile__xray {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: opacity var(--durationXL) var(--bezierFastoutSlowin) .3s;
    background: var(--backgroundLight);
}

.profile__xray[data-visible=true] {
    opacity: 1;
}

.profile__xray-scene,
.profile__xray-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.profile__xray-scene {
    z-index: 1;
}

.profile__xray-mask {
    z-index: 2;
}

.profile__xray-mark {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.profile__xray-mark .monogram {
    width: 34%;
    height: auto;
    fill: var(--white);
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, .45));
}

.profile__xray-hint {
    position: absolute;
    bottom: var(--spaceM);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: var(--fontSizeBodyXS);
    color: color-mix(in lab, var(--white) 60%, transparent);
    letter-spacing: .08em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: .85;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
