/*
 * Geoffrey Archer portfolio styles
 * Version: 1.2.0
 */


/* =========================================
   SHARED TOKENS AND RESET
   ========================================= */

.portfolio-project {
    --portfolio-background: #f3f4f6;
    --portfolio-surface: #ffffff;
    --portfolio-lavender: #eee4f6;
    --portfolio-text: #18181b;
    --portfolio-muted: #62626a;
    --portfolio-border: #d4d4d8;
    --portfolio-purple: #44038a;
    --portfolio-highlight: rgb(155, 81, 224);
    --portfolio-white: #ffffff;

    width: 100%;
    margin-block-start: 0 !important;

    color: var(--portfolio-text);
}

.portfolio-project > .wp-block-shortcode {
    width: 100%;
    max-width: none;
    margin: 0 !important;
}

.portfolio-project .portfolio-hero,
.portfolio-project .portfolio-hero *,
.portfolio-project .portfolio-case-study,
.portfolio-project .portfolio-case-study *,
.portfolio-project .portfolio-hero *::before,
.portfolio-project .portfolio-hero *::after,
.portfolio-project .portfolio-case-study *::before,
.portfolio-project .portfolio-case-study *::after {
    box-sizing: border-box;
}

.portfolio-project .portfolio-hero,
.portfolio-project .portfolio-hero :where(h1, h2, h3, p, span, strong, dt, dd),
.portfolio-project .portfolio-case-study,
.portfolio-project .portfolio-case-study :where(h1, h2, h3, p, span, strong, dt, dd, blockquote, a) {
    font-family: inherit !important;
}


/* =========================================
   HERO LAYOUT
   ========================================= */

.portfolio-project .portfolio-hero {
    --portfolio-panel-background: var(--portfolio-purple);
    --portfolio-panel-text: var(--portfolio-white);
    --portfolio-panel-muted: rgb(255 255 255 / 74%);
    --portfolio-panel-line: rgb(255 255 255 / 65%);

    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);

    width: 100%;
    max-width: 1440px;
    min-height: 640px;
    margin: 0 auto !important;

    color: var(--portfolio-text);
    background: var(--portfolio-background);
}

.portfolio-project .portfolio-hero__copy {
    grid-column: 1 / 2;
    grid-row: 1;

    min-width: 0;
    padding: 64px clamp(40px, 5vw, 72px) 40px;
}

.portfolio-project .portfolio-hero__introduction {
    width: 100%;
    max-width: 760px;
}

.portfolio-project .portfolio-hero__introduction > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}


/* =========================================
   HERO EYEBROW
   ========================================= */

.portfolio-project .portfolio-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 0 !important;

    color: var(--portfolio-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.portfolio-project .portfolio-hero__eyebrow::before {
    width: 38px;
    height: 2px;

    background: var(--portfolio-purple);

    content: "";
    flex: 0 0 auto;
}


/* =========================================
   HERO HEADLINE
   ========================================= */

.portfolio-project .portfolio-hero__title {
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;

    width: 100%;
    max-width: 760px;
    margin: 38px 0 0 !important;
    padding: 0 !important;

    color: var(--portfolio-text);
    font-size: clamp(3.25rem, 5.7vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.058em;
    line-height: 0.95;
}

.portfolio-project .portfolio-hero__headline-main,
.portfolio-project .portfolio-hero__emphasis {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.portfolio-project .portfolio-hero__headline-main {
    color: var(--portfolio-text);
}

.portfolio-project .portfolio-hero__emphasis {
    color: var(--portfolio-highlight);
}

.portfolio-project .portfolio-hero__summary {
    width: 100%;
    max-width: 660px;
    margin: 34px 0 0 !important;

    color: var(--portfolio-muted);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================
   HERO METADATA
   ========================================= */

.portfolio-project .portfolio-hero__metadata {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 24px;

    width: 100%;
    margin: 46px 0 0 !important;
    padding: 22px 0 0;

    border-top: 1px solid var(--portfolio-border);
}

.portfolio-project .portfolio-hero__metadata-item {
    min-width: 0;
    margin: 0 !important;
}

.portfolio-project .portfolio-hero__metadata dt {
    margin: 0 0 8px !important;

    color: var(--portfolio-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.portfolio-project .portfolio-hero__metadata dd {
    margin: 0 !important;

    color: var(--portfolio-text);
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}


/* =========================================
   HERO RESULT PANEL
   ========================================= */

.portfolio-project .portfolio-result {
    position: relative;

    grid-column: 2 / 3;
    grid-row: 1;

    min-width: 0;
    min-height: 640px;
    margin: 0 !important;
    padding: 64px clamp(28px, 4vw, 56px) 40px;

    color: var(--portfolio-panel-text);
    background: var(--portfolio-panel-background);

    overflow: hidden;
}

.portfolio-project .portfolio-result::before {
    position: absolute;
    inset: 0;

    background-image: radial-gradient(
        circle,
        currentColor 1px,
        transparent 1.5px
    );
    background-size: 19px 19px;

    content: "";
    opacity: 0.14;
}

.portfolio-project .portfolio-result__inner {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
}

.portfolio-project .portfolio-result__kicker {
    margin: 0 0 8px !important;

    color: var(--portfolio-panel-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.portfolio-project .portfolio-result__heading {
    width: 100%;
    max-width: 300px;
    margin: 0 !important;

    color: var(--portfolio-panel-text);
    font-size: 1.0625rem;
    line-height: 1.45;
}

.portfolio-project .portfolio-result__comparison {
    position: relative;

    flex: 1;
    min-height: 430px;
}

.portfolio-project .portfolio-result__before,
.portfolio-project .portfolio-result__after {
    position: absolute;
    z-index: 2;
}

.portfolio-project .portfolio-result__before {
    bottom: 0;
    left: 0;

    opacity: 0;
    animation: portfolio-before-reveal 0.6s ease-out 0.2s forwards;
}

.portfolio-project .portfolio-result__after {
    top: 62px;
    right: 0;

    text-align: right;

    opacity: 0;
    animation: portfolio-after-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.portfolio-project .portfolio-result__small,
.portfolio-project .portfolio-result__large {
    display: block;
    margin: 0 !important;

    color: var(--portfolio-panel-text);
    font-weight: 500;
}

.portfolio-project .portfolio-result__small {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.portfolio-project .portfolio-result__large {
    position: relative;

    font-size: clamp(5.625rem, 12vw, 9.625rem);
    letter-spacing: -0.08em;
    line-height: 0.78;
}

.portfolio-project .portfolio-result__large::after {
    position: absolute;
    right: 0;
    bottom: -16px;

    width: 0;
    height: 2px;

    background: var(--portfolio-panel-line);

    content: "";
    animation: portfolio-result-line 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

.portfolio-project .portfolio-result__context {
    display: block;
    margin: 15px 0 0 !important;

    color: var(--portfolio-panel-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

@keyframes portfolio-before-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes portfolio-after-reveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portfolio-result-line {
    from { width: 0; }
    to { width: 72px; }
}


/* =========================================
   HERO COLOR TREATMENTS
   ========================================= */

.portfolio-project .portfolio-hero--theme-lavender {
    --portfolio-panel-background: var(--portfolio-lavender);
    --portfolio-panel-text: var(--portfolio-text);
    --portfolio-panel-muted: rgb(68 3 138 / 72%);
    --portfolio-panel-line: rgb(68 3 138 / 48%);
}

.portfolio-project .portfolio-hero--theme-charcoal {
    --portfolio-panel-background: #27232c;
    --portfolio-panel-text: var(--portfolio-white);
    --portfolio-panel-muted: rgb(255 255 255 / 72%);
    --portfolio-panel-line: rgb(155 81 224 / 78%);
}

.portfolio-project .portfolio-hero--theme-sage {
    --portfolio-panel-background: #dce8df;
    --portfolio-panel-text: #173127;
    --portfolio-panel-muted: rgb(23 49 39 / 70%);
    --portfolio-panel-line: rgb(68 3 138 / 48%);
}

.portfolio-project .portfolio-hero--no-result {
    grid-template-columns: minmax(0, 1fr);
}

.portfolio-project .portfolio-hero--no-result .portfolio-hero__copy {
    grid-column: 1;
}

.portfolio-project .portfolio-hero--no-result .portfolio-hero__introduction,
.portfolio-project .portfolio-hero--no-result .portfolio-hero__title {
    max-width: 980px;
}


/* =========================================
   DESKTOP HERO LAYOUT VARIANTS
   ========================================= */

@media (min-width: 961px) {
    /* Metric first: the outcome leads, with the narrative on the right. */
    .portfolio-project .portfolio-hero--layout-metric-first {
        grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
    }

    .portfolio-project .portfolio-hero--layout-metric-first .portfolio-result {
        grid-column: 1 / 2;
    }

    .portfolio-project .portfolio-hero--layout-metric-first .portfolio-hero__copy {
        grid-column: 2 / 3;
    }

    .portfolio-project .portfolio-hero--layout-metric-first .portfolio-result__after {
        right: auto;
        left: 0;

        text-align: left;
    }

    .portfolio-project .portfolio-hero--layout-metric-first .portfolio-result__large::after {
        right: auto;
        left: 0;
    }

    .portfolio-project .portfolio-hero--layout-metric-first .portfolio-result__before {
        right: 0;
        left: auto;

        text-align: right;
    }

    /* Editorial: the story leads at full width; results form a lower band. */
    .portfolio-project .portfolio-hero--layout-editorial {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-hero__copy {
        grid-column: 1;
        grid-row: 1;

        padding: 72px clamp(56px, 8vw, 116px) 56px;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-hero__introduction,
    .portfolio-project .portfolio-hero--layout-editorial .portfolio-hero__title {
        max-width: 1120px;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-hero__title {
        font-size: clamp(4rem, 7.3vw, 6.75rem);
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-hero__summary {
        max-width: 820px;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-hero__metadata {
        max-width: 900px;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result {
        grid-column: 1;
        grid-row: 2;

        min-height: 300px;
        padding: 42px clamp(56px, 8vw, 116px);
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result__inner {
        display: grid;
        grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
        grid-template-rows: auto 1fr;
        column-gap: clamp(48px, 8vw, 120px);
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result__kicker {
        grid-column: 1;
        grid-row: 1;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result__heading {
        grid-column: 1;
        grid-row: 2;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result__comparison {
        grid-column: 2;
        grid-row: 1 / 3;

        min-height: 210px;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result__after {
        top: 30px;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result__before {
        bottom: 0;
    }

    .portfolio-project .portfolio-hero--layout-editorial .portfolio-result__large {
        font-size: clamp(5.5rem, 10vw, 8.5rem);
    }

    /* Compact: designed for older projects with lighter documentation. */
    .portfolio-project .portfolio-hero--layout-compact {
        grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
        min-height: 520px;
    }

    .portfolio-project .portfolio-hero--layout-compact .portfolio-hero__copy {
        padding-top: 48px;
        padding-bottom: 32px;
    }

    .portfolio-project .portfolio-hero--layout-compact .portfolio-hero__title {
        margin-top: 28px !important;

        font-size: clamp(2.9rem, 4.8vw, 4.4rem);
    }

    .portfolio-project .portfolio-hero--layout-compact .portfolio-hero__summary {
        margin-top: 26px !important;

        font-size: 1rem;
    }

    .portfolio-project .portfolio-hero--layout-compact .portfolio-hero__metadata {
        margin-top: 30px !important;
        padding-top: 18px;
    }

    .portfolio-project .portfolio-hero--layout-compact .portfolio-result {
        min-height: 520px;
        padding-top: 48px;
        padding-bottom: 32px;
    }

    .portfolio-project .portfolio-hero--layout-compact .portfolio-result__comparison {
        min-height: 330px;
    }

    .portfolio-project .portfolio-hero--layout-compact .portfolio-result__large {
        font-size: clamp(5rem, 9vw, 7.5rem);
    }

    .portfolio-project .portfolio-hero--no-result,
    .portfolio-project .portfolio-hero--layout-metric-first.portfolio-hero--no-result,
    .portfolio-project .portfolio-hero--layout-compact.portfolio-hero--no-result {
        grid-template-columns: minmax(0, 1fr);
    }

    .portfolio-project .portfolio-hero--no-result .portfolio-hero__copy {
        grid-column: 1;
    }
}


/* =========================================
   CASE-STUDY FOUNDATION
   ========================================= */

.portfolio-project .portfolio-case-study {
    width: 100%;
    margin: 0;

    color: var(--portfolio-text);
    background: var(--portfolio-background);
}

.portfolio-project .portfolio-case-section,
.portfolio-project .portfolio-case-navigation {
    position: relative;

    width: 100%;
    max-width: 1440px;
    margin: 0 auto !important;
    padding: clamp(72px, 9vw, 116px) clamp(40px, 7vw, 96px);

    overflow: hidden;
}

.portfolio-project .portfolio-case-section h2,
.portfolio-project .portfolio-case-section h3,
.portfolio-project .portfolio-case-section p,
.portfolio-project .portfolio-case-section blockquote {
    margin-block-start: 0;
}

.portfolio-project .portfolio-case-label {
    position: relative;
    z-index: 2;

    margin: 0 0 18px !important;

    color: var(--portfolio-purple);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.portfolio-project .portfolio-case-section h2 {
    position: relative;
    z-index: 2;

    max-width: 17ch;
    margin: 0 !important;

    color: var(--portfolio-text);
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
}

.portfolio-project .portfolio-case-section h3 {
    margin: 0 0 12px !important;

    color: var(--portfolio-text);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.25;
}

.portfolio-project .portfolio-case-section p {
    color: var(--portfolio-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.portfolio-project .portfolio-case-section p:last-child {
    margin-bottom: 0;
}


/* =========================================
   LIVING SECTION NUMERALS
   ========================================= */

.portfolio-project .portfolio-case-ghost {
    position: absolute;
    top: 72px;
    left: clamp(28px, 5vw, 68px);
    z-index: 0;

    color: var(--portfolio-highlight);
    font-size: clamp(9rem, 18vw, 17rem);
    font-weight: 500;
    letter-spacing: -0.09em;
    line-height: 0.72;

    opacity: 0.09;
    pointer-events: none;
    user-select: none;

    transform: translateY(0);
    transition: opacity 450ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-project .portfolio-case-section:hover > .portfolio-case-ghost {
    opacity: 0.15;
    transform: translateY(-10px);
}


/* =========================================
   CHALLENGE
   ========================================= */

.portfolio-project .portfolio-case-challenge {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
    gap: clamp(48px, 8vw, 118px);

    min-height: 560px;
}

.portfolio-project .portfolio-case-section__heading,
.portfolio-project .portfolio-case-copy {
    position: relative;
    z-index: 2;
}

.portfolio-project .portfolio-case-copy {
    align-self: center;
    max-width: 680px;
}

.portfolio-project .portfolio-case-copy p + p {
    margin-top: 22px;
}

.portfolio-project .portfolio-case-baseline {
    margin-top: 52px;
}

.portfolio-project .portfolio-case-baseline strong,
.portfolio-project .portfolio-case-baseline span {
    display: block;
}

.portfolio-project .portfolio-case-baseline strong {
    color: var(--portfolio-purple);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.portfolio-project .portfolio-case-baseline span {
    margin-top: 10px;

    color: var(--portfolio-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================
   SCOPE
   ========================================= */

.portfolio-project .portfolio-case-scope {
    min-height: 570px;

    background: var(--portfolio-surface);
}

.portfolio-project .portfolio-case-scope .portfolio-case-section__heading {
    margin-bottom: 64px;
}

.portfolio-project .portfolio-case-scope__grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(38px, 6vw, 82px);
}

.portfolio-project .portfolio-case-scope__item {
    position: relative;

    min-height: 230px;
    padding-top: 82px;
}

.portfolio-project .portfolio-case-item-ghost {
    position: absolute;
    top: 8px;
    left: 0;

    color: var(--portfolio-highlight);
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 0.8;

    opacity: 0.17;
    pointer-events: none;
    user-select: none;

    transform: translateY(0);
    transition: opacity 320ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-project .portfolio-case-scope__item:hover .portfolio-case-item-ghost {
    opacity: 0.32;
    transform: translateY(-8px);
}


/* =========================================
   PROCESS
   ========================================= */

.portfolio-project .portfolio-case-process {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
    gap: clamp(48px, 8vw, 118px);

    background: var(--portfolio-lavender);
}

.portfolio-project .portfolio-case-process__list {
    position: relative;
    z-index: 2;
}

.portfolio-project .portfolio-case-process__step {
    position: relative;

    min-height: 128px;
    padding: 26px 0 24px 92px;
}

.portfolio-project .portfolio-case-process__step + .portfolio-case-process__step {
    margin-top: 10px;
}

.portfolio-project .portfolio-case-process__number {
    position: absolute;
    top: 8px;
    left: 0;

    color: var(--portfolio-purple);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 0.9;

    opacity: 0.19;
    pointer-events: none;

    transform: translateY(0);
    transition: opacity 320ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-project .portfolio-case-process__step:hover .portfolio-case-process__number {
    opacity: 0.48;
    transform: translateY(-7px);
}


/* =========================================
   RESULTS
   ========================================= */

.portfolio-project .portfolio-case-results {
    min-height: 610px;

    color: var(--portfolio-white);
    background: var(--portfolio-purple);
}

.portfolio-project .portfolio-case-results > .portfolio-case-ghost {
    color: var(--portfolio-white);
    opacity: 0.07;
}

.portfolio-project .portfolio-case-results:hover > .portfolio-case-ghost {
    opacity: 0.12;
}

.portfolio-project .portfolio-case-results .portfolio-case-label {
    color: rgb(255 255 255 / 74%);
}

.portfolio-project .portfolio-case-results h2 {
    max-width: 18ch;

    color: var(--portfolio-white);
}

.portfolio-project .portfolio-case-results__grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(38px, 7vw, 92px);

    margin-top: 78px;
}

.portfolio-project .portfolio-case-result strong,
.portfolio-project .portfolio-case-result span {
    display: block;
}

.portfolio-project .portfolio-case-result strong {
    color: var(--portfolio-white);
    font-size: clamp(3.5rem, 7vw, 7.5rem);
    font-weight: 500;
    letter-spacing: -0.07em;
    line-height: 0.85;

    transform: translateY(0);
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-project .portfolio-case-result:hover strong {
    transform: translateY(-8px);
}

.portfolio-project .portfolio-case-result span {
    margin-top: 16px;

    color: rgb(255 255 255 / 76%);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.portfolio-project .portfolio-case-evidence {
    position: relative;
    z-index: 2;

    max-width: 780px;
    margin: 68px 0 0 !important;

    color: rgb(255 255 255 / 72%) !important;
    font-size: 0.8125rem !important;
    line-height: 1.55 !important;
}


/* =========================================
   REFLECTION
   ========================================= */

.portfolio-project .portfolio-case-reflection {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
    gap: clamp(48px, 8vw, 118px);

    min-height: 490px;
}

.portfolio-project .portfolio-case-reflection__quote {
    position: relative;
    z-index: 2;

    align-self: center;
    margin: 0 !important;
    padding: 0 !important;
}

.portfolio-project .portfolio-case-reflection__quote p {
    margin: 0 !important;

    color: var(--portfolio-text);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.portfolio-project .portfolio-case-reflection__quote footer {
    margin-top: 24px;

    color: var(--portfolio-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}


/* =========================================
   PROJECT NAVIGATION
   ========================================= */

.portfolio-project .portfolio-case-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    background: var(--portfolio-surface);
}

.portfolio-project .portfolio-case-navigation .portfolio-case-label {
    margin: 0 !important;
}

.portfolio-project .portfolio-case-navigation a,
.portfolio-project .portfolio-case-navigation > span {
    color: var(--portfolio-purple);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
}

.portfolio-project .portfolio-case-navigation a span {
    display: inline-block;
    margin-left: 8px;

    transition: transform 250ms ease;
}

.portfolio-project .portfolio-case-navigation a:hover span {
    transform: translateX(7px);
}


/* =========================================
   TABLET AND MOBILE HERO
   ========================================= */

@media (max-width: 960px) {
    .portfolio-project .portfolio-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .portfolio-project .portfolio-hero__copy {
        grid-column: 1;
        grid-row: 1;

        padding: 48px 24px 40px;
    }

    .portfolio-project .portfolio-hero__title {
        margin-top: 30px !important;

        font-size: clamp(2.75rem, 11vw, 4.25rem);
        letter-spacing: -0.045em;
        line-height: 0.98;
    }

    .portfolio-project .portfolio-hero__summary {
        margin-top: 28px !important;
        font-size: 1.0625rem;
    }

    .portfolio-project .portfolio-hero__metadata {
        grid-template-columns: 1fr 1fr;
        margin-top: 38px !important;
    }

    .portfolio-project .portfolio-hero__metadata-item:last-child {
        grid-column: 1 / -1;
    }

    .portfolio-project .portfolio-result {
        grid-column: 1;
        grid-row: 2;

        min-height: 520px;
        padding: 42px 24px 30px;
    }

    .portfolio-project .portfolio-result__comparison {
        min-height: 380px;
    }

    .portfolio-project .portfolio-result__after {
        top: 54px;
        right: 12px;
    }

    .portfolio-project .portfolio-result__large {
        font-size: clamp(5rem, 22vw, 8rem);
    }
}


/* =========================================
   TABLET AND MOBILE CASE STUDY
   ========================================= */

@media (max-width: 782px) {
    .portfolio-project .portfolio-case-section,
    .portfolio-project .portfolio-case-navigation {
        padding: 64px 24px;
    }

    .portfolio-project .portfolio-case-challenge,
    .portfolio-project .portfolio-case-process,
    .portfolio-project .portfolio-case-reflection {
        grid-template-columns: 1fr;
        gap: 46px;

        min-height: 0;
    }

    .portfolio-project .portfolio-case-copy,
    .portfolio-project .portfolio-case-reflection__quote {
        align-self: auto;
    }

    .portfolio-project .portfolio-case-scope__grid,
    .portfolio-project .portfolio-case-results__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .portfolio-project .portfolio-case-scope__item {
        min-height: 190px;
    }

    .portfolio-project .portfolio-case-process__step {
        min-height: 112px;
        padding-left: 78px;
    }

    .portfolio-project .portfolio-case-results {
        min-height: 0;
    }

    .portfolio-project .portfolio-case-results__grid {
        margin-top: 58px;
    }

    .portfolio-project .portfolio-case-result {
        padding: 16px 0 28px;
    }

    .portfolio-project .portfolio-case-evidence {
        margin-top: 42px !important;
    }

    .portfolio-project .portfolio-case-navigation {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {
    .portfolio-project .portfolio-hero__metadata {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-project .portfolio-hero__metadata-item:last-child {
        grid-column: auto;
    }

    .portfolio-project .portfolio-result {
        min-height: 470px;
    }

    .portfolio-project .portfolio-result__comparison {
        min-height: 330px;
    }

    .portfolio-project .portfolio-result__large {
        font-size: clamp(4.75rem, 24vw, 6.5rem);
    }

    .portfolio-project .portfolio-case-section h2 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

    .portfolio-project .portfolio-case-ghost {
        top: 54px;
        left: 14px;

        font-size: clamp(7rem, 34vw, 10rem);
    }

    .portfolio-project .portfolio-case-reflection__quote p {
        font-size: 1.5rem;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    .portfolio-project .portfolio-result__before,
    .portfolio-project .portfolio-result__after {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .portfolio-project .portfolio-result__large::after {
        width: 72px;
        animation: none;
    }

    .portfolio-project .portfolio-case-ghost,
    .portfolio-project .portfolio-case-item-ghost,
    .portfolio-project .portfolio-case-process__number,
    .portfolio-project .portfolio-case-result strong,
    .portfolio-project .portfolio-case-navigation a span {
        transition: none;
    }
}

/* Allow single-project headline highlighting to flow naturally */
.portfolio-project .portfolio-hero__title {
    display: block !important;
}

.portfolio-project .portfolio-hero__headline-main,
.portfolio-project .portfolio-hero__emphasis {
    display: inline !important;
}

.portfolio-project .portfolio-hero__emphasis::before {
    content: "\202F";
    letter-spacing: 0;
}
