/* ==========================================================================
   Foundation Three – Main Stylesheet
   ========================================================================== */

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontreal-Book.woff2') format('woff2'),
        url('../fonts/PPNeueMontreal-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #eeeeee;
    font-family: 'PP Neue Montreal', sans-serif;
    color: #000000;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Accessibility helpers ---------- */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Visible keyboard focus everywhere – modern browsers only style on keyboard nav. */
:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Improve touch-target size on small screens (a11y / Lighthouse). */
@media (max-width: 768px) {

    .nav-links a,
    .mobile-nav-links a,
    .footer-col a,
    .footer-bottom-links a,
    .filter-tag {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

/* ---------- Navigation ---------- */

:root {
    --navbar-height: 60px;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 30px;
    mix-blend-mode: difference;
    color: #ffffff;
}

/* Homepage: header starts absolute inside main, becomes fixed on scroll */
.has-logo-intro #content {
    position: relative;
}

.has-logo-intro .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.has-logo-intro .site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* On mobile/tablet the header is opaque (no blend) to match the page background.
   Placed AFTER .has-logo-intro rules so equal-specificity selectors here win. */
@media (max-width: 1024px) {

    body .site-header,
    body.has-logo-intro .site-header,
    body.has-logo-intro .site-header.is-sticky {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        mix-blend-mode: normal;
        background: #eeeeee;
        color: #000000;
        padding: 10px 25px;
    }

    /* About page: orange navbar background on mobile/tablet */
    body.page-about .site-header,
    body.page-about .site-header.is-sticky,
    body.page-about .site-header.is-pinned-for-menu {
        background: #ff4400;
        color: #000000;
    }

    body.page-about .mobile-menu-overlay {
        background: #ff4400;
    }
}

/* Pinned-to-top state used by the burger menu animation: header is force-fixed
   at top:0 while the JS animates a transform to slide it into place. */
.site-header.is-pinned-for-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    mix-blend-mode: normal !important;
    background: #eeeeee;
    color: #000000;
    z-index: 1002;
    will-change: transform;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.is-active {
    opacity: 1;
}

.nav-tagline {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* Desktop language switcher in the top navbar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-langs {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-lang {
    font-size: 20px;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.nav-lang:hover {
    opacity: 1;
}

.nav-lang.is-current {
    opacity: 1;
    pointer-events: none;
}

.mobile-menu-toggle {
    display: none;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 0 auto;
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    color: #000000;
    flex: 0 0 auto;
    transform: rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle .bar {
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    display: block;
    transform-origin: center;
}

.mobile-menu-toggle .bar-h {
    width: 28px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle .bar-v {
    width: 2px;
    height: 28px;
    transform: translate(-50%, -50%);
}

/* Plus → X: 3 full rotations + 45° (1125deg) ease-in-out */
.mobile-menu-toggle.is-open {
    transform: rotate(1125deg);
}

/* ---------- Mobile Menu Overlay ---------- */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #eeeeee;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: calc(var(--navbar-height) + 20px) 25px 40px;
    color: #000000;
}

.mobile-menu-overlay.is-open {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 60px 0 0;
    padding: 0;
}

.mobile-nav-links a {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.6;
    display: block;
}

.mobile-menu-info {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-tagline,
.mobile-menu-contact {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.mobile-menu-contact span {
    display: block;
}

.mobile-menu-langs {
    margin-top: 32px;
    padding-top: 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-menu-lang {
    font-size: 14px;
    text-transform: uppercase;
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-lang.is-current {
    color: #000000;
}

/* ---------- Hero ---------- */

.section-hero {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.section-hero img,
.section-hero video {
    width: 100%;
    display: block;
}

/* ---------- Intro Text ---------- */

.section-intro-text {
    padding: 120px 30px;
}

.intro-heading {
    font-size: 80px;
    line-height: 1.1;
    max-width: 1422px;
}

.intro-heading+.intro-heading {
    margin-top: 1.1em;
}

.intro-link {
    position: relative;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    vertical-align: baseline;
    margin-left: 40px;
    bottom: 30px;

}


/* ---------- Selected Work ---------- */

.section-selected-work {
    padding: 80px 30px;
}

.selected-work-heading {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 60px;
}

.selected-work-header {
    display: grid;
    position: sticky;
    top: 0px;
    z-index: 5;
    background: #eeeeee;
    grid-template-columns: 2fr 2fr 1fr;
    font-size: 36px;
    padding: 15px 0;

    padding-top: var(--navbar-height);
    border-bottom: 1px solid #000000;
}

.selected-work-list a:last-child {
    border-bottom: none;
}

.sw-col-case {
    text-align: left;
}

.selected-work-header .sw-col-what {
    text-align: left;
}

.sw-col-year {
    text-align: right;
}

.selected-work-list {
    list-style: none;
}

.selected-work-item {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    font-size: 36px;
    padding: 15px 0;
    border-top: 1px solid #000000;
    transition: opacity 0.3s;
    min-height: 90px;
    align-items: center;

}

.selected-work-header+.selected-work-item {
    border-top: none;
}

.selected-work-item:hover {
    opacity: 0.6;
}

/* ---------- Two Images ---------- */

.section-two-images {
    padding: 6px 0;
}

/* ---------- Image + Text ---------- */

.section-image-text {
    padding: 6px 0;
}

.image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.section-image-text--image-right .image-text-grid {
    direction: rtl;
}

.section-image-text--image-right .image-text-grid>* {
    direction: ltr;
}

.image-text-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-text-content {
    display: flex;
    align-items: flex-start;
    padding: 0 40px;
}

.image-text-content p {
    font-size: 46px;
    line-height: 1.1;
    margin: 0;
}

.two-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.two-images-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Full Image ---------- */

.section-full-image {
    padding: 6px 0;
}

.section-full-image img {
    width: 100%;
    display: block;
}

/* ---------- Full Video (Vimeo) ---------- */

.section-full-video {
    padding: 6px 0;
}

.full-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.full-video-frame iframe,
.full-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.full-video-frame video {
    object-fit: cover;
    background: #000000;
}

/* ---------- Text Block ---------- */

.section-text-block {
    padding: 120px 30px;
}

.text-block-statement {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 40px;
}

.text-block-statement--small {
    font-size: 46px;
    font-weight: 400;
    /* Book */
    font-style: normal;
}

/* ---------- Services ---------- */

.section-services {
    padding: 80px 30px;
}

.service-item {

    border-top: 1px solid #000000;
}

.service-description {
    max-width: 393px;
    text-align: right;
}

.service-header {
    display: flex;
    justify-content: space-between;
}

.service-item:last-child {
    border-bottom: 1px solid #000000;
}

.service-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 25px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: left;
}

.service-count {
    font-size: 20px;
    min-width: 60px;
}

.service-title {
    font-size: 80px;
    line-height: 1.1;
    flex: 1;
}

.service-title-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.service-title-link:hover {
    opacity: 0.6;
}

/* ---------- Team ---------- */

.section-team {
    padding: 80px 30px;
}

.flex-service-title {
    display: flex;
    gap: 15px;
}

.team-heading {
    font-size: 46px;
    margin: 0 0 40px;
}

.team-members {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin: 0;
    padding: 0;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e6e6e6;
}

.team-member-media img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.team-member:hover .team-member-media img,
.team-member:focus-within .team-member-media img,
.team-member.is-active .team-member-media img {
    mix-blend-mode: overlay;
}

.team-member-overlay {
    position: absolute;
    inset: 0;
    background: #ff4400;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.team-member-role-overlay {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 3;
}

.team-member-media--filler {
    background: #ff4400;
}

.team-member--filler .member-name,
.team-member--filler .member-role {
    display: none;
}

.team-member:hover .team-member-overlay,
.team-member:focus-within .team-member-overlay,
.team-member.is-active .team-member-overlay {
    opacity: 1;
}

.team-member:hover .team-member-role-overlay,
.team-member:focus-within .team-member-role-overlay,
.team-member.is-active .team-member-role-overlay {
    opacity: 1;
}

.team-member--filler:hover .team-member-overlay,
.team-member--filler:focus-within .team-member-overlay {
    opacity: 0;
}

.member-name {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.member-role {
    font-size: 18px;
    opacity: 0.7;
    margin: 4px 0 0;
}

/* ---------- Quote ---------- */

.section-quote {
    padding: 80px 30px;
}

.quote-text {
    font-size: 46px;
    line-height: 1.1;
    font-style: normal;
}

/* ---------- Big Word (orange wordmark band) ---------- */

.section-big-word {
    width: 100%;
    overflow: hidden;
    padding: 60px 30px 40px;
    color: #000000;
}

.big-word-inner {
    width: 100%;
}

.big-word-text {
    display: block;
    font-size: clamp(80px, 18vw, 320px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 400;
    word-spacing: 100vw;
    /* forces "FOUNDATION" and "THREE" onto separate lines */
    text-transform: uppercase;
}

/* ---------- Office ---------- */

.section-office {
    padding: 80px 30px;
}

.office-text {
    font-size: 80px;
    line-height: 1.1;
}

.office-link {
    font-size: 20px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.office-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 60px;
}

.office-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Contact Info ---------- */

.section-contact-info {
    padding: 120px 30px;
}

.contact-heading {
    font-size: 46px;
    margin-bottom: 80px;
}

.contact-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.contact-block-label {
    font-size: 20px;
    opacity: 0.5;
    margin-bottom: 10px;
}

.contact-block-content {
    font-size: 26px;
}

/* ---------- Logo ---------- */

.section-logo {
    padding: 60px 30px;
}

/* Homepage logo intro: section is shown statically, then collapsed to 0
   height after a short delay (controlled via the .is-logo-collapsed body
   class added by main.js). The wordmark itself is no longer animated. */
.has-logo-intro>.section-logo {
    min-height: 33vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    overflow: hidden;
    transition:
        min-height 0.9s cubic-bezier(0.7, 0, 0.25, 1),
        height 0.9s cubic-bezier(0.7, 0, 0.25, 1),
        padding 0.9s cubic-bezier(0.7, 0, 0.25, 1),
        opacity 0.6s ease;
}

@media (max-width: 1024px) {
    .has-logo-intro>.section-logo {
        min-height: calc(100vh - var(--navbar-height));
        padding: 40px 25px;
    }
}

.has-logo-intro.is-logo-collapsed>.section-logo {
    min-height: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.logo-wordmark svg {
    width: 100%;
    max-width: 1420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---------- Glass F Watermark ---------- */

.f-clip-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.f-watermark-link {
    position: fixed;
    /* JS controls top + width via inline styles for scroll-bound animation.
       Fallback start values reflect the bottom-anchored design when JS is off. */
    top: auto;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 209px;
    height: 209px;
    display: block;
    text-decoration: none;
    will-change: top, width, height;
}

/* When JS has taken control (after first frame), switch to top-anchoring. */
.f-watermark-link.is-scroll-driven {
    bottom: auto;
}

.f-glass {
    width: 100%;
    height: 100%;
    clip-path: url(#f-glass-clip);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 12px 0 rgba(255, 255, 255, 0.6);
}

.f-glass-stroke {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
}

@media (max-width: 1024px) {
    .f-watermark-link {
        width: 120px;
        height: 120px;
        bottom: 24px;
        z-index: 1100;
    }
}

/* ---------- Content Section ---------- */

.section-content-section {
    padding: 60px 30px 0px 30px;
}

.content-section-image {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px;
    max-width: 70%;
    /* desktop: ~1/3 of viewport width */
    width: 100%;
}

.content-section-image.is-portrait {
    max-width: 33vw;
}

.content-section-image.is-landscape {
    max-width: 70vw;
}

.content-section-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-section-counter-row {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.content-section-counter {
    font-size: 46px;
    text-align: center;
}

.content-section-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.content-section-title {
    font-size: 46px;
    text-align: left;
    margin: 0;
    line-height: 1.1;
}

.content-section-text p {
    font-size: 26px;
    line-height: 1.1;
    margin: 0;
    max-width: 800px;
}

@media (max-width: 900px) {
    .content-section-image {
        max-width: 75vw;
        margin-bottom: 40px;
    }

    .content-section-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-section-counter,
    .content-section-title {
        font-size: 32px;
    }

    .content-section-text p {
        font-size: 20px;
    }
}

/* ---------- Space / Spacer Section ---------- */

.section-space {
    width: 100%;
    background: transparent;
    height: var(--space-h, 80px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .section-space {
        height: var(--space-h-mobile, var(--space-h, 80px));
    }
}

/* ---------- Image Slider Section ---------- */

.section-image-slider {
    padding: 60px 30px 0;
}

.image-slider {
    margin: 0 auto;
    max-width: 70vw;
    width: 100%;
    position: relative;
}

/* On regular pages (e.g. About) the slider is shown larger – roughly the
   same footprint as the previous two-image block (near full content width). */
.page .section-image-slider {
    padding: 60px 30px 0;
}

.page .section-image-slider .image-slider {
    max-width: 100%;
}

.page .section-image-slider .image-slider-arrow--prev {
    left: 16px;
}

.page .section-image-slider .image-slider-arrow--next {
    right: 16px;
}

.page .section-image-slider .image-slider-arrow {
    color: #000000;
}

.image-slider-stage {
    position: relative;
    width: 100%;
    background: transparent;
    /* Height is set inline by JS to match the tallest slide so all slides
       can sit absolute and cross-fade with pure opacity transitions. */
}

.image-slider-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slider-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.image-slider-slide img {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.image-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
    opacity: 0.7;
}

.image-slider-arrow:hover,
.image-slider-arrow:focus-visible {
    opacity: 1;
}

.image-slider-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.image-slider-arrow--prev {
    left: -56px;
}

.image-slider-arrow--prev svg {
    transform: scaleX(-1);
}

.image-slider-arrow--next {
    right: -56px;
}

.image-slider-counter {
    margin-top: 24px;
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
    color: #000000;
}

@media (max-width: 900px) {
    .image-slider {
        max-width: 100%;
    }

    .image-slider-arrow {
        width: 15px;
        height: 15px;
    }

    .page .section-image-slider .image-slider-arrow--prev {
        left: -24px;
    }

    .page .section-image-slider .image-slider-arrow--next {
        right: -24px;
    }

    .image-slider-counter {
        font-size: 20px;
        margin-top: 16px;
    }
}

/* ---------- Small Images ---------- */

.section-small-images {
    padding: 6px 0;
}

.small-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.small-images-grid img {
    width: 100%;
    object-fit: cover;
}

/* ---------- Project Single ---------- */

article.project-single {
    position: relative;
}

/* Full-bleed hero (image or vimeo) – truly edge to edge, no margin/padding. */
.project-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.project-hero-image {
    display: block;
    width: 100%;
    height: auto;
    /* Match the intended hero asset ratio (1745 x 1080) so wide hero images
       are shown in full instead of being cropped to the viewport height. */
    aspect-ratio: 1745 / 1080;
    object-fit: cover;
}

.project-hero-video {
    position: relative;
    width: 100%;
    aspect-ratio: 1745 / 1080;
    overflow: hidden;
}

.project-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover viewport while preserving 16:9 aspect (Vimeo player). */
    width: max(100vw, 177.78vh);
    height: max(56.25vw, 100vh);
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* Project intro block (title + tags) – sits above the hero in the page flow */
.project-intro {
    padding: 120px 30px 40px;
}

.project-intro .project-header-inner {
    /* Left-aligned at the same 30px page gutter as every other section
       (instead of a centered max-width block) for a consistent edge. */
    max-width: none;
    margin: 0;
}

.project-header {
    padding: 120px 30px 60px;
}

.project-title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 15px;
    font-size: 20px;
    margin-bottom: 40px;
}

.project-description p {
    font-size: 46px;
    line-height: 1.1;
    max-width: 1270px;
}

/* ---------- Projects Archive ---------- */

.projects-archive {
    padding: 120px 30px 80px;
    ;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.filter-tag {
    font-size: 20px;
    font-family: inherit;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-transform: none;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.filter-tag:hover,
.filter-tag.is-active {
    color: #000000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 80px;
}

.project-card {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s;
}

.project-card:hover {
    opacity: 0.7;
}

.project-card-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: #dddddd;
}

.project-card-image img,
.project-card-image .project-card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-video {
    background: #000;
}

.project-card-placeholder {
    width: 100%;
    height: 100%;
    background: #dddddd;
}

.project-card-title {
    font-size: 36px;
    text-align: center;
    margin-top: 12px;
    letter-spacing: 0.36px;
}

.project-card.is-hidden {
    display: none;
}

/* Projects archive: loader + sentinel */
.projects-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0 80px;
    color: #000000;
}

.projects-loader[hidden] {
    display: none;
}

.projects-loader-icon {
    width: 120px;
    height: 120px;
    background: transparent;
    /* Three.js handles the rotation; no CSS animation needed. */
}

@keyframes f3-spin-y {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.projects-sentinel {
    width: 100%;
    height: 1px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: #ff4400;
    padding: 0 30px;
    color: #000000;
}

.footer-inner {
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 0px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    font-size: 18px;
    gap: 40px;
    line-height: 1.1;
}

.footer-gap {
    min-width: 14%;
}

.footer-col a {
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s;
}

.footer-col a:hover {
    border-bottom-color: #000000;
}

.footer-col div {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.footer-social a {
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    font-size: 18px;
    padding-bottom: 40px;
}

.footer-bottom-links {
    display: flex;
    gap: 153px;
}

.footer-bottom a:last-child {
    text-align: right;
}

.footer-wordmark {
    position: relative;
    display: block;
    width: 100%;
    align-self: center;
    padding: 20px 20px 100px;
    opacity: 1;
    pointer-events: auto;
}

.footer-wordmark svg {
    width: 100%;
    fill: #000000;
    height: auto;
    display: block;
}

/* ---------- 404 ---------- */

.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding-top: 80px;
}

.error-404 h1 {
    font-size: 120px;
    line-height: 1;
}

.error-404 .back-link {
    font-size: 20px;
    text-transform: uppercase;
    border-bottom: 1px solid #000000;
    margin-top: 20px;
    display: inline-block;
}

/* ---------- Utility ---------- */

.section-inner {
    margin: 0 auto;
}

.project-intro {
    padding: 120px 30px 60px;
}

/* ==========================================================================
   Responsive – Tablet (max-width: 1024px) – burger menu starts here
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-langs {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    .nav-tagline {
        font-size: 16px;
    }

    .intro-heading,
    .text-block-statement,
    .selected-work-heading,
    .service-title,
    .team-intro-text,
    .office-text,
    .project-title {
        font-size: 56px;
    }

    .team-description,
    .team-clients,
    .team-heading,
    .team-counter,
    .contact-heading,
    .quote-text,
    .content-section-title,
    .content-section-counter,
    .project-description p {
        font-size: 36px;
    }

    .selected-work-header,
    .selected-work-item,
    .member-name {
        font-size: 28px;
    }

    .service-content p,
    .contact-block-content,
    .content-section-text p {
        font-size: 22px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
    }

    .team-members {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

    .projects-archive {
        padding: 120px 45px 80px;
    }

    .project-card-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   Responsive – Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    .project-intro {
        padding: 100px 25px 40px;
    }

    .site-header {
        padding: 16px 25px;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .flex-service-title {
        width: 100%;
        justify-content: space-between;
    }

    .service-description {
        text-align: left;
        font-size: 12px;
        margin-top: 20px;
        max-width: 222px;
    }

    /* Sections padding */
    .section-intro-text,
    .section-text-block {
        padding: 60px 25px;
    }

    .section-selected-work,
    .section-services,
    .section-team,
    .section-quote,
    .section-office,
    .section-contact-info {
        padding: 60px 25px;
    }

    .section-content-section {
        padding: 30px 25px;
    }

    .project-header {
        padding: 100px 25px 40px;
    }

    .projects-archive {
        padding: 100px 30px 60px;
    }

    /* User request: 1 project per row on mobile, more side padding */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px 0;
        padding-left: 35px;
        padding-right: 35px;
    }

    .project-card-title {
        font-size: 22px;
    }

    .projects-filter {
        gap: 12px;
    }

    .filter-tag {
        font-size: 16px;
    }

    /* Typography scale down – aligns with Figma mobile (≈28px statements, 18px body) */
    .intro-heading,
    .text-block-statement,
    .selected-work-heading,
    .service-title,
    .team-intro-text,
    .office-text,
    .project-title {
        font-size: 28px;
    }

    .image-text-content p {
        font-size: 18px;
    }

    .team-description,
    .team-clients,
    .team-heading,
    .team-counter,
    .contact-heading,
    .quote-text,
    .content-section-title,
    .content-section-counter,
    .project-description p {
        font-size: 28px;
    }

    .service-content p,
    .contact-block-content,
    .content-section-text p {
        font-size: 16px;
    }

    .error-404 h1 {
        font-size: 60px;
    }

    /* Grids to single column */
    .two-images-grid,
    .image-text-grid,
    .office-images,
    .contact-blocks,
    .small-images-grid {
        grid-template-columns: 1fr;
    }

    .team-members {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .team-member--filler {
        display: none;
    }

    .section-image-text--image-right .image-text-grid {
        direction: ltr;
    }

    /* Image+Text: optional "Mobile Text Above" toggles content order on mobile */
    .section-image-text.is-mobile-text-above .image-text-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .image-text-content {
        padding: 20px;
    }

    .intro-link {
        margin-left: 0px;
    }

    /* Selected Work – stays 3-col on mobile but smaller */
    .selected-work-header {
        display: grid;
        font-size: 14px;
        top: 64px;
        padding-top: 15px;
    }

    .selected-work-item {
        font-size: 14px;
        gap: 8px;
        min-height: 70px;
        align-items: center;
    }

    .selected-work-item .sw-col-what {
        font-size: 12px;
    }

    .service-content p {
        padding-left: 0;
        max-width: 100%;
    }

    .team-hero-image img {
        width: 100%;
    }

    .member-image {
        width: 100%;
        height: auto;
    }

    /* Footer mobile: 2 columns. Left = description+address+contact; Right = social */
    .site-footer {
        padding: 40px 25px 30px;
    }

    .footer-inner {
        min-height: auto;
    }

    .footer-wordmark {
        position: static;
        transform: none;
        margin: 40px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-description,
    .footer-address,
    .footer-contact,
    .footer-social {
        font-size: 14px;
    }

    .footer-social {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: start;
    }

    .footer-description {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-address {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-contact {
        grid-column: 1;
        grid-row: 3;
    }

    /* Footer bottom: copyright BELOW the Impressum / Datenschutz row */
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        font-size: 14px;
    }

    .footer-col div {
        width: 50%;
    }

    .footer-col a {
        min-height: auto;
    }

    .footer-bottom-links {
        gap: 80px;
    }
}

/* ==========================================================================
   Contact Page (page-contact.php) – orange standalone layout
   ========================================================================== */

body.page-contact-orange {
    background: #ff4400;
    color: #000000;
}

body.page-contact-orange .site-header.contact-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    mix-blend-mode: normal;
    color: #000000;
    padding: 30px 30px;
    z-index: 10;
}

body.page-contact-orange .site-header.contact-header a,
body.page-contact-orange .site-header.contact-header .nav-tagline {
    color: #000000;
}

/* Force orange navbar background on the contact page in every state
   (mobile sticky header, burger pinned-for-menu state, etc.). */
body.page-contact-orange .site-header,
body.page-contact-orange .site-header.contact-header,
body.page-contact-orange .site-header.is-sticky,
body.page-contact-orange .site-header.is-pinned-for-menu {
    background: #ff4400 !important;
    color: #000000 !important;
    mix-blend-mode: normal !important;
}

body.page-contact-orange .site-header a,
body.page-contact-orange .site-header .nav-tagline,
body.page-contact-orange .site-header .mobile-menu-tagline {
    color: #000000 !important;
}

body.page-contact-orange .mobile-menu-overlay {
    background: #ff4400;
}

body.page-contact-orange .contact-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-page-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    ;
    width: 100%;
    margin: 0 auto;
    padding: 120px 30px 30px;
    gap: 80px;
}

.contact-page-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-page-heading h1 {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 560px;
}

.contact-page-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 400px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail-label {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}

.contact-detail-value {
    font-size: 18px;
    color: #000000;
    line-height: 1.4;
}

.contact-detail-value a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-detail-value a+a {
    display: inline-block;
}

.contact-page-bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-studio-tagline {
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 720px;
}

.contact-page-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-page-footer-row a {
    color: #000000;
    text-decoration: none;
}

.contact-page-footer-row a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-page-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    body.page-contact-orange .site-header.contact-header {
        padding: 20px;
    }

    .contact-page-inner {
        padding: 100px 20px 20px;
        gap: 60px;
    }

    .contact-page-heading h1 {
        font-size: clamp(28px, 7vw, 44px);
    }

    .contact-studio-tagline {
        font-size: clamp(24px, 6vw, 32px);
    }

    .contact-page-footer-row {
        justify-content: flex-start;
        gap: 20px;
    }
}

/* ==========================================================================
   Reveal-on-scroll + image fade-in (added by site-enhance.js)
   ========================================================================== */

/* Text/block reveal: fade up on enter. */
.f3-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.f3-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Media reveal: fade ONLY (no translate -> no jump). Hidden until both
   the element is in the viewport AND the bytes have finished loading.
   This prevents the previous flicker where cached images popped in
   before the scroll-reveal threshold was reached. */
img.f3-reveal,
picture.f3-reveal img,
video.f3-reveal,
iframe.f3-reveal {
    opacity: 0;
    transform: none;
    transition: opacity 0.9s ease, filter 0.9s ease;
    will-change: opacity, filter;+
}

img.f3-reveal.is-visible.is-loaded,
picture.f3-reveal.is-visible img.is-loaded,
video.f3-reveal.is-visible.is-loaded,
iframe.f3-reveal.is-visible.is-loaded {
    opacity: 1;
    filter: blur(0);
}

/* If an image somehow isn't covered by the reveal system (e.g. inside
   chrome that we explicitly skip), don't leave it permanently hidden. */
img:not(.f3-reveal) {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

    .f3-reveal,
    img.f3-reveal,
    picture.f3-reveal img,
    video.f3-reveal,
    iframe.f3-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}