/* Portfolio visual overrides. */

.visual-inner img.project-image {
    width: 399.996px;
    height: 198.996px174.996px;
    border-radius: 0px;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.portrait-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.about-portrait-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.about-story .portrait-placeholder {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    position: sticky;
    top: 112px;
    align-self: start;
    transition: box-shadow .3s ease, transform .3s ease;
    box-shadow: 12px 12px 0 rgba(16, 25, 35, .08);
}

.hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
    gap: clamp(28px, 3.5vw, 48px);
}

.hero-visual {
    width: 100%;
    min-width: 0;
}

.hero-visual .portrait-frame {
    top: 54px;
    right: 0;
    width: 96%;
    aspect-ratio: 1420 / 1108;
    box-shadow: 14px 14px 0 rgba(16, 25, 35, 0.1);
}

.hero-visual .browser-card {
    left: 0;
    bottom: 38px;
    width: min(320px, 68%);
}

.hero-visual .note {
    z-index: 6;
    right: 5%;
    bottom: 92px;
}

.hero-visual .float-label {
    z-index: 1;
    min-width: 84px;
    text-align: center;
}

.hero-visual .float-label:nth-of-type(1) {
    left: 7%;
    top: 16px;
}

.hero-visual .float-label:nth-of-type(2) {
    right: 4%;
    top: 16px;
}

.hero-visual .float-label:nth-of-type(3) {
    left: -4%;
    top: 52%;
}

.hero-visual .float-label:nth-of-type(4) {
    right: 4%;
    bottom: 14px;
}

@media (max-width: 980px) {
    .about-story .portrait-placeholder {
        position: relative;
        top: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual .portrait-frame {
        top: 0;
        width: min(86%, 620px);
    }

    .hero-visual .browser-card {
        left: 4%;
        bottom: 42px;
        width: min(355px, 66%);
    }

    .hero-visual .note {
        right: 4%;
        bottom: 92px;
    }
}

@media (max-width: 620px) {
    .hero-visual .portrait-frame {
        width: 100%;
    }

    .hero-visual .browser-card {
        bottom: 26px;
        width: 86%;
    }

    .hero-visual .float-label:nth-of-type(1) {
        left: 3%;
        top: -18px;
    }

    .hero-visual .float-label:nth-of-type(2) {
        right: 3%;
        top: -18px;
    }

    .hero-visual .float-label:nth-of-type(3) {
        left: -3%;
    }

    .hero-visual .float-label:nth-of-type(4) {
        right: 3%;
        bottom: 10px;
    }
}

.work-grid > article.project-card.project-horizontal.reveal:first-of-type .visual-inner img.project-image {
    object-fit: contain;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-position: top center;
    position: relative;
    top: 0;
}

.work-grid > article.project-card.project-horizontal.reveal:first-of-type .visual {
    align-self: stretch;
}

.work-grid > article.project-card.project-horizontal.reveal:first-of-type .visual-inner {
    height: 100%;
    min-height: 0;
    align-content: start;
    padding-bottom: 12px;
    position: relative;
}

.project-01-highlights {
    position: absolute;
    left: 7%;
    bottom: 26px;
    z-index: 2;
    width: 72%;
    display: grid;
    gap: 10px;
    padding: 22px 24px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 10px 12px 24px rgba(16, 25, 35, .16);
    color: var(--ink);
    transform: rotate(-2.5deg);
}

.project-01-highlights strong {
    margin-bottom: 4px;
    font-family: var(--display);
    font-size: 1.15rem;
}

.project-01-highlights > span:not(.project-01-dots) {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 22px;
    font-size: .78rem;
    font-weight: 700;
}

.project-01-highlights > span:not(.project-01-dots)::after {
    content: "";
    flex: 1;
    max-width: 110px;
    height: 5px;
    background: rgba(89, 101, 114, .22);
}

.project-01-highlights > span:nth-of-type(3)::after {
    max-width: 62px;
}

.project-01-highlights > span:nth-of-type(4)::after {
    max-width: none;
    height: 6px;
    background: var(--orange);
}

.project-01-dots {
    display: flex;
    gap: 7px;
}

.project-01-dots i {
    width: 9px;
    height: 9px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    background: rgba(27, 130, 196, .18);
}

.project-01-dots i:first-child {
    background: var(--blue);
}

.project-01-note {
    position: absolute;
    right: 6%;
    bottom: 31%;
    z-index: 3;
    padding: 14px 18px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--display);
    font-size: .9rem;
    font-weight: 700;
    transform: rotate(5deg);
    box-shadow: 5px 7px 14px rgba(16, 25, 35, .14);
}

@media (max-width: 620px) {
    .project-01-highlights {
        width: 78%;
        padding: 16px 18px 18px;
    }

    .project-01-note {
        right: 3%;
        bottom: 29%;
    }
}

.work-grid > article.project-card.project-horizontal.reveal:first-of-type {
    height: fit-content;
    min-height: 0;
    align-self: start;
}

.work-grid > article.project-card.project-horizontal.reveal:first-of-type .project-body {
    padding-bottom: 18px;
}

.work-grid > article.project-card.project-stacked:is(:nth-of-type(2), :nth-of-type(3)) .visual {
    min-height: 0;
    padding: 22px;
}

.work-grid > article.project-card.project-stacked:is(:nth-of-type(2), :nth-of-type(3)) {
    grid-column: span 6;
}

.work-grid > article.project-card.project-stacked:is(:nth-of-type(2), :nth-of-type(3)) .visual-inner {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 1;
    padding: 0;
    box-shadow: 7px 8px 18px rgba(16, 25, 35, .11);
}

.work-grid > article.project-card.project-stacked:is(:nth-of-type(2), :nth-of-type(3)) .visual-inner img.project-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 980px) {
    .work-grid > article.project-card.project-stacked:is(:nth-of-type(2), :nth-of-type(3)) {
        grid-column: auto;
    }
}

@media (min-width: 981px) {
    .hero-copy h1 {
        font-size: clamp(3.05rem, 4.8vw, 5.5rem);
    }

    .intro-grid > .reveal:first-child {
        position: sticky;
        top: 112px;
        align-self: start;
    }
}

.project-card.project-02 .visual-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(190px, 22vw, 250px);
    min-height: 0;
    overflow: hidden;
}

.project-card.project-02 .visual-inner img.project-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: fill;
    object-position: center;
}

.project-card.project-02 .project-no {
    z-index: 2;
}

.project-card.project-04 .visual-inner img.project-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.project-card.project-01.project-compact .visual-inner img.project-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.project-card.project-03.project-compact .visual-inner img.project-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}
