/* ── Hero: 3D work showcase + new header ─────────────────── */

body.home .bg-animation-container {
    display: none;
}

:root {
    --page-gutter: 40px;
    --page-max: 1400px;
    --hero-height: 100vh;
    --hero-height: 100dvh;
}

/* ── Logo plate: keeps multi-color logo readable on any surface ── */
.brand-logo-plate {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 2px 10px rgba(0, 63, 98, 0.08),
        inset 0 0 0 1px rgba(0, 63, 98, 0.07);
}

.brand-logo-plate--hero {
    padding: clamp(12px, 2vw, 18px) clamp(18px, 3vw, 28px);
    border-radius: 16px;
}

/* ── Site header ─────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: clamp(16px, 2.5vh, 28px);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    pointer-events: none;
}

.site-header__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: auto;
    box-sizing: border-box;
}

.site-header.is-scrolled .site-header__burger {
    box-shadow: 0 6px 20px rgba(0, 63, 98, 0.14);
}

.site-header__drawer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.brand-logo-plate--drawer {
    padding: 12px 18px;
    border-radius: 14px;
}

.site-header__drawer-brand .site-header__logo {
    height: 52px;
    width: auto;
}

.site-header__drawer-brand .site-header__name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #003f62;
}

/* Left drawer nav */
.site-header__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 40, 62, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    border: none;
    cursor: pointer;
}

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

.site-header__drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: max(28px, env(safe-area-inset-top)) 28px 32px;
    padding-left: max(28px, env(safe-area-inset-left));
    background: #fffdfb;
    box-shadow: 8px 0 40px rgba(0, 63, 98, 0.18);
    transform: translateX(-105%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.site-header__drawer.is-open {
    transform: translateX(0);
}

html[dir="rtl"] .site-header__drawer {
    left: auto;
    right: 0;
    transform: translateX(105%);
    box-shadow: -8px 0 40px rgba(0, 63, 98, 0.18);
    padding-left: 28px;
    padding-right: max(28px, env(safe-area-inset-right));
}

html[dir="rtl"] .site-header__drawer.is-open {
    transform: translateX(0);
}

html[dir="rtl"] .site-header__burger {
    flex-direction: row-reverse;
}

.site-header__links,
.site-header__links .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__links a,
.site-header__links .nav-links a,
.site-header__drawer .nav-links a {
    color: #003f62 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    display: block;
}

.site-header__links a:hover,
.site-header__links .nav-links a:hover,
.site-header__drawer .nav-links a:hover {
    background: rgba(0, 63, 98, 0.08);
    color: #003f62 !important;
}

.site-header__drawer .nav-links a::after {
    display: none;
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: #f99d1c;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(249, 157, 28, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 157, 28, 0.45);
}

.site-header__cta--drawer {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 1.05rem;
}

/* Big burger — only visible header control */
.site-header__burger {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 8px 16px 8px 12px;
    border: 2px solid rgba(0, 63, 98, 0.12);
    border-radius: 14px;
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 63, 98, 0.1);
}

.site-header__burger:hover {
    background: rgba(0, 63, 98, 0.04);
    border-color: rgba(0, 63, 98, 0.2);
}

.site-header__burger.is-open {
    background: #003f62;
    border-color: #003f62;
}

.site-header__burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    flex-shrink: 0;
}

.site-header__burger-lines span {
    display: block;
    height: 3px;
    background: #003f62;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s, background 0.2s;
}

.site-header__burger.is-open .site-header__burger-lines span {
    background: #fff;
}

.site-header__burger-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #003f62;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.site-header__burger.is-open .site-header__burger-label {
    color: #fff;
}

.site-header__burger.is-open .site-header__burger-lines span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.site-header__burger.is-open .site-header__burger-lines span:nth-child(2) {
    opacity: 0;
}

.site-header__burger.is-open .site-header__burger-lines span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hide legacy navbar */
.navbar-container { display: none !important; }

/* ── Full-bleed collage hero ─────────────────────────────── */
.hero-cinematic,
.hero-section.hero-cinematic {
    position: relative;
    width: 100%;
    min-height: var(--hero-height) !important;
    height: var(--hero-height) !important;
    margin-top: 0;
    overflow: hidden;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    background: #003f62 !important;
    z-index: 1;
}

.hero-collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
    z-index: 1;
    transform: scale(1.03);
    will-change: transform;
}

.hero-collage__cell {
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: #1a4d6b;
}

.hero-collage__cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
    animation: heroKenBurns 22s ease-in-out infinite;
    animation-delay: calc(var(--cell-i, 0) * -1.7s);
    will-change: transform;
}

.hero-collage__cell--1  { grid-area: 1 / 1 / 3 / 3; }
.hero-collage__cell--2  { grid-area: 1 / 3 / 2 / 5; }
.hero-collage__cell--3  { grid-area: 1 / 5 / 3 / 7; }
.hero-collage__cell--4  { grid-area: 2 / 3 / 4 / 5; }
.hero-collage__cell--5  { grid-area: 3 / 1 / 5 / 3; }
.hero-collage__cell--6  { grid-area: 2 / 5 / 3 / 6; }
.hero-collage__cell--7  { grid-area: 2 / 6 / 3 / 7; }
.hero-collage__cell--8  { grid-area: 3 / 5 / 4 / 6; }
.hero-collage__cell--9  { grid-area: 3 / 6 / 4 / 7; }
.hero-collage__cell--10 { grid-area: 4 / 3 / 5 / 5; }
.hero-collage__cell--11 { grid-area: 4 / 5 / 5 / 6; }
.hero-collage__cell--12 { grid-area: 4 / 6 / 5 / 7; }

@keyframes heroKenBurns {
    0%, 100% { transform: scale(1.08) translate(0, 0); }
    33%      { transform: scale(1.16) translate(-1.5%, -1%); }
    66%      { transform: scale(1.12) translate(1%, 0.5%); }
}

.hero-cinematic__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 63, 98, 0.88) 0%, rgba(0, 63, 98, 0.55) 32%, rgba(0, 63, 98, 0.15) 58%, rgba(0, 63, 98, 0.35) 100%),
        linear-gradient(to bottom, rgba(0, 63, 98, 0.45) 0%, transparent 24%, transparent 72%, rgba(0, 63, 98, 0.5) 100%);
}

.hero-cinematic__content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(88px, 12vh, 128px) 0 clamp(40px, 7vh, 72px);
    pointer-events: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hero-cinematic__content-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
}

.hero-cinematic__content * {
    pointer-events: auto;
}

.hero-cinematic__copy {
    max-width: min(640px, 100%);
    text-align: start;
}

.hero-cinematic__logo {
    display: inline-block;
    margin: 0 0 clamp(18px, 3vh, 28px);
    text-decoration: none;
}

.hero-cinematic__logo .hero-logo-image {
    display: block;
    width: clamp(240px, 32vw, 420px);
    max-width: none;
    height: auto;
}

.hero-cinematic .hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f99d1c;
    margin-bottom: 12px;
}

.hero-cinematic .hero-title {
    font-size: clamp(2rem, 4.2vw, 3.75rem);
    color: #fff !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    animation: none;
    line-height: 1.08;
    margin-bottom: 16px;
    font-weight: 800;
    text-align: start;
}

.hero-cinematic .premium-text {
    color: #f99d1c !important;
    -webkit-text-fill-color: #f99d1c !important;
}

.hero-cinematic .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    margin: 0 0 26px;
    max-width: 48ch;
}

.hero-cinematic .hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 1;
    visibility: visible;
}

.hero-cinematic .hero-buttons a {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.hero-cinematic .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-cinematic .btn-secondary:hover {
    background: #fff;
    color: #003f62;
    border-color: #fff;
}

.hero-mobile-strip,
#hero-3d-canvas,
.hero-cinematic__stage,
.hero-cinematic__fallback,
.hero-cinematic__accent {
    display: none !important;
}

/* Legacy showcase hidden */
.hero-showcase-3d,
.hero-showcase-vignette,
.hero-layout,
.hero-panel {
    display: none !important;
}

.hero-section--showcase .hero-bg-image,
.hero-section--showcase .hero-overlay,
.hero-section--showcase .hero-print-badge {
    display: none !important;
}

/* ── Mobile hero ─────────────────────────────────────────── */
@media (max-width: 992px) {
    :root {
        --page-gutter: 10px;
    }
}

@media (max-width: 1024px) {
    .hero-collage {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .hero-collage__cell--1  { grid-area: 1 / 1 / 3 / 3; }
    .hero-collage__cell--2  { grid-area: 1 / 3 / 2 / 5; }
    .hero-collage__cell--3  { grid-area: 2 / 3 / 4 / 5; }
    .hero-collage__cell--4  { grid-area: 3 / 1 / 5 / 3; }
    .hero-collage__cell--5  { grid-area: 1 / 4 / 3 / 5; }
    .hero-collage__cell--6,
    .hero-collage__cell--7,
    .hero-collage__cell--8,
    .hero-collage__cell--9,
    .hero-collage__cell--10,
    .hero-collage__cell--11,
    .hero-collage__cell--12 { display: none; }
}

@media (max-width: 768px) {
    :root {
        --page-gutter: 16px;
    }

    .site-header {
        top: 12px;
    }

    .site-header__burger {
        height: 50px;
        padding: 6px 12px 6px 10px;
        gap: 8px;
    }

    .site-header__burger-lines { width: 24px; gap: 5px; }
    .site-header__burger-label { font-size: 0.8rem; }

    .hero-cinematic {
        min-height: var(--hero-height) !important;
        height: var(--hero-height) !important;
    }

    .hero-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 2px;
    }

    .hero-collage__cell--1  { grid-area: 1 / 1 / 2 / 2; display: block; }
    .hero-collage__cell--2  { grid-area: 1 / 2 / 2 / 3; display: block; }
    .hero-collage__cell--3  { grid-area: 2 / 1 / 3 / 2; display: block; }
    .hero-collage__cell--4  { grid-area: 2 / 2 / 3 / 3; display: block; }
    .hero-collage__cell--5  { grid-area: 3 / 1 / 4 / 2; display: block; }
    .hero-collage__cell--6  { grid-area: 3 / 2 / 4 / 3; display: block; }
    .hero-collage__cell--7,
    .hero-collage__cell--8,
    .hero-collage__cell--9,
    .hero-collage__cell--10,
    .hero-collage__cell--11,
    .hero-collage__cell--12 { display: none; }

    .hero-cinematic__content {
        padding: clamp(76px, 13vh, 96px) 0 clamp(28px, 6vh, 48px);
    }

    .hero-cinematic__logo {
        margin-bottom: clamp(14px, 2.5vh, 22px);
    }

    .hero-cinematic__logo .hero-logo-image {
        width: clamp(200px, 58vw, 300px);
    }

    .hero-cinematic .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cinematic .btn-primary,
    .hero-cinematic .btn-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-collage__cell img {
        animation: none;
        transform: scale(1.05);
    }
}

/* ── Responsive: drawer nav overrides legacy main.css ───── */
body.menu-open {
    overflow: hidden;
}

.site-header .nav-links {
    display: flex !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0 !important;
    flex-direction: column !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

@media (max-width: 992px) {
    .site-header__drawer-brand .site-header__logo { height: 46px; }
}

@media (max-width: 480px) {
    .site-header__burger {
        height: 46px;
        padding: 6px 10px;
    }

    .site-header__burger-label { display: none; }

    .site-header__drawer-brand .site-header__logo { height: 40px; }

    .hero-cinematic .hero-title { font-size: clamp(1.75rem, 8vw, 2rem); }
    .hero-cinematic .hero-subtitle { font-size: 1rem; }
    .hero-cinematic__logo .hero-logo-image { width: clamp(180px, 62vw, 260px); }
}

@media (max-width: 360px) {
    .hero-cinematic .hero-title { font-size: 1.6rem; }
    .hero-cinematic__logo .hero-logo-image { width: min(72vw, 220px); }
}
