/* ═══════════════════════════════════
   GROUNDWORK — BASE STYLES
   ═══════════════════════════════════ */

@font-face {
    font-family: 'Exposure';
    src: url("/static/fonts/ExposureTrialVAR.35f02b3450df.ttf") format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exposure';
    src: url("/static/fonts/ExposureTrialVAR-Italic.7ad2239fa09a.ttf") format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Brand colours */
    --color-bg: #F0EBE3;
    --color-bg-dark: #0D0D0D;
    --color-bg-dark-alt: #181818;
    --color-bg-card: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #555555;
    --color-text-muted: #999999;
    --color-accent: #1A1A1A;
    --color-accent-hover: #156BEC;
    --color-border: #D4CFC7;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Exposure', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Container */
    --container-width: 1440px;
    --container-padding: 24px;
}


/* ═══ RESET ═══ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-weight: 500; color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--color-accent-hover); color: var(--color-white); }

:focus-visible { outline: 2px solid var(--color-accent-hover); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* ═══ LAYOUT ═══ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-xl) 0;
}


/* ═══ TYPOGRAPHY ═══ */

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
}

p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.section-intro, .section-body {
    max-width: 640px;
    margin-bottom: var(--space-lg);
}


/* ═══ BUTTONS ═══ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}


/* ═══ HEADER ═══ */

.site-header {
    padding: 2.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(240, 235, 227, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom: none;
}

body.contact .site-header {
    background: rgba(200, 216, 240, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.vault .site-header,
body.vault .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.2s;
    font-weight: 400;
}

.site-nav a:hover {
    color: var(--color-text-light);
}

.site-nav .has-dropdown {
    position: relative;
    cursor: pointer;
}

.site-nav .has-dropdown::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--color-text);
    border-bottom: 1.5px solid var(--color-text);
    transform: rotate(45deg);
    margin-left: 4px;
    vertical-align: middle;
    margin-bottom: 2px;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--color-text) !important;
    border: 0.75px solid var(--color-text);
    border-radius: 0;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #156BEC;
    border-color: #156BEC;
    color: var(--color-white) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}


/* ═══ PAGE TRANSITIONS ═══ */

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: pageFadeOut 0.25s ease forwards;
}

::view-transition-new(root) {
    animation: pageFadeIn 0.35s ease 0.1s forwards;
    opacity: 0;
}

@keyframes pageFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keep the nav fixed during transitions */
.site-header {
    view-transition-name: header;
}

::view-transition-old(header),
::view-transition-new(header) {
    animation: none;
    mix-blend-mode: normal;
}

/* Keep footer stable */
.site-footer {
    view-transition-name: footer;
}

::view-transition-old(footer),
::view-transition-new(footer) {
    animation: none;
}

/* Page exit animation for non-supporting browsers */
body.is-leaving {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}


/* ═══ HERO ENTRANCE ANIMATION ═══ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header appears instantly — no animation */

.hero-line {
    display: inline-block;
    opacity: 0;
    animation: fadeUp 0.4s ease both;
}

.hero-line--1 {
    animation-delay: 0.1s;
}

.hero-line--2 {
    animation-delay: 0.2s;
}

.hero-stagger {
    opacity: 0;
    animation: fadeUp 0.4s ease both;
    animation-delay: 0.3s;
}

/* Cards fade in one by one, left to right */
.hero-card {
    opacity: 0;
    animation: cardFadeIn 0.5s ease both;
}

.hero-card:nth-child(1) { animation-delay: 0.4s; }
.hero-card:nth-child(2) { animation-delay: 0.5s; }
.hero-card:nth-child(3) { animation-delay: 0.6s; }
.hero-card:nth-child(4) { animation-delay: 0.7s; }
.hero-card:nth-child(5) { animation-delay: 0.8s; }
.hero-card:nth-child(6) { animation-delay: 0.9s; }
.hero-card:nth-child(7) { animation-delay: 1.0s; }
.hero-card:nth-child(8) { animation-delay: 1.1s; }


/* ═══ HERO ═══ */

.hero {
    padding: var(--space-lg) 0 var(--space-md);
    position: relative;
    z-index: 20;
}

.hero-content {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: var(--space-md);
    align-items: end;
    margin-bottom: var(--space-md);
}

.hero h1 {
    padding: var(--space-lg) 0;
    font-size: clamp(3rem, 4.5vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-body {
    text-align: right;
}

.hero-sub {
    font-size: 0.875rem;
    max-width: 280px;
    line-height: 1.6;
    color: var(--color-text);
    margin-left: auto;
}

/* Hero showcase cards — full-width carousel */
.hero-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.hero-cards::-webkit-scrollbar {
    display: none;
}

.hero-cards.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
}

.hero-cards:not(.is-dragging) {
    cursor: grab;
}

.hero-card {
    flex: 0 0 calc((100vw - 60px) / 4.5);
    aspect-ratio: 384 / 478;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-dark);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Carousel wrapper & arrows */
.hero-carousel {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    padding: 0;
}

.carousel-arrow:hover {
    opacity: 1;
}

.carousel-arrow--prev {
    left: 0;
    background: linear-gradient(to right, rgba(240, 235, 227, 0.9), transparent);
    justify-content: flex-start;
    padding-left: 16px;
}

.carousel-arrow--next {
    right: 0;
    background: linear-gradient(to left, rgba(240, 235, 227, 0.9), transparent);
    justify-content: flex-end;
    padding-right: 16px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}


/* ═══ PROJECT CARD HOVER OVERLAY ═══ */

.hero-card, .project-card {
    cursor: pointer;
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-accent-hover);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    z-index: 5;
}

.hero-card:hover .card-hover-overlay,
.project-card:hover .card-hover-overlay {
    transform: translateX(0);
}

.card-hover-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.hero-card:hover .card-hover-content,
.project-card:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0);
}

.card-hover-name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-white);
    display: block;
    margin-bottom: 0.25rem;
}

.card-hover-desc {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-hover-read {
    font-size: 0.875rem;
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ═══ PARTNERS SECTION ═══ */

.section-partners {
    padding: var(--space-md) 0;
    text-align: center;
}

.partners-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    text-align: center;
}

.partner-card {
    background: var(--color-bg);
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.partner-card-inner {
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    text-align: center;
}

.partner-card:hover .partner-card-inner {
    background: var(--color-white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Content group — dead centre by default, rises on hover */
.partner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.partner-card:hover .partner-content {
    transform: translateY(-20px);
}

.partner-logo {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.partner-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.partner-category {
    font-size: 0.75rem;
    color: #000000;
    background: #F5F3F0;
    border: none;
    padding: 0.25rem 0.75rem;
    display: inline-block;
}

.partner-see-more {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    border-left: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: transparent;
    white-space: nowrap;
}

.partner-card:hover .partner-see-more {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ═══ SERVICES SECTION ═══ */

.section-services {
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--color-bg);
}

.services-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: left;
}

.service-card {
    background: #1A1A1A;
    color: var(--color-white);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 618px;
}

.service-card-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-white);
    min-height: 5.8rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    min-height: 3.5rem;
}

.service-functions {
    list-style: none;
    padding: 0;
}

.service-functions li {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.375rem 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
}

.service-functions li:last-child {
    border-bottom: none;
}

.service-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-sm);
    position: relative;
    z-index: 2;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 2.5625rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.service-see-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-white);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-see-more {
    opacity: 1;
    transform: translateY(0);
}

.service-see-more span {
    transition: transform 0.3s ease;
}

.service-card:hover .service-see-more span {
    transform: translateX(4px);
}

/* Infographic decorative image */
.service-infographic {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: auto;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}


/* ═══ DIFFERENTIATORS SECTION ═══ */

.section-diff {
    background: #181818;
    color: var(--color-white);
    padding: var(--space-lg) 0 0;
    text-align: center;
    position: relative;
    z-index: 3;
}

.diff-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.2vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.diff-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-md);
    opacity: 0.25;
    transform: scale(0.97);
    filter: grayscale(100%);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.diff-pillar.is-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
}

.diff-number {
    width: 57px;
    height: 57px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: background 0.8s ease, box-shadow 0.8s ease;
}

.diff-pillar.is-active .diff-number {
    background: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(21, 107, 236, 0.4), 0 0 40px rgba(21, 107, 236, 0.15);
}

.diff-title {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.75rem;
    text-align: center;
    transition: color 0.8s ease;
}

.diff-pillar.is-active .diff-title {
    color: var(--color-white);
}

.diff-body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: var(--space-lg);
    text-align: center;
    transition: color 0.8s ease;
}

.diff-pillar.is-active .diff-body {
    color: rgba(255, 255, 255, 0.7);
}

.diff-image {
    margin-top: auto;
    max-height: 250px;
    overflow: hidden;
    transition: opacity 0.8s ease;
    opacity: 0.2;
}

.diff-pillar.is-active .diff-image {
    opacity: 1;
}

.diff-image img {
    width: auto;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .diff-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}


/* ═══ PROCESS / APPROACH SECTION ═══ */

.section-process {
    background: #181818;
    color: var(--color-white);
    position: relative;
}

.process-bg {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    margin-bottom: -100vh;
    background: url("/static/images/process-bg.61b5b9b932d1.png") no-repeat center bottom;
    background-size: 100% 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.process-sticky {
    position: sticky;
    top: 30vh;
    align-self: start;
    padding: var(--space-2xl) var(--space-lg) var(--space-2xl) 0;
    height: auto;
}

.section-tag--dark {
    background: #EEEBE5;
    border: 1px solid #EEEBE5;
    color: var(--color-text);
}

.process-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.5vw, 3.875rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-top: var(--space-md);
}

.process-timeline {
    position: relative;
    padding: var(--space-2xl) 0;
}

/* Vertical connecting line */
.process-timeline-line {
    position: absolute;
    left: 20px;
    top: var(--space-2xl);
    bottom: var(--space-2xl);
    width: 1px;
    border-left: 1px dashed rgba(255, 255, 255, 0.15);
}

.process-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0 1.5rem;
    min-height: 80vh;
    align-content: center;
}

.process-step:first-child {
    padding-top: 10vh;
}

.process-step:last-child {
    min-height: 60vh;
}

.process-step-marker {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.process-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent-hover);
    flex-shrink: 0;
}

.process-dot--green {
    background: #34C759;
}

.process-step-content {
    max-width: 300px;
}

.process-step-number {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 600;
    color: #CDCDCD;
    display: block;
    margin-bottom: 0.25rem;
}

.process-step-title {
    font-family: var(--font-body);
    font-size: 1.3125rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.375rem;
}

.process-weeks {
    font-family: var(--font-body);
    font-size: 1.3125rem;
    font-weight: 600;
    color: #A2A2A2;
    display: block;
    margin-bottom: 0.5rem;
}

.process-step-desc {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    color: #A2A2A2;
}


/* ═══ RECENT PROJECTS SECTION ═══ */

.section-projects {
    background: var(--color-bg);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 3;
}

.projects-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.projects-carousel-wrap {
    position: relative;
}

.projects-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: max(var(--container-padding), calc((100vw - var(--container-width)) / 2 + var(--container-padding)));
    padding-right: var(--container-padding);
    padding-bottom: var(--space-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.projects-carousel.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
}

.projects-carousel:not(.is-dragging) {
    cursor: grab;
}

.project-card {
    flex: 0 0 calc((100vw - 60px) / 4.5);
    aspect-ratio: 384 / 478;
    border-radius: 0;
    overflow: hidden;
    background: var(--color-bg-dark);
    position: relative;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.projects-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-left: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    margin-top: var(--space-sm);
    transition: all 0.3s ease;
}

.projects-cta:hover {
    border-color: var(--color-text);
}

@media (max-width: 768px) {
    .project-card { flex: 0 0 70vw; }
}


/* ═══ BLOG SECTION ═══ */

.section-blog {
    background: #181818;
    color: var(--color-white);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 3;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
}

.blog-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-top: var(--space-sm);
}

.blog-discover {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    transition: border-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-discover:hover {
    border-left-color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.blog-card {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
}

.blog-card-image img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.625rem;
    border-radius: 20px;
}

.blog-card-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.blog-card-title {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-white);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: 0.375rem 1rem;
    transition: border-color 0.3s ease;
}

.blog-card:hover .blog-card-read {
    border-left-color: var(--color-white);
    border-bottom-color: var(--color-white);
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
}


/* ═══ HOMEPAGE CONTACT FORM ═══ */

.section-contact-home {
    background: linear-gradient(180deg, #C8D8F0 0%, var(--color-bg) 100%);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.contact-home-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.section-contact-home .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.section-contact-home .contact-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.section-contact-home .contact-subtitle u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-contact-home .contact-next h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.section-contact-home .contact-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.section-contact-home .contact-step-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
}

.section-contact-home .contact-step-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text);
    fill: none;
    stroke-width: 1.5;
}

.section-contact-home .contact-step-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.125rem;
}

.section-contact-home .contact-step-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-light);
}

.section-contact-home .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.section-contact-home .form-field {
    display: flex;
    flex-direction: column;
}

.section-contact-home .form-field--full {
    grid-column: 1 / -1;
}

.section-contact-home label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.section-contact-home input,
.section-contact-home select,
.section-contact-home textarea {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.section-contact-home input:focus,
.section-contact-home select:focus,
.section-contact-home textarea:focus {
    border-color: var(--color-text);
}

.section-contact-home input::placeholder,
.section-contact-home textarea::placeholder {
    color: var(--color-text-muted);
}

.section-contact-home .select-wrapper {
    position: relative;
}

.section-contact-home .select-wrapper select {
    width: 100%;
    padding-right: 2.5rem;
    cursor: pointer;
}

.section-contact-home .select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--color-text);
    border-bottom: 1.5px solid var(--color-text);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.section-contact-home textarea {
    min-height: 120px;
    resize: vertical;
}

.section-contact-home .btn-submit {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.5s ease;
}

.section-contact-home .btn-submit:hover {
    background: var(--color-accent-hover);
}

@media (max-width: 768px) {
    .section-contact-home .contact-layout { display: flex; flex-direction: column; gap: var(--space-lg); }
    .section-contact-home .contact-left { display: contents; }
    .section-contact-home .contact-home-headline { order: 1; }
    .section-contact-home .contact-right { order: 2; }
    .section-contact-home .contact-subtitle { order: 3; }
    .section-contact-home .contact-next { order: 4; }
    .section-contact-home .contact-form { grid-template-columns: 1fr; }
}


/* ═══ FOOTER ═══ */

.site-footer {
    background: var(--color-accent-hover);
    color: var(--color-white);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Clocks row */
.footer-clocks {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.clocks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.clock-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clock-time {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1;
}

.clock-city {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.75rem;
    align-self: flex-start;
}

/* Middle row — newsletter + nav */
.footer-middle {
    padding: var(--space-lg) 0;
}

.footer-middle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.footer-newsletter-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    max-width: 400px;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 0.75rem 0;
    outline: none;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    justify-self: end;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-col a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-nav-col a:hover {
    opacity: 0.7;
}

/* Brand wordmark */
.footer-brand {
    padding: var(--space-md) 0 0;
    overflow: hidden;
}

.footer-brand-text {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 0.85;
    display: block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .clocks-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-middle-grid { grid-template-columns: 1fr; }
    .footer-nav { justify-self: start; }
    .footer-brand-text { font-size: clamp(3rem, 13vw, 6rem); }
}


/* ═══ PROBLEM SECTION ═══ */

.section-problem {
    margin-top: -240px;
    position: relative;
    z-index: 5;
}

.problem-white {
    background: var(--color-white);
    padding: 300px 0 var(--space-md);
}

.problem-fade {
    height: 120px;
    background: linear-gradient(to bottom, var(--color-white), var(--color-bg));
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0.375rem 0.875rem;
    margin-bottom: var(--space-md);
}

.problem-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.75vw, 3.375rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.problem-body {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--color-text-light);
    max-width: 560px;
    margin-bottom: var(--space-md);
}

.section-problem .btn-primary {
    background: var(--color-accent-hover);
    color: var(--color-white);
    border: 1.5px solid var(--color-accent-hover);
    transition: all 0.3s ease;
}

.section-problem .btn-primary:hover {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-text);
}


/* ═══ UTILITY ═══ */

/* Toast messages */
.toast-messages {
    position: fixed;
    top: 80px;
    right: var(--container-padding);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--color-text);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 400px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 4s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent-hover);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    z-index: 200;
    font-size: 0.875rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Active states for buttons */
.btn:active, .nav-cta:active, .btn-submit:active {
    transform: scale(0.97);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu open state */
@media (max-width: 768px) {
    .site-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: var(--color-text);
        z-index: 200;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 120px var(--container-padding) var(--space-lg);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
    }
}

.site-nav.is-open a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    transition: opacity 0.2s ease;
}

.site-nav.is-open a:hover {
    opacity: 0.6;
}

.site-nav.is-open .nav-cta {
    margin-top: auto;
    margin-left: 0;
    border: 1px solid var(--color-white) !important;
    color: var(--color-white) !important;
    background: transparent;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: block;
    margin-top: var(--space-lg);
}

.site-nav.is-open .nav-cta:hover {
    background: var(--color-white);
    color: var(--color-text) !important;
    opacity: 1;
}

/* Hamburger turns to X when open */
.mobile-menu-toggle {
    position: relative;
    z-index: 250;
}

body:has(.site-nav.is-open) .mobile-menu-toggle span {
    background: var(--color-white);
}

body:has(.site-nav.is-open) .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body:has(.site-nav.is-open) .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body:has(.site-nav.is-open) .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Lock body scroll when menu is open */
body:has(.site-nav.is-open) {
    overflow: hidden;
}


/* ═══ RESPONSIVE ═══ */

@media (max-width: 1024px) {
    :root {
        --container-padding: 24px;
    }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { height: auto; min-height: 500px; }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    .site-nav:not(.is-open) { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-content { grid-template-columns: 1fr; gap: var(--space-md); }
    .hero h1 { font-size: 2.5rem; }
    .hero-body { text-align: left; }
    .hero-sub { margin-left: 0; }
    .hero-card { flex: 0 0 80vw; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { height: auto; min-height: auto; }
    .process-layout { grid-template-columns: 1fr; }
    .process-sticky { position: relative; top: auto; padding: var(--space-lg) 0; }
    .process-step { min-height: 50vh; }
    .process-step-content { max-width: 100%; }
    .diff-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
    .clocks-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-middle-grid { grid-template-columns: 1fr; }
    .footer-nav { justify-self: start; }
    .section-contact-home .contact-layout { display: flex; flex-direction: column; gap: var(--space-lg); }
    .section-contact-home .contact-left { display: contents; }
    .section-contact-home .contact-home-headline { order: 1; }
    .section-contact-home .contact-right { order: 2; }
    .section-contact-home .contact-subtitle { order: 3; }
    .section-contact-home .contact-next { order: 4; }
    .section-contact-home .contact-form { grid-template-columns: 1fr; }
    .project-card { flex: 0 0 70vw; }
}
