/* ========================================
   01. Base / Global
   ======================================== */

:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --surface-soft: #efeee9;
    --showcase: #d3d0ca;
    --text: #171717;
    --muted: #686868;
    --border: #deded8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ========================================
   02. Contextual Global Navigation
   ======================================== */

.projects-page {
    --hero-nav-text: #f3f3f1;
    --hero-nav-muted: #999;
    --hero-nav-border: rgba(255, 255, 255, 0.18);
    --hero-nav-depth: rgba(0, 0, 0, 0.48);
    --hero-nav-depth-size: 30px;
    --hero-nav-button: rgba(255, 255, 255, 0.06);
}


/* ========================================
   03. Project Index Hero
   ======================================== */

.page-hero {
    min-height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(64px, 8vh, 96px) 6vw clamp(44px, 6vh, 72px);
    background: #1b1b1b;
    color: #fff;
}

.page-hero > .eyebrow {
    color: var(--accent-on-dark);
}

.page-hero-copy > p {
    color: #949494;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 8vw;
    align-items: end;
    margin: auto 0;
    padding: clamp(40px, 7vh, 78px) 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(64px, 8.2vw, 126px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.86;
}

.page-hero-copy {
    max-width: 520px;
    padding-bottom: 8px;
}

.page-hero-copy > p {
    margin: 0;
    font-size: 19px;
    line-height: 1.65;
}

.text-link {
    display: inline-block;
    margin-top: 32px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.text-link:hover {
    opacity: 0.55;
}

.hero-register {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #3b3b3b;
}

.hero-register > div {
    min-height: clamp(92px, 10vh, 146px);
    padding: clamp(24px, 3vh, 40px) clamp(24px, 2.2vw, 44px) 18px 0;
    border-right: 1px solid #3b3b3b;
}

.hero-register > div:not(:first-child) {
    padding-left: clamp(24px, 2.2vw, 44px);
}

.hero-register > div:last-child {
    border-right: 0;
}

.hero-register span {
    display: block;
    margin-bottom: 8px;
    color: #707070;
    font-size: clamp(10px, 0.55vw, 13px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-register p {
    margin: 0;
    color: #c4c4c4;
    font-size: clamp(13px, 0.8vw, 19px);
    font-weight: 600;
}


/* ========================================
   04. Buttons
   ======================================== */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 19px;
    border: 1px solid var(--text);
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    background: var(--text);
    color: #fff;
}

.button-outline {
    border-color: #bdbdb7;
    background: transparent;
}


/* ========================================
   05. Project Entry / Visual Collage
   ======================================== */

.project-entry {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3vh, 48px) 6vw;
    background: var(--surface-soft);
}

.project-entry-raumkante {
    padding-top: clamp(44px, 57vh, 72px);
}

#projekt-falkenberg {
    padding-bottom: clamp(44px, 5vh, 72px);
}

@media (min-width: 1101px) {
    .project-entry-raumkante {
        padding-top: clamp(96px, 10vh, 140px);
    }

    #projekt-falkenberg {
        padding-bottom: clamp(96px, 10vh, 140px);
    }
}

.project-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #cecdc7;
}

.project-entry-header p,
.project-entry-header span {
    margin: 0;
    color: #858585;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.project-entry-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(20px, 3vw, 50px);
    align-items: center;
    padding-top: clamp(42px, 5vh, 64px);
}

.project-entry-copy h2,
.section-heading h2,
.page-cta h2 {
    margin: 18px 0 0;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.project-lead {
    max-width: 520px;
    margin: 34px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.project-meta {
    margin: 42px 0 0;
    border-top: 1px solid #cecdc7;
}

.project-meta > div {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #cecdc7;
}

.project-meta dt,
.project-meta dd {
    margin: 0;
}

.project-meta dt {
    color: #929292;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.project-meta dd {
    font-size: 14px;
    font-weight: 600;
}

.project-collage {
    position: relative;
    min-height: clamp(480px, 50vh, 620px);
    display: flex;
    align-items: center;
    padding: clamp(30px, 4vw, 64px);
    border-radius: 18px;
    background: transparent;
}

.desktop-shot {
    width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

.desktop-shot img,
.mobile-shot img {
    width: 100%;
    height: auto;
    display: block;
}


.mobile-shot {
    position: absolute;
    right: 3%;
    width: min(30%, 380px);
    height: auto;
    margin: 0;
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.14);
}


@media (max-width: 1000px) {
    .mobile-shot {
        position: absolute;
        right: 3.5%;
        bottom: auto;
        width: min(40%, 360px);
        margin: 0;
        overflow: hidden;
        border-radius: 9px;
        box-shadow: 0 26px 72px rgba(0, 0, 0, 0.14);
    }
}



/* ========================================
   06. Project Perspectives
   ======================================== */

.project-perspectives {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(82px, 10vh, 140px) 6vw;
    background: var(--accent-deep);
    color: #fff;
}

.project-perspectives .eyebrow {
    color: var(--accent-on-dark);
}

.project-perspectives .section-heading {
    max-width: 760px;
}

.perspectives-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(70px, 10vw, 160px);
    align-items: center;
    margin-top: clamp(50px, 8vh, 90px);
}

.perspective-visual {
    position: relative;
    width: min(100%, 390px);
    min-height: 390px;
    margin: 0 auto;
}

.perspective-desktop {
    position: absolute;
    top: 8%;
    left: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: #f7f7f5;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.perspective-desktop img,
.perspective-mobile img {
    width: 100%;
    display: block;
}

.perspective-mobile {
    position: absolute;
    z-index: 1;
    width: 34%;
    overflow: hidden;
    padding: 14px 5px 5px;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    background: #171717;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.perspective-mobile::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #777;
    box-shadow: 8px 0 #5d5d5d, 16px 0 #444;
}

.perspective-mobile img {
    border-radius: 0 0 10px 10px;
}

.perspective-mobile-hero {
    right: 0;
    bottom: 6%;
}

.perspective-mobile-firm {
    right: 26%;
    bottom: 0;
}

.perspective-list {
    border-top: 1px solid var(--accent-line);
}

.perspective-list article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 24px;
    padding: clamp(26px, 4vh, 42px) 0;
    border-bottom: 1px solid var(--accent-line);
}

.perspective-list span {
    color: var(--accent-on-dark);
    font-size: 11px;
    font-weight: 700;
}

.perspective-list h3 {
    margin: 0 0 12px;
    font-size: 25px;
    letter-spacing: -0.025em;
}

.perspective-list p {
    max-width: 560px;
    margin: 0;
    color: var(--accent-on-deep);
    font-size: 15px;
    line-height: 1.65;
}


/* Desktop viewport composition */

@media (min-width: 901px) {
    .project-perspectives {
        min-height: 100dvh;
        justify-content: flex-start;
        overflow: visible;
        padding-top: clamp(58px, 7vh, 92px);
        padding-bottom: clamp(58px, 7vh, 92px);
    }

    .project-perspectives .section-heading {
        flex: 0 0 auto;
        margin: 0;
    }

    .perspectives-grid {
        min-height: 0;
        flex: 1;
        margin-top: clamp(34px, 5vh, 64px);
    }

    .perspective-visual {
        height: clamp(390px, 55vh, 560px);
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .perspective-desktop {
        top: 0;
    }

    .perspective-mobile {
        max-height: none;
    }

    .perspective-list {
        align-self: center;
    }
}

@media (min-width: 1800px) {
    .perspective-visual {
        width: min(100%, 560px);
        height: clamp(460px, 55vh, 650px);
    }
}

/* ========================================
   07. Portfolio System
   ======================================== */

.content-section {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(82px, 10vh, 130px) 6vw;
}

.case-study-section {
    background: var(--surface);
}

.section-heading {
    margin-bottom: clamp(48px, 7vh, 78px);
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 8vw;
    align-items: end;
}

.split-heading > p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.case-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
}

.case-value-grid article {
    min-height: clamp(250px, 31vh, 330px);
    padding: 28px 30px 0 0;
    border-right: 1px solid var(--border);
}

.case-value-grid article:not(:first-child) {
    padding-left: 30px;
}

.case-value-grid article:last-child {
    border-right: 0;
}

.case-value-grid span {
    display: block;
    margin-bottom: clamp(48px, 8vh, 82px);
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.case-value-grid h3 {
    margin: 0 0 16px;
    font-size: 25px;
    letter-spacing: -0.025em;
}

.case-value-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}


/* ========================================
   08. Contact CTA
   ======================================== */

.page-cta {
    --footer-height: 0px;
    min-height: calc(100dvh - var(--footer-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(88px, 11vh, 140px) 6vw;
    background: var(--text);
    color: #fff;
    text-align: center;
}

.page-cta .eyebrow {
    color: var(--accent-on-dark);
}

.page-cta h2 {
    max-width: 900px;
}

.page-cta > p:not(.eyebrow) {
    max-width: 580px;
    margin: 28px 0 0;
    color: #999;
    font-size: 17px;
    line-height: 1.65;
}

.cta-mail {
    max-width: 100%;
    margin-top: 38px;
    padding-bottom: 7px;
    border-bottom: 1px solid #777;
    color: #fff;
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
    overflow-wrap: anywhere;
}


/* ========================================
   09. Responsive: Tablet (≤ 1100px)
   Includes the 1032px-wide iPad Pro portrait viewport.
   ======================================== */

@media (max-width: 1100px) {
    .page-hero-grid,
    .project-entry-grid,
    .split-heading {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .page-hero h1 {
        font-size: clamp(58px, 12vw, 96px);
    }

    .project-entry,
    .project-perspectives,
    .content-section {
        padding-right: 24px;
        padding-left: 24px;
    }

    .project-entry-grid {
        gap: 70px;
    }

    .project-entry {
        min-height: 100dvh;
    }

    .project-collage {
        min-height: clamp(460px, 58dvh, 620px);
    }

    .project-entry {
        min-height: 0;
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .perspectives-grid {
        grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
        gap: 60px;
    }

    .project-perspectives {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .perspective-visual {
        height: auto;
        min-height: 390px;
        max-height: none;
        overflow: visible;
    }

}

@media (min-width: 701px) and (max-width: 1100px) {
    .project-entry-raumkante {
        padding-top: clamp(70px, 8vh, 100px);
    }

    #projekt-falkenberg {
        padding-bottom: clamp(70px, 8vh, 100px);
    }

    .case-study-section {
        height: auto;
        min-height: 0;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .page-cta {
        min-height: 60dvh;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 1100px) and (orientation: portrait) {
    .project-entry,
    .project-perspectives,
    .content-section {
        padding-right: 52px;
        padding-left: 52px;
    }
}

@media (min-width: 701px) and (max-width: 1100px) and (orientation: portrait) {
    .project-collage-raumkante .desktop-shot,
    .project-collage-raumkante .mobile-shot {
        box-shadow: none;
    }
}

@media (min-width: 701px) and (max-width: 1100px) and (orientation: landscape) {
    .page-hero,
    .project-entry,
    .project-perspectives,
    .content-section,
    .page-cta {
        padding-right: 52px;
        padding-left: 52px;
    }
}

@media (min-width: 1200px) and (max-width: 1500px) and (orientation: landscape) {
    .project-entry {
        min-height: 0;
        padding-top: 70px;
        padding-bottom: 56px;
    }

    .project-entry-grid {
        gap: 42px;
        padding-top: 36px;
    }
}


/* ========================================
   10. Responsive: Mobile (≤ 700px)
   ======================================== */

@media (max-width: 700px) {
    .page-hero {
        min-height: calc(100dvh - 70px);
        padding: 46px 24px 34px;
    }

    .page-hero-grid {
        margin: 0;
        padding: 48px 0;
    }

    .page-hero h1 {
        font-size: clamp(48px, 15vw, 68px);
        line-height: 0.9;
    }

    .page-hero-copy > p {
        font-size: 17px;
    }

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

    .hero-register > div,
    .hero-register > div:not(:first-child) {
        min-height: 0;
        display: grid;
        grid-template-columns: 76px 1fr;
        gap: 14px;
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid #3b3b3b;
    }

    .hero-register > div:last-child {
        border-bottom: 0;
    }

    .hero-register span {
        margin: 0;
    }

    .project-entry {
        min-height: 0;
        padding: 76px 24px 96px;
    }

    .project-entry-grid {
        padding-top: 48px;
        gap: 58px;
    }

    .project-entry-copy h2,
    .section-heading h2,
    .page-cta h2 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .project-collage {
        min-height: 0;
        display: block;
        padding: 0;
        background: transparent;
    }

    .desktop-shot {
        display: none;
    }

    .mobile-shot {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(86%, 360px);
        margin: 0 auto;
        padding: 24px 8px 8px;
        border: 1px solid #3a3a3a;
        border-radius: 24px;
        background: #171717;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
    }

    .mobile-shot::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 16px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #777;
        box-shadow: 10px 0 #5d5d5d, 20px 0 #444;
        z-index: 1;
    }

    .mobile-shot::after {
        content: "studio-raumkante.de";
        position: absolute;
        top: 8px;
        left: 50%;
        width: 118px;
        height: 14px;
        border-radius: 7px;
        background: #292929;
        color: #8b8b8b;
        font-size: 6px;
        line-height: 14px;
        text-align: center;
        transform: translateX(-50%);
        z-index: 1;
    }

    .mobile-shot img {
        border-radius: 0 0 16px 16px;
    }

    .mobile-shot-kanzlei::after {
        content: "kanzlei-falkenberg.de";
    }

    .project-perspectives {
        height: auto;
        min-height: 0;
        padding: 64px 24px 40px;
    }

    .perspectives-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 24px;
    }

    .perspective-visual {
        width: 100%;
        max-width: 320px;
        min-height: 310px;
        margin: 0 auto;
    }

    .perspective-desktop {
        top: 0;
        left: 0;
        width: 100%;
    }

    .perspective-mobile {
        width: 29%;
        padding: 11px 4px 4px;
        border-radius: 13px;
    }

    .perspective-mobile::before {
        top: 5px;
        left: 7px;
        width: 3px;
        height: 3px;
        box-shadow: 6px 0 #5d5d5d, 12px 0 #444;
    }

    .perspective-mobile-hero {
        right: 0;
        bottom: 4%;
    }

    .perspective-mobile-firm {
        right: 26%;
        bottom: 0;
    }

    .perspective-desktop img,
    .perspective-mobile img {
        width: 100%;
    }

    .perspective-list article {
        grid-template-columns: 36px 1fr;
        gap: 10px;
        padding: 14px 0;
    }

    .perspective-list span {
        font-size: 10px;
    }

    .perspective-list h3 {
        margin: 0 0 7px;
        font-size: 18px;
    }

    .perspective-list p {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .content-section {
        min-height: 100dvh;
        padding: 56px 24px 18px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .split-heading {
        gap: 18px;
    }

    .case-value-grid {
        grid-template-columns: 1fr;
    }

    .case-value-grid article,
    .case-value-grid article:not(:first-child) {
        min-height: auto;
        padding: 18px 0 10px;
        border-top: 1px solid var(--border);
        border-right: 0;
    }

    .case-value-grid article:first-child {
        border-top: 0;
    }

    .case-value-grid span {
        margin-bottom: 12px;
    }

    .case-value-grid h3 {
        font-size: 20px;
    }

    .case-value-grid p {
        font-size: 14px;
        line-height: 1.55;
    }

    .page-cta {
        min-height: calc(100dvh - var(--footer-height));
        padding: 88px 24px;
    }
}

@media (min-width: 1800px) and (min-height: 1000px) {
    .content-section {
        height: min(100dvh, 1000px);
    }

    .page-cta {
        height: min(100dvh, 1000px);
    }
}


/* ========================================
   11. Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
