/* Geoffrey Portfolio Archive — archive-only styles. */

.gpa-template-main,
.gpa-template-main.wp-block-group {
    max-width: none;
    margin: 0;
    padding: 0;
}

.gpa-portfolio-archive,
.gpa-portfolio-archive * {
    box-sizing: border-box;
}

.gpa-portfolio-archive {
    --gpa-ink: #18181b;
    --gpa-muted: #625d68;
    --gpa-purple: #44038a;
    --gpa-highlight: rgb(155, 81, 224);
    --gpa-lavender: #eee4f6;
    --gpa-page: #f3f4f6;
    --gpa-white: #ffffff;
    width: 100%;
    overflow: hidden;
    color: var(--gpa-ink);
    background: var(--gpa-page);
    font-family: inherit;
}

.gpa-portfolio-archive h1,
.gpa-portfolio-archive h2,
.gpa-portfolio-archive h3,
.gpa-portfolio-archive p {
    margin-top: 0;
}

.gpa-archive-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: end;
    gap: 48px;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 112px) clamp(26px, 7vw, 96px) clamp(56px, 7vw, 92px);
}

.gpa-archive-kicker,
.gpa-project-eyebrow,
.gpa-featured-label,
.gpa-project-capabilities {
    margin-bottom: 0;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.gpa-archive-kicker {
    margin-bottom: 28px;
    color: var(--gpa-muted);
}

.gpa-archive-intro h1 {
    max-width: 820px;
    margin-bottom: 0;
    color: var(--gpa-ink);
    font-size: clamp(3.8rem, 7vw, 7rem);
    font-weight: 500;
    letter-spacing: -.07em;
    line-height: .88;
}

.gpa-archive-intro h1 span {
    display: block;
    color: var(--gpa-highlight);
}

.gpa-archive-summary {
    margin-bottom: 8px;
    color: var(--gpa-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

/* Dominant project. */
.gpa-featured-project {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
    max-width: 1560px;
    min-height: 610px;
    margin: 22px auto;
    overflow: hidden;
    border-radius: 30px;
    background: var(--gpa-lavender);
    box-shadow: 0 18px 48px rgba(38, 26, 48, .08);
}

.gpa-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: clamp(40px, 6vw, 76px);
}

.gpa-featured-label {
    color: var(--gpa-purple);
}

.gpa-featured-label::before {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: -4px;
    background: radial-gradient(circle at 38% 34%, #ffffff 0 8%, var(--gpa-highlight) 28%, var(--gpa-purple) 72%);
    box-shadow: 0 0 20px rgba(155, 81, 224, .35);
    content: "";
}

.gpa-project-eyebrow {
    margin-top: 48px;
    color: var(--gpa-muted);
}

.gpa-featured-title {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--gpa-ink);
    font-size: clamp(3.15rem, 5.8vw, 5.75rem);
    font-weight: 500;
    letter-spacing: -.065em;
    line-height: .91;
}

.gpa-featured-title span {
    display: inline;
    margin-inline-start: .12em;
    color: var(--gpa-highlight);
}

.gpa-featured-summary {
    max-width: 590px;
    margin: 30px 0 0;
    color: #55515a;
    font-size: 1rem;
    line-height: 1.65;
}

.gpa-featured-footer,
.gpa-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.gpa-project-capabilities {
    max-width: 68%;
    color: #65616a;
}

.gpa-project-link {
    position: relative;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.gpa-project-link span {
    transition: transform 250ms ease;
}

.gpa-project-link:hover span,
.gpa-project-card:hover .gpa-project-link span {
    transform: translateX(4px);
}

/* Shared image and lens treatment. */
.gpa-lens-stage,
.gpa-card-image {
    position: relative;
    overflow: hidden;
    background: var(--gpa-purple);
    isolation: isolate;
}

.gpa-featured-project > .gpa-lens-stage {
    min-height: 610px;
}

.gpa-project-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.gpa-image-position--center .gpa-project-image { object-position: center; }
.gpa-image-position--top .gpa-project-image { object-position: top; }
.gpa-image-position--bottom .gpa-project-image { object-position: bottom; }
.gpa-image-position--left .gpa-project-image { object-position: left center; }
.gpa-image-position--right .gpa-project-image { object-position: right center; }

.gpa-lens-stage > .gpa-project-image--base {
    filter: blur(3px) grayscale(.2) saturate(.62) contrast(.9) brightness(.68);
    transform: scale(1.045);
}

.gpa-image-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 52% 46%, rgba(68, 3, 138, .18) 0%, rgba(68, 3, 138, .44) 62%, rgba(30, 0, 63, .82) 100%);
    pointer-events: none;
}

.gpa-image-tint::after {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 22px 22px;
    content: "";
}

.gpa-image-lens {
    position: absolute;
    left: 53%;
    top: 46%;
    z-index: 2;
    width: min(72%, 390px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 24px 64px rgba(20, 0, 43, .24);
    -webkit-mask-image: radial-gradient(circle, #000 0 54%, rgba(0, 0, 0, .96) 63%, rgba(0, 0, 0, .62) 75%, rgba(0, 0, 0, .2) 84%, transparent 95%);
    mask-image: radial-gradient(circle, #000 0 54%, rgba(0, 0, 0, .96) 63%, rgba(0, 0, 0, .62) 75%, rgba(0, 0, 0, .2) 84%, transparent 95%);
    transform: translate(-50%, -50%);
    transition: left 620ms cubic-bezier(.22, 1, .36, 1), top 620ms cubic-bezier(.22, 1, .36, 1), width 300ms ease;
    pointer-events: none;
    will-change: left, top;
}

.gpa-image-lens .gpa-project-image--clear {
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    transform: none;
}

.gpa-image-lens::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .3), transparent 27%);
    content: "";
}

.gpa-featured-result {
    position: absolute;
    right: 30px;
    bottom: 26px;
    z-index: 3;
    max-width: 72%;
    margin: 0;
    color: var(--gpa-white);
    text-align: right;
    pointer-events: none;
}

.gpa-featured-result strong {
    display: block;
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 500;
    letter-spacing: -.08em;
    line-height: .76;
}

.gpa-featured-result span {
    display: block;
    margin-top: 14px;
    color: rgba(255, 255, 255, .8);
    font-size: .72rem;
    letter-spacing: .13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.gpa-image-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    grid-template-columns: repeat(3, 56px);
    gap: 14px;
    background: linear-gradient(145deg, var(--gpa-lavender), #d9c4eb);
}

.gpa-image-fallback span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(155, 81, 224, .3);
    box-shadow: 0 0 35px rgba(155, 81, 224, .22);
}

.gpa-image-fallback span:nth-child(2) { transform: translateY(-24px); }

/* Remaining projects. */
.gpa-more-work {
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(82px, 9vw, 128px) 22px 22px;
}

.gpa-more-work-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
    padding: 0 clamp(4px, 3vw, 36px);
}

.gpa-more-work-heading > div {
    min-width: 0;
}

.gpa-more-work-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--gpa-purple);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.gpa-more-work-kicker::before {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 9%, #d7aaf8 22%, var(--gpa-highlight) 56%, var(--gpa-purple) 100%);
    box-shadow: 0 0 14px rgba(155, 81, 224, .42);
    content: "";
}

.gpa-more-work-heading h2 {
    margin-bottom: 0;
    color: var(--gpa-ink);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .92;
}

.gpa-more-work-heading > p {
    max-width: 410px;
    margin-bottom: 0;
    color: var(--gpa-muted);
    line-height: 1.55;
}

.gpa-project-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.gpa-project-card {
    position: relative;
    display: grid;
    grid-column: span 6;
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
    border-radius: 28px;
    color: var(--gpa-ink);
    background: var(--gpa-white);
    box-shadow: 0 14px 38px rgba(38, 26, 48, .06);
}

.gpa-project-card:nth-child(4n + 1),
.gpa-project-card:nth-child(4n) {
    grid-column: span 7;
}

.gpa-project-card:nth-child(4n + 2),
.gpa-project-card:nth-child(4n + 3) {
    grid-column: span 5;
}

.gpa-card-hit-area {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.gpa-card-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px clamp(26px, 4vw, 42px) 34px;
}

.gpa-card-copy .gpa-project-eyebrow {
    margin-top: 0;
}

.gpa-card-title {
    max-width: 650px;
    margin: 24px 0 30px;
    color: inherit;
    font-size: clamp(2rem, 3.15vw, 3.35rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.08;
    text-wrap: balance;
}

.gpa-card-title span {
    display: inline;
    margin-inline-start: .12em;
    color: var(--gpa-highlight);
}

.gpa-card-footer {
    margin-top: auto;
}

.gpa-project-card .gpa-card-image {
    min-height: 240px;
}

.gpa-project-card .gpa-project-image--base {
    transition: transform 620ms cubic-bezier(.22, 1, .36, 1), filter 400ms ease;
}

.gpa-project-card:hover .gpa-card-image:not(.gpa-lens-stage) .gpa-project-image--base {
    transform: scale(1.035);
}

/* Image above copy. */
.gpa-project-card--image-top {
    grid-template-rows: minmax(240px, .85fr) minmax(280px, 1.15fr);
}

/* Full image with readable copy over it. */
.gpa-project-card--full-bleed {
    min-height: 570px;
    color: var(--gpa-white);
}

.gpa-project-card--full-bleed .gpa-card-image {
    position: absolute;
    inset: 0;
    min-height: 100%;
}

.gpa-card-image-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(68, 3, 138, .06) 6%, rgba(35, 12, 48, .35) 52%, rgba(28, 14, 32, .94) 100%);
}

.gpa-project-card--full-bleed .gpa-card-copy {
    min-height: 570px;
    justify-content: flex-end;
    padding: 38px;
}

.gpa-project-card--full-bleed .gpa-project-eyebrow,
.gpa-project-card--full-bleed .gpa-project-capabilities {
    color: rgba(255, 255, 255, .74);
}

.gpa-project-card--full-bleed .gpa-card-title span {
    color: #d6aff8;
}

.gpa-project-card--full-bleed .gpa-card-title {
    max-width: 590px;
}

/* Editorial side-by-side image. */
.gpa-project-card--image-side {
    grid-template-columns: minmax(210px, .82fr) minmax(0, 1.18fr);
    min-height: 445px;
}

.gpa-project-card--image-side .gpa-card-image {
    min-height: 100%;
}

.gpa-project-card--image-side .gpa-card-copy {
    justify-content: center;
    padding: 38px 42px;
}

/* Lens card: a smaller counterpart to the featured effect. */
.gpa-project-card--lens {
    grid-template-rows: minmax(250px, .95fr) minmax(270px, 1.05fr);
}

.gpa-project-card--lens .gpa-image-lens {
    left: 64%;
    top: 46%;
    width: min(48%, 230px);
}

.gpa-project-card--lens:hover .gpa-image-lens {
    width: min(51%, 244px);
}

/* Closing CTA. */
.gpa-archive-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
    align-items: end;
    gap: 40px;
    max-width: 1556px;
    margin: 18px auto 22px;
    padding: clamp(54px, 7vw, 90px);
    border-radius: 28px;
    color: var(--gpa-white);
    background: #28232c;
}

.gpa-archive-cta h2 {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--gpa-white);
    font-size: clamp(3rem, 5.8vw, 6rem);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .9;
}

.gpa-archive-cta h2 span {
    display: block;
    color: #cda4f1;
}

.gpa-archive-cta p {
    color: rgba(255, 255, 255, .74);
    line-height: 1.6;
}

.gpa-archive-cta a {
    display: inline-flex;
    gap: 8px;
    color: var(--gpa-white);
    font-weight: 500;
    text-decoration: none;
}

.gpa-archive-cta a span {
    transition: transform 250ms ease;
}

.gpa-archive-cta a:hover span {
    transform: translateX(4px);
}

@media (max-width: 1640px) {
    .gpa-featured-project,
    .gpa-archive-cta {
        margin-right: 22px;
        margin-left: 22px;
    }
}

@media (max-width: 900px) {
    .gpa-featured-project {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    }

    .gpa-project-card,
    .gpa-project-card:nth-child(n) {
        grid-column: span 6;
    }

    .gpa-project-card--image-side {
        grid-template-columns: 1fr;
        grid-template-rows: 245px auto;
    }
}

@media (max-width: 760px) {
    .gpa-archive-intro {
        grid-template-columns: 1fr;
        padding: 64px 24px 54px;
    }

    .gpa-archive-intro h1 {
        font-size: clamp(3.4rem, 15vw, 5rem);
    }

    .gpa-featured-project {
        grid-template-columns: 1fr;
        margin: 12px;
        border-radius: 22px;
    }

    .gpa-featured-copy {
        padding: 44px 24px;
    }

    .gpa-featured-title {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .gpa-featured-footer,
    .gpa-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .gpa-project-capabilities {
        max-width: none;
    }

    .gpa-featured-project > .gpa-lens-stage {
        min-height: 540px;
    }

    .gpa-featured-project .gpa-image-lens {
        left: 50%;
        top: 43%;
        width: min(80%, 350px);
        transition: none;
    }

    .gpa-featured-result {
        right: 22px;
        bottom: 25px;
    }

    .gpa-more-work {
        padding: 78px 12px 12px;
    }

    .gpa-more-work-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 42px;
        padding: 0 12px;
    }

    .gpa-project-grid {
        display: block;
    }

    .gpa-project-card {
        min-height: 500px;
        margin-bottom: 16px;
    }

    .gpa-project-card--image-side {
        grid-template-rows: 245px auto;
    }

    .gpa-project-card--full-bleed,
    .gpa-project-card--full-bleed .gpa-card-copy {
        min-height: 535px;
    }

    .gpa-project-card--lens .gpa-image-lens {
        left: 67%;
        top: 48%;
        width: 48%;
        transition: none;
    }

    .gpa-card-title {
        font-size: clamp(2.25rem, 10vw, 3.15rem);
        line-height: 1.08;
    }

    .gpa-archive-cta {
        grid-template-columns: 1fr;
        margin: 12px;
        padding: 52px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gpa-image-lens,
    .gpa-project-image,
    .gpa-project-link span,
    .gpa-archive-cta a span {
        transition: none;
    }
}

/* Make portfolio cards more compact on desktop */
@media (min-width: 761px) {
	.gpa-project-grid {
		align-items: start;
	}

	.gpa-project-card {
		min-height: 420px;
	}

	.gpa-project-card--image-side {
		min-height: 380px;
	}

	.gpa-project-card--image-side .gpa-card-footer {
		margin-top: 28px;
	}
}