/* UP Prototypes – editorial project stories
   Uses the existing anthracite / orange / off-white brand palette. */

:root {
    --story-ink: #171719;
    --story-paper: #f2efe9;
    --story-paper-light: #fbfaf7;
    --story-line: rgba(23, 23, 25, 0.16);
    --story-orange: var(--accent, #e8650a);
    --story-orange-dark: var(--accent-dark, #c4540a);
    --story-serif: Georgia, "Times New Roman", serif;
}

/* The additional "Projekte" item keeps the existing desktop navigation compact. */
.nav-menu {
    gap: clamp(0.35rem, 1.25vw, 2rem);
}

.nav-menu a {
    padding-left: clamp(0.5rem, 0.8vw, 1rem);
    padding-right: clamp(0.5rem, 0.8vw, 1rem);
}

.project-feature-section {
    position: relative;
    padding: clamp(4.5rem, 8vw, 8rem) 2rem;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        var(--story-ink);
    background-size: 42px 42px;
    color: #f7f4ee;
}

.project-feature-section::before {
    content: "";
    position: absolute;
    width: min(42vw, 620px);
    aspect-ratio: 1;
    top: -26%;
    right: -8%;
    border-radius: 50%;
    background: rgba(232, 101, 10, 0.12);
    filter: blur(10px);
    pointer-events: none;
}

.project-feature-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.project-feature-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.project-feature-edition,
.project-kicker,
.project-meta,
.project-section-label,
.project-feature-meta,
.prototype-hub-card-meta {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-feature-edition {
    margin-bottom: 0.85rem;
    color: #ff9b5f;
}

.project-feature-masthead h2 {
    max-width: 10ch;
    margin: 0;
    color: #fff;
    font-family: var(--story-serif);
    font-size: clamp(3.2rem, 7.5vw, 7.4rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.82;
}

.project-feature-intro {
    max-width: 42rem;
    margin: 0;
    color: rgba(247, 244, 238, 0.72);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
}

.project-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
    gap: 2rem;
}

.project-feature-card {
    min-width: 0;
}

.project-feature-card--compact {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.project-feature-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #29292c;
}

.project-feature-card--lead .project-feature-image-link {
    aspect-ratio: 16 / 9;
}

.project-feature-card--compact .project-feature-image-link {
    aspect-ratio: 4 / 3;
}

.project-feature-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.72, 0.2, 1), filter 0.4s ease;
}

.project-feature-card:hover .project-feature-image-link img {
    transform: scale(1.025);
    filter: saturate(1.05) contrast(1.03);
}

.project-feature-number {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    background: var(--story-orange);
    color: #fff;
    font-family: var(--story-serif);
    font-size: 1.7rem;
}

.project-feature-copy {
    padding-top: 1.3rem;
}

.project-feature-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    color: #ff9b5f;
}

.project-feature-meta span:last-child {
    color: rgba(247, 244, 238, 0.5);
    text-align: right;
}

.project-feature-copy h3 {
    margin: 0 0 0.8rem;
    font-family: var(--story-serif);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.project-feature-card--compact .project-feature-copy h3 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.project-feature-copy h3 a {
    color: #fff;
    text-decoration: none;
}

.project-feature-copy > p {
    max-width: 58rem;
    margin: 0 0 1.1rem;
    color: rgba(247, 244, 238, 0.68);
    line-height: 1.7;
}

.project-feature-read {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255, 155, 95, 0.6);
    color: #ff9b5f;
    text-decoration: none;
    font-weight: 750;
}

.project-feature-read:hover {
    color: #fff;
    border-color: #fff;
}

.project-feature-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.project-feature-footer p {
    margin: 0;
    color: rgba(247, 244, 238, 0.64);
}

.project-feature-footer p strong {
    color: #fff;
}

.project-feature-footer a {
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.project-feature-footer a::after {
    content: " →";
    color: #ff9b5f;
}

/* Prototype service page: editorial project index */

.prototype-hub-lead {
    margin-top: 1.4rem;
}

.prototype-hub-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1.25fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.4rem;
}

.prototype-hub-heading h2 {
    max-width: 12ch;
    margin: 0;
    color: var(--story-ink);
    font-family: var(--story-serif);
    font-size: clamp(2.5rem, 5vw, 5.3rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.prototype-hub-heading p {
    margin: 0;
    color: var(--text-muted-dark, #666);
    font-size: 1.03rem;
    line-height: 1.75;
}

.prototype-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.prototype-hub-card {
    position: relative;
    display: grid;
    min-height: 33rem;
    overflow: hidden;
    border-radius: 24px;
    background: #1c1c1e;
    color: #fff;
    text-decoration: none;
}

.prototype-hub-card img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.prototype-hub-card::after {
    content: "";
    grid-area: 1 / 1;
    z-index: 1;
    background: linear-gradient(180deg, transparent 30%, rgba(17, 17, 20, 0.92) 100%);
}

.prototype-hub-card-content {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    align-self: end;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.prototype-hub-card-meta {
    display: block;
    margin-bottom: 0.5rem;
    color: #ff9b5f;
}

.prototype-hub-card h3 {
    margin: 0 0 0.65rem;
    color: #fff;
    font-family: var(--story-serif);
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.prototype-hub-card p {
    max-width: 43rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.prototype-hub-card:hover img {
    transform: scale(1.025);
}

/* Full project reports */

.project-page-body {
    background: var(--story-paper);
    color: var(--story-ink);
}

.project-page-body .service-page-topbar {
    background: rgba(242, 239, 233, 0.92);
}

.project-main {
    padding-bottom: 5rem;
}

.project-breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    color: #676365;
    font-size: 0.88rem;
}

.project-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.project-breadcrumbs a:hover {
    color: var(--story-orange-dark);
}

.project-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-hero-image {
    position: relative;
    display: grid;
    min-height: clamp(34rem, 76vh, 52rem);
    overflow: hidden;
    background: #222;
}

.project-hero-image > img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.project-hero-image::after {
    content: "";
    grid-area: 1 / 1;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(17, 17, 20, 0.08) 15%, rgba(17, 17, 20, 0.88) 100%),
        linear-gradient(90deg, rgba(17, 17, 20, 0.46), transparent 65%);
}

.project-hero-content {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    align-self: end;
    max-width: 69rem;
    padding: clamp(1.4rem, 4.6vw, 4.6rem);
    color: #fff;
}

.project-kicker {
    display: block;
    margin-bottom: 0.8rem;
    color: #ffad79;
}

.project-hero h1 {
    max-width: 12ch;
    margin: 0 0 1.1rem;
    font-family: var(--story-serif);
    font-size: clamp(3.2rem, 7.1vw, 7.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.84;
    text-wrap: balance;
}

.project-hero-deck {
    max-width: 55rem;
    margin: 0 0 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.65vw, 1.28rem);
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.66);
}

.project-article {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 6.5rem) 2rem 0;
}

.project-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
    gap: clamp(2.5rem, 6vw, 6.5rem);
    align-items: start;
}

.project-story-main {
    min-width: 0;
}

.project-standfirst {
    margin-bottom: 3.5rem;
}

.project-standfirst p {
    max-width: 47rem;
    margin: 0;
    font-family: var(--story-serif);
    font-size: clamp(1.55rem, 2.7vw, 2.45rem);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.project-standfirst p::first-letter {
    float: left;
    margin: 0.04em 0.12em -0.02em 0;
    color: var(--story-orange);
    font-family: var(--story-serif);
    font-size: 3.9em;
    line-height: 0.76;
}

.project-story-section {
    margin-top: clamp(3.5rem, 7vw, 7rem);
}

.project-section-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--story-orange-dark);
}

.project-story-section h2 {
    max-width: 16ch;
    margin: 0 0 1.2rem;
    color: var(--story-ink);
    font-family: var(--story-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.93;
}

.project-story-section > p,
.project-body-copy {
    max-width: 50rem;
    margin: 0 0 1rem;
    color: #504d4d;
    font-size: 1.03rem;
    line-height: 1.82;
}

.project-pullquote {
    margin: 3rem 0;
    padding: 1.6rem 0 1.6rem clamp(1.2rem, 3vw, 2.4rem);
    border-top: 1px solid var(--story-line);
    border-bottom: 1px solid var(--story-line);
    border-left: 4px solid var(--story-orange);
}

.project-pullquote p {
    max-width: 42rem;
    margin: 0;
    font-family: var(--story-serif);
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    font-style: italic;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.project-facts {
    position: sticky;
    top: 7rem;
    padding: 1.4rem;
    border-top: 5px solid var(--story-orange);
    background: var(--story-ink);
    color: #fff;
}

.project-facts h2 {
    margin: 0 0 1rem;
    font-family: var(--story-serif);
    font-size: 1.9rem;
    font-weight: 500;
}

.project-facts dl {
    margin: 0;
}

.project-facts div {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.project-facts dt {
    color: #ffad79;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.project-solution-grid,
.project-challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--story-line);
    background: var(--story-line);
}

.project-solution-card,
.project-challenge-card {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    background: var(--story-paper-light);
}

.project-solution-card .project-card-number {
    display: block;
    margin-bottom: 1.8rem;
    color: var(--story-orange-dark);
    font-family: var(--story-serif);
    font-size: 1.45rem;
}

.project-solution-card h3,
.project-challenge-card h3 {
    margin: 0 0 0.55rem;
    color: var(--story-ink);
    font-family: var(--story-serif);
    font-size: 1.65rem;
    font-weight: 500;
}

.project-solution-card p,
.project-challenge-card p {
    margin: 0;
    color: #5f5b5b;
    line-height: 1.68;
}

.project-challenge-card strong {
    display: block;
    margin-top: 0.8rem;
    color: var(--story-orange-dark);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-process {
    counter-reset: phase;
    display: grid;
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--story-line);
}

.project-process-step {
    counter-increment: phase;
    display: grid;
    grid-template-columns: 5rem minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 1.2rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--story-line);
}

.project-process-step::before {
    content: "0" counter(phase);
    color: var(--story-orange-dark);
    font-family: var(--story-serif);
    font-size: 1.4rem;
}

.project-process-step h3 {
    margin: 0;
    font-family: var(--story-serif);
    font-size: 1.6rem;
    font-weight: 500;
}

.project-process-step p {
    margin: 0;
    color: #5f5b5b;
    line-height: 1.65;
}

.project-figure {
    margin: 2.3rem 0 0;
}

.project-figure img {
    display: block;
    width: 100%;
    height: auto;
    background: #dedbd4;
}

.project-figure figcaption,
.project-image-pair figcaption,
.project-gallery figcaption {
    padding-top: 0.65rem;
    color: #6e6969;
    font-size: 0.86rem;
    line-height: 1.55;
}

.project-image-pair,
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.project-image-pair figure,
.project-gallery figure {
    min-width: 0;
    margin: 0;
}

.project-image-pair img,
.project-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #dedbd4;
}

.project-image-pair--portrait img {
    aspect-ratio: 4 / 3;
}

.project-gallery figure:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
}

.project-data-wrap {
    margin-top: 2rem;
    overflow-x: auto;
    border-top: 4px solid var(--story-ink);
}

.project-data {
    width: 100%;
    border-collapse: collapse;
    background: var(--story-paper-light);
}

.project-data th,
.project-data td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--story-line);
    text-align: left;
    vertical-align: top;
}

.project-data th {
    width: 36%;
    color: #716d6c;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-data td {
    color: var(--story-ink);
    font-weight: 650;
}

.project-status {
    margin-top: clamp(3.5rem, 7vw, 7rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(232, 101, 10, 0.34);
    background:
        linear-gradient(135deg, rgba(232, 101, 10, 0.12), transparent 55%),
        var(--story-paper-light);
}

.project-status h2 {
    margin: 0 0 0.7rem;
    font-family: var(--story-serif);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.project-status p {
    max-width: 56rem;
    margin: 0;
    color: #5f5b5b;
    line-height: 1.75;
}

.project-next {
    max-width: 1400px;
    margin: clamp(4rem, 8vw, 8rem) auto 0;
    padding: 0 2rem;
}

.project-next-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
    min-height: 28rem;
    overflow: hidden;
    background: var(--story-ink);
    color: #fff;
    text-decoration: none;
}

.project-next-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-next-content {
    align-self: center;
    padding: clamp(1.6rem, 5vw, 5rem);
}

.project-next-content span {
    color: #ffad79;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-next-content h2 {
    margin: 0.65rem 0 1rem;
    color: #fff;
    font-family: var(--story-serif);
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.93;
}

.project-next-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.project-contact-strip {
    max-width: 1400px;
    margin: 1rem auto 0;
    padding: 0 2rem;
}

.project-contact-strip-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--story-line);
    background: rgba(255, 255, 255, 0.42);
}

.project-contact-strip h2 {
    margin: 0 0 0.25rem;
    font-family: var(--story-serif);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 500;
}

.project-contact-strip p {
    margin: 0;
    color: #625e5d;
}

.project-contact-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    background: var(--story-orange);
    color: #fff;
    text-decoration: none;
    font-weight: 750;
}

@media (max-width: 1050px) {
    .project-feature-grid,
    .prototype-hub-heading,
    .project-story-grid {
        grid-template-columns: 1fr;
    }

    .project-feature-card--compact {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 1.4rem;
        padding: 2rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        border-left: 0;
    }

    .project-feature-card--compact .project-feature-copy {
        align-self: center;
        padding-top: 0;
    }

    .project-facts {
        position: static;
        display: grid;
        grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
        gap: 1.5rem;
    }

    .project-facts h2 {
        margin: 0;
    }

    .project-facts dl {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .nav-container {
        padding-left: 190px;
        gap: 0.6rem;
    }

    .header-logo {
        height: 68px;
    }

    .header.scrolled .header-logo {
        height: 64px;
    }

    .nav-cta-btn {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

@media (max-width: 768px) {
    .project-feature-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .project-feature-masthead,
    .project-feature-card--compact,
    .project-next-card {
        grid-template-columns: 1fr;
    }

    .project-feature-masthead {
        gap: 1.4rem;
    }

    .project-feature-masthead h2 {
        font-size: clamp(3.2rem, 17vw, 5.5rem);
    }

    .project-feature-card--compact .project-feature-image-link {
        aspect-ratio: 16 / 10;
    }

    .project-feature-footer,
    .project-contact-strip-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .prototype-hub-grid,
    .project-solution-grid,
    .project-challenge-grid,
    .project-image-pair,
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .prototype-hub-card {
        min-height: 28rem;
    }

    .project-breadcrumbs,
    .project-hero,
    .project-article,
    .project-next,
    .project-contact-strip {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .project-hero-image {
        min-height: 38rem;
    }

    .project-hero-content {
        padding: 1.25rem;
    }

    .project-hero h1 {
        font-size: clamp(3.1rem, 16vw, 5.4rem);
    }

    .project-process-step {
        grid-template-columns: 3.2rem minmax(0, 1fr);
    }

    .project-process-step p {
        grid-column: 2;
    }

    .project-facts {
        grid-template-columns: 1fr;
    }

    .project-facts dl {
        grid-template-columns: 1fr;
    }

    .project-gallery figure:first-child:nth-last-child(3) {
        grid-column: auto;
    }

    .project-next-card img {
        min-height: 17rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-feature-image-link img,
    .prototype-hub-card img {
        transition: none;
    }
}
