/* Shared showcase styles. Edit _projects.scss and recompile after changes. */

.project-page {
    margin: 0;
    background: #02110B;
}

.project-page__main {
    padding: clamp(0.75rem, 3vw, 3rem);
}

.showcase,
.showcase *,
.project-dialog,
.project-dialog * {
    box-sizing: border-box;
}

.showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    padding: clamp(4.5rem, 10vw, 11rem) clamp(1.5rem, 7vw, 7.5rem) clamp(2rem, 5vw, 5rem);
    color: #25271f;
    background: #f6f3eb url("../../img/Projects/paper.jpg") center top / cover;
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 30%);
    font-family: "Inria Serif", serif;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: break-word;
}

.showcase p,
.showcase figure,
.showcase h1,
.showcase h2,
.showcase dl,
.showcase dd {
    margin: 0;
}

.showcase p + p { margin-top: 1.5em; }
.showcase img { display: block; width: 100%; max-width: 100%; height: auto; }
.showcase a { color: inherit; text-decoration: none; }
.showcase a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.showcase a:focus-visible,
.project-dialog button:focus-visible {
    outline: 2px solid #4e6439;
    outline-offset: 5px;
}

.showcase__back {
    position: absolute;
    top: 1.5rem;
    left: clamp(1.5rem, 7vw, 7.5rem);
    z-index: 2;
    font: 0.8rem "Inter", sans-serif;
}

.showcase .showcase__brand {
    position: absolute;
    z-index: -1;
    top: -4%;
    right: -8%;
    width: 35%;
    opacity: 0.18;
    pointer-events: none;
}

.showcase__title {
    color: #4e6439;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1.3;
    text-transform: uppercase;
}

.showcase__title::after,
.showcase__subtitle::after,
.showcase h2::after {
    content: "";
    display: block;
    width: 8.5rem;
    max-width: 100%;
    height: 1px;
    margin-block: 1.35rem;
    background: #af7d45;
}

.showcase__subtitle { font-size: clamp(1.25rem, 2.3vw, 1.9rem); }
.showcase__subtitle::after { opacity: 0.55; }

.showcase__overview {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 1.2fr;
    gap: clamp(1rem, 2.8vw, 2.5rem);
    align-items: center;
    margin-top: 2.5rem;
}

.showcase__overview > *,
.showcase__split > *,
.showcase__build > * { min-width: 0; }
.showcase__question { font-style: italic; font-size: 0.98em; }
.showcase .showcase__context { margin-top: 2rem; font-size: 0.72em; line-height: 1.8; }
.showcase__intro-image img { aspect-ratio: 1.1; object-fit: cover; }

.showcase h2 {
    color: #4e6439;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 400;
    line-height: 1.25;
}

.showcase__contribution h2 { font-size: clamp(1.05rem, 1.7vw, 1.4rem); }
.showcase__contribution h2::after { width: 4.5rem; margin-block: 1rem; }
.showcase__contribution ul { margin: 0; padding-left: 1em; font-size: 0.72em; line-height: 1.8; }
.showcase__contribution li + li { margin-top: 0.4em; }
.showcase__section { margin-top: clamp(3rem, 6vw, 6rem); }
.showcase__emphasis { color: #4e6439; font-variant: small-caps; font-weight: 700; }

.showcase__discovery { position: relative; padding-right: 29%; }
.showcase .showcase__botanical {
    position: absolute;
    top: -2.5rem;
    right: calc(-1 * clamp(1.5rem, 7vw, 7.5rem));
    width: 34%;
    max-width: none;
    pointer-events: none;
}

.showcase__split {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr;
    align-items: center;
    gap: clamp(2rem, 10vw, 8rem);
}

.showcase__build {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.showcase__build dt { margin-top: 1.7rem; font-size: 0.82em; text-transform: uppercase; }
.showcase__build dt:first-child { margin-top: 0; }
.showcase .showcase__reflection {
    max-width: 45rem;
    margin: clamp(4rem, 10vw, 9rem) auto;
    color: #98632c;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.3rem, 2.3vw, 1.85rem);
    line-height: 1.35;
    text-align: center;
}

.showcase__pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5rem; }
.showcase__pagination a { display: inline-flex; align-items: center; gap: 1rem; font: 0.8rem "Inter", sans-serif; letter-spacing: 0.15em; text-transform: uppercase; }
.showcase__pagination a + a { border-left: 1px solid currentColor; padding-left: 1.5rem; }
.showcase__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: clamp(0.75rem, 3vw, 3rem);
    border: 0;
    background: transparent;
    color: #25271f;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.project-dialog::backdrop { background: rgb(1 10 6 / 72%); backdrop-filter: blur(3px); }
.project-dialog__paper { position: relative; width: min(100%, 68rem); min-height: 12rem; margin: 0 auto; background: #f6f3eb url("../../img/Projects/paper.jpg") center top / cover; box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 30%); }
.project-dialog[open] .project-dialog__paper { animation: project-arrive 240ms ease-out; }
.project-dialog .showcase { box-shadow: none; }
.project-dialog .showcase__back { display: none; }
.project-dialog__toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; padding-right: 0.65rem; pointer-events: none; }
.project-dialog__close { flex: 0 0 2.75rem; height: 2.75rem; margin-top: 0.65rem; border: 0; border-radius: 50%; background: #f6f3eb; color: #25271f; font: 1.65rem/1 Arial, sans-serif; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 10px rgb(0 0 0 / 8%); }
.project-dialog__status { margin: 0; padding: 5rem 2rem; font: 1.15rem "Inria Serif", serif; text-align: center; }
.project-dialog__status[hidden] { display: none; }
@keyframes project-arrive { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
    .showcase__overview { grid-template-columns: 0.85fr 1.15fr; }
    .showcase__contribution { grid-column: 1 / -1; }
    .showcase__contribution ul { font-size: 0.9em; }
    .showcase__context { font-size: 0.8em; }
    .showcase__split { gap: 2rem; }
    .showcase__build { grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
}

@media (max-width: 540px) {
    .showcase__overview, .showcase__split, .showcase__build { grid-template-columns: 1fr; }
    .showcase__contribution { grid-column: auto; }
    .showcase__question { max-width: 28ch; }
    .showcase .showcase__context { margin-top: 1rem; font-size: 0.85em; }
    .showcase__intro-image { max-width: 24rem; }
    .showcase__discovery { padding-right: 0; }
    .showcase .showcase__botanical { position: relative; top: auto; right: auto; width: 45%; max-height: 15rem; object-fit: contain; margin: 1.5rem 0 0 auto; }
    .showcase__build > figure { grid-row: 2; }
    .showcase__pagination { justify-content: center; gap: 1rem; }
    .showcase__pagination a { gap: 0.4rem; font-size: 0.7rem; }
    .showcase__pagination a + a { padding-left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .project-dialog[open] .project-dialog__paper { animation: none; }
}

.showcase .showcase__opening-question {
    max-width: 38ch;
    margin-top: 1.5rem;
    font-style: italic;
}

.showcase__overview--two-column {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
    margin-top: 2rem;
}

.showcase__project-details h2 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.showcase__task h2::after,
.showcase__project-details .showcase__contribution h2::after {
    display: none;
}

.showcase__task p {
    margin-top: 0.7rem;
    font-size: 0.78em;
}

.showcase__task::after {
    content: "";
    display: block;
    width: 6rem;
    height: 1px;
    margin-block: 1rem;
    background: #af7d45;
}

.showcase__project-details .showcase__contribution ul {
    margin-top: 0.9rem;
}

.showcase__story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    row-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.showcase__story-grid > * { min-width: 0; }

.showcase__garden-image {
    width: 80%;
    justify-self: end;
    padding-top: 0.5rem;
}

.showcase .showcase__pullquote {
    max-width: 16ch;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.12em;
    line-height: 1.65;
    text-align: center;
}

.showcase__relationships h2,
.showcase__solution h2 { text-align: center; }

.showcase__relationships h2::after,
.showcase__solution h2::after { margin-inline: auto; }

.showcase__relationships p,
.showcase__campaign p {
    text-align: justify;
    hyphens: auto;
}

.showcase__story-grid + .showcase__solution {
    margin-top: clamp(2rem, 4vw, 4rem);
}

.showcase .showcase__pillars {
    margin: clamp(2rem, 5vw, 4rem) auto 0;
}

.showcase__pillars a { display: block; }

.showcase__campaign {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 4rem);
}

.showcase--geografisk-have .showcase__title,
.showcase--geografisk-have h2,
.showcase--geografisk-have .showcase__pullquote,
.showcase--geografisk-have .showcase__reflection {
    color: #005332;
}

.showcase--geografisk-have a:focus-visible {
    outline-color: #005332;
}

.showcase--geografisk-have .showcase__brand {
    top: -2rem;
    right: -9%;
    width: 35%;
}

.showcase--geografisk-have h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.showcase--geografisk-have h2::after {
    width: 6rem;
    margin-block: 1rem;
}

.showcase--geografisk-have .showcase__reflection {
    font-family: "Inria Serif", serif;
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    font-style: italic;
}

@media (max-width: 600px) {
    .showcase__overview--two-column,
    .showcase__story-grid,
    .showcase__campaign {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase__task p { font-size: 0.95em; }
    .showcase__project-details .showcase__contribution ul { font-size: 0.9em; }
    .showcase__garden-image { width: 100%; padding-top: 0; }
    .showcase .showcase__pullquote { max-width: 26ch; }

    .showcase__relationships p,
    .showcase__campaign p { text-align: left; }

    .showcase--geografisk-have .showcase__title {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem);
        letter-spacing: 0.18em;
    }

    .showcase--geografisk-have .showcase__brand {
        top: -1rem;
        right: -12%;
        width: 48%;
    }
}

.showcase__journey > h2 { text-align: center; }
.showcase__journey > h2::after { margin-inline: auto; }

.showcase__steps {
    display: grid;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding: 0;
    list-style: none;
}

.showcase__step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.showcase__step > * { min-width: 0; }
.showcase__step-copy { position: relative; padding-left: 2.8rem; }

.showcase__step-copy h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 400;
    line-height: 1.25;
}

.showcase__step-copy h3::after {
    content: "";
    display: block;
    width: 6rem;
    height: 1px;
    margin-block: 1rem;
    background: #af7d45;
}

.showcase__step-number {
    position: absolute;
    top: -0.15rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid #af7d45;
    border-radius: 50%;
    color: #936227;
    font-size: 1rem;
    line-height: 1;
}

.showcase__step-copy > p:not(.showcase__pullquote) {
    text-align: justify;
    hyphens: auto;
}

.showcase__step--reverse .showcase__step-copy { grid-column: 2; grid-row: 1; }
.showcase__step--reverse .showcase__step-visual { grid-column: 1; grid-row: 1; }
.showcase .showcase__journey-outcome { margin-top: clamp(2rem, 4vw, 3.5rem); }

.showcase--carol-christina h2,
.showcase--carol-christina h3,
.showcase--carol-christina .showcase__pullquote {
    color: #004b32;
}

.showcase--carol-christina a:focus-visible {
    outline-color: #004b32;
}

.showcase--carol-christina .showcase__title--logo { width: min(65%, 29rem); }
.showcase--carol-christina .showcase__title--logo img { width: 100%; }
.showcase--carol-christina .showcase__subtitle::after { display: none; }

.showcase--carol-christina .showcase__brand {
    top: 0;
    right: -20%;
    width: 60%;
    opacity: 0.12;
}

.showcase--carol-christina h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.showcase--carol-christina h2::after { width: 6rem; margin-block: 1rem; }

.showcase__overview--carol {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 7vw, 6rem);
    margin-top: 1.5rem;
}

.showcase--carol-christina .showcase__opening-question {
    margin-top: 0;
    font-size: 0.95em;
}

.showcase--carol-christina .showcase__opening-question::after {
    content: "";
    display: block;
    width: 6rem;
    height: 1px;
    margin-block: 1.25rem;
    background: #af7d45;
}

.showcase__path-image img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.showcase__story-grid--carol {
    align-items: center;
    column-gap: clamp(2rem, 6vw, 5rem);
}

.showcase .showcase__connected-petals,
.showcase .showcase__trinity {
    width: min(45%, 10rem);
    margin: 0 auto 1.5rem;
}

.showcase .showcase__scattered-petals {
    width: min(100%, 23rem);
    margin-inline: auto;
}

.showcase--carol-christina .showcase__pullquote {
    max-width: 25ch;
    font-size: 1.08em;
    font-weight: 700;
    line-height: 1.4;
}

.showcase--carol-christina .showcase__step-copy .showcase__pullquote {
    margin-top: 2rem;
}

.showcase--carol-christina .showcase__step--solution {
    align-items: end;
}

.showcase--carol-christina .showcase__reflection {
    color: #ac573b;
    font-style: italic;
}

@media (max-width: 650px) {
    .showcase__overview--carol,
    .showcase__story-grid--carol,
    .showcase__step {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase__step--reverse .showcase__step-copy,
    .showcase__step--reverse .showcase__step-visual {
        grid-column: auto;
        grid-row: auto;
    }

    .showcase__step-copy > p:not(.showcase__pullquote) { text-align: left; }
    .showcase__step-visual { width: min(100%, 25rem); justify-self: center; }
    .showcase__path-image { width: min(100%, 24rem); justify-self: center; }
    .showcase__story-grid--carol .showcase__story { grid-row: 1; }
    .showcase--carol-christina .showcase__title--logo { width: min(85%, 24rem); }
    .showcase--carol-christina .showcase__task p { font-size: 0.95em; }
    .showcase--carol-christina .showcase__contribution ul { font-size: 0.85em; }
    .showcase--carol-christina .showcase__brand { right: -25%; width: 70%; }
}
