/* ============================================================
   Gerhardt shell — shared across all pages
   Contains: fonts, tokens, header + mega-nav, footer, base reset
   Page-specific styles (hero, pgrid, page-head, etc.) stay
   in the page's <style> block.
   ============================================================ */

/* ===== FONTS ===== */
@font-face { font-family: 'Univers Next Pro'; src: url('../fonts/UniversNextProLight.ttf')   format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Univers Next Pro'; src: url('../fonts/UniversNextProRegular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Univers Next Pro'; src: url('../fonts/UniversNextProMedium.ttf')  format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Univers Next Pro'; src: url('../fonts/UniversNextProBold.ttf')    format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ===== TOKENS ===== */
:root {
    --navy: #0f1c2e;
    --blue: #0066cb;
    --blue-dark: #0055a8;
    --text: #1a2332;
    --slate: #5a6b7d;
    --border: #e0ddd7;
    --warm-white: #fafaf8;
    --white: #ffffff;
    --header-h: 92px;
    --font: 'Univers Next Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Mega swap timing — used by shell.js when doing sequential fade-out → fade-in */
    --mega-fade: 0.35s;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
body.page-warm { background: var(--warm-white); }
a { color: inherit; }

/* Any anchor target below a fixed header needs offset so its top doesn't clip under the header.
   Covers #anfrage, #kontakt, #stellen and any future in-page anchors. */
:target,
[id="anfrage"],
[id="kontakt"],
[id="stellen"] {
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* ============================================================
   HEADER
   Two starting states, driven by <body class>:
   • .page-transparent-header (pool page, over hero carousel)
     — header transparent + white text + white logo until scrolled
   • default (hub, project pages) — header always solid white
   Mega-open state (.is-mega-open, added by JS) forces the white
   look regardless of starting state, plus a stronger grey shadow.
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    display: flex; align-items: center;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px -10px rgba(0,0,0,0.08);
    color: var(--text);
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Transparent-page overrides for base state */
body.page-transparent-header .header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    color: #fff;
}
/* White-state — applies to transparent page on scroll OR any page when mega opens */
body.page-transparent-header .header.scrolled,
body.page-transparent-header .header.is-mega-open,
body.page-transparent-header .header:focus-within {
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px -10px rgba(0,0,0,0.08);
    color: var(--text);
}
/* Shrink 15% on scroll (all pages) */
.header.scrolled { height: calc(var(--header-h) * 0.85); }
/* When mega is open, header bg lifts to the mega's opacity so strip + panel read as one surface */
.header.is-mega-open,
body.page-transparent-header .header.is-mega-open {
    background: rgba(255,255,255,0.98);
}
/* Stronger grey drop-shadow when mega is open — sets header apart from mega below */
.header.is-mega-open,
.header:focus-within {
    box-shadow: 0 1px 0 rgba(0,0,0,0.06),
                0 10px 22px -8px rgba(60,70,85,0.18);
}

.header__logo { display: flex; align-items: center; text-decoration: none; }
.header__logo img {
    display: block;
    height: 60px;
    width: auto;
    transform: translateY(-2px);
    transition: filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* On transparent page: white logo at rest via filter, black on scroll or mega-open */
body.page-transparent-header .header__logo img { filter: brightness(0) invert(1); }
body.page-transparent-header .header.scrolled .header__logo img,
body.page-transparent-header .header.is-mega-open .header__logo img,
body.page-transparent-header .header:focus-within .header__logo img { filter: none; }

.header__nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2.6rem;
    height: 100%;
    position: relative;             /* indicator positions against this */
}
.nav__item {
    position: static;               /* mega positions relative to .header */
    display: flex; align-items: center;
    height: 100%;
}
.nav__item > a {
    display: inline-flex;
    align-items: center;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 0.58rem 0 0.42rem;    /* asymmetric — matches button optical centering */
    position: relative;
    opacity: 0.82;
}
.nav__item > a:hover { opacity: 1; }
.nav__item > a.active { opacity: 1; }

/* ============================================================
   NAV UNDERLINE — per-item ::after, draws from left, retracts
   to left. Baseline: current-page (.active) item is drawn.
   While mega is open: active retracts, the browsed item draws.
   Mega closes: active redraws.
   ============================================================ */
.nav__item > a::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease;
}
.nav__item > a.active::after { transform: scaleX(1); }
.header.is-mega-open .nav__item > a.active::after { transform: scaleX(0); }
.header.is-mega-open .nav__item.is-mega-open > a::after { transform: scaleX(1); }

/* Transparent page: white at rest, blue on scroll or mega-open */
body.page-transparent-header .nav__item > a::after { background: #fff; }
body.page-transparent-header .header.scrolled .nav__item > a::after,
body.page-transparent-header .header.is-mega-open .nav__item > a::after,
body.page-transparent-header .header:focus-within .nav__item > a::after { background: var(--blue); }

.header__cta {
    margin-left: 2.2rem;
    padding: 1.05rem 1.4rem 0.81rem;
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.header__cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
/* On transparent page: outlined at rest, filled blue on scroll or mega-open */
body.page-transparent-header .header__cta {
    background: transparent;
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
body.page-transparent-header .header__cta:hover {
    background: var(--blue);
    border-color: var(--blue);
}
body.page-transparent-header .header.scrolled .header__cta,
body.page-transparent-header .header.is-mega-open .header__cta,
body.page-transparent-header .header:focus-within .header__cta {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
body.page-transparent-header .header.scrolled .header__cta:hover,
body.page-transparent-header .header.is-mega-open .header__cta:hover,
body.page-transparent-header .header:focus-within .header__cta:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

/* ============================================================
   MEGA PANEL — SHARED single panel below header, containing
   one .mega__panel per nav__item (parallel by DOM order).
   The panel container fades in/out on OPEN/CLOSE.
   When SWITCHING between items, the container stays put and
   the inner .mega__panels crossfade — no visual double-fade.
   ============================================================ */
.mega {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);          /* near-opaque to match scrolled header perception over dark hero */
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(224,221,215,0.5);
    box-shadow: 0 24px 40px -20px rgba(15,28,46,0.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mega-fade) cubic-bezier(0.4, 0, 0.2, 1),
                visibility var(--mega-fade) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    /* Stacking area: all .mega__panel children occupy the same grid cell,
       so mega height = height of the TALLEST panel (no size jump on switch). */
    display: grid;
    grid-template-areas: "stack";
}
.header.is-mega-open .mega,
.header:focus-within .mega {
    opacity: 1;
    visibility: visible;
}
.mega__panel {
    grid-area: stack;
    opacity: 0;
    visibility: hidden;
    /* Delay visibility flip to end of fade-out so inactive panels don't
       become non-hit-testable mid-transition. */
    transition: opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.42s;
}
.mega__panel.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}
.mega__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(2.5rem, 4vh, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}
.mega__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.mega__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 1.1rem;
}
.mega__links a {
    display: block;
    padding: 0.55rem 0;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mega__links a:hover,
.mega__links a:focus {
    color: var(--blue);
    padding-left: 0.5rem;
    outline: none;
}
.mega__image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--warm-white);
    border-radius: 6px;
}
.mega__image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.mega__image.active { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    padding: 3.75rem 0 2.5rem;
}
.footer .container {
    max-width: 1425px;                              /* +15% wider so brand-cluster gap can breathe */
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}
/* Site-map footer.
   Row 1 (.footer__grid): Brand block on the LEFT (logo + tagline, nothing else),
   nav cluster on the RIGHT (3 columns pushed together — visually separate from brand).
   Row 2 (.footer__meta): address · phone/email · social — horizontal strip.
   Row 3 (.footer__copy): centered copyright + legal. */
.footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(3rem, 6vw, 6rem);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.footer__brand {
    max-width: 340px;
    flex: 0 1 auto;
}
.footer__logo-img { height: 68px; width: auto; margin-bottom: 1.1rem; display: block; }
.footer__heritage {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35); margin: 0 0 0.75rem;
}
.footer__tagline {
    font-size: 0.85rem; color: rgba(255,255,255,0.4);
    line-height: 1.5; margin: 0;
}
.footer__nav-cluster {
    display: flex;
    gap: clamp(1.75rem, 3vw, 3rem);         /* tight — the 3 nav cols read as one block */
    flex: 0 0 auto;
    flex-wrap: wrap;
}
.footer__col { min-width: 0; }
.footer__heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.32);
    margin: 0 0 1.1rem;
}
.footer__links {
    display: flex; flex-direction: column; gap: 0.5rem;
    list-style: none; padding: 0; margin: 0;
}
.footer__links a {
    font-size: 0.94rem; color: rgba(255,255,255,0.55);
    text-decoration: none; transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

/* Kontakt column holds address, phone/email, social. Heading aligns with the
   other columns' first row; sub-blocks (contact, social) space themselves via
   margin-top so the heading→address distance matches .footer__heading's 1.1rem. */
.footer__col--kontakt { display: block; }
.footer__address {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}
.footer__contact {
    display: flex; flex-direction: column; gap: 0.4rem;
    list-style: none; padding: 0; margin: 1.75rem 0 0;
}
.footer__contact a {
    font-size: 0.9rem; color: rgba(255,255,255,0.55);
    text-decoration: none; transition: color 0.2s;
}
.footer__contact a:hover { color: var(--white); }
.footer__social {
    display: flex; flex-direction: column; gap: 0.4rem;
    list-style: none; padding: 0; margin: 1.75rem 0 0;
}
.footer__social a {
    font-size: 0.9rem; font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-decoration: none; transition: color 0.2s;
}
.footer__social a:hover { color: var(--white); }
.footer__copy {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__copy a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer__copy a:hover { color: var(--white); }

/* ============================================================
   HERO NAV — small arrows + dots at the bottom-left of a hero
   carousel. Optional per-page markup; shell.js wires them if
   present. Style: glass buttons, muted white, backdrop-blurred.
   ============================================================ */
.hero__nav {
    position: absolute;
    left: clamp(1.5rem, 4vw, 3rem);
    bottom: clamp(1.5rem, 3.5vh, 2.25rem);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hero__nav-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.32);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero__nav-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.55);
}
.hero__nav-btn:active { transform: scale(0.94); }
.hero__nav-btn svg {
    width: 13px; height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}
.hero__dot {
    width: 7px; height: 7px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55);
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero__dot:hover:not(.is-active) { border-color: rgba(255,255,255,0.85); }
.hero__dot.is-active {
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.95);
    transform: scale(1.15);
}

/* ============================================================
   CONTACT FORM — shared component
   Populated by shell.js into any <section data-contact-form>.
   ============================================================ */
.contact {
    padding: clamp(4rem, 8vh, 6rem) clamp(1.5rem, 4vw, 2rem);
    max-width: 680px;
    margin: 0 auto;
}
.contact__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
}
.contact__intro {
    font-size: 1rem;
    color: var(--slate);
    text-align: center;
    margin: 0 0 2.5rem;
}
.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__row--plz { grid-template-columns: 0.5fr 1fr; }
/* Matches .apply__consent pattern in stellenmarkt — native checkbox,
   flex-start alignment, small top-nudge to sit on text baseline. */
.contact__optin {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.5;
    margin: 0.1rem 0 0.3rem;
    cursor: pointer;
}
.contact__optin input { margin-top: 0.25rem; }
.contact__optin span { display: block; }
.contact__field { display: flex; flex-direction: column; gap: 0.35rem; }
.contact__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
}
.contact__label-note {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--slate);
    opacity: 0.7;
}
.contact__input,
.contact__select,
.contact__textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    padding: 0.9rem 1rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.contact__input:focus,
.contact__select:focus,
.contact__textarea:focus { border-color: var(--blue); }
.contact__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b7d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.contact__textarea { min-height: 120px; resize: vertical; }
.contact__submit {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 6px;
    padding: 1.15rem 2rem 0.95rem;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.contact__submit:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.contact__field.is-hidden { display: none; }

/* Success / error blocks (inline thanks state) */
.contact__success,
.contact__error {
    display: none;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}
.contact__success { background: rgba(0,102,203,0.06); color: var(--text); border: 1px solid rgba(0,102,203,0.18); }
.contact__error   { background: rgba(192,57,43,0.06); color: #7a2a1e; border: 1px solid rgba(192,57,43,0.25); margin-top: 0.5rem; }
.contact__success.is-visible,
.contact__error.is-visible { display: block; }
.contact__form.is-sent { display: none; }

/* ==== Custom dropdown (v1 style — subtle blue tint hover) ==== */
.contact__dropdown { position: relative; }
.contact__dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--slate);
    padding: 0.9rem 1rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}
.contact__dropdown-trigger:hover { border-color: rgba(15,28,46,0.25); }
.contact__dropdown.is-open .contact__dropdown-trigger { border-color: var(--blue); }
.contact__dropdown.has-value .contact__dropdown-trigger { color: var(--text); }
.contact__dropdown-arrow {
    width: 12px; height: 8px;
    flex-shrink: 0;
    margin-left: 1rem;
    fill: none;
    stroke: var(--slate);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}
.contact__dropdown.is-open .contact__dropdown-arrow { transform: rotate(180deg); }
/* v1 look: open trigger loses bottom border + bottom radius so the menu appears attached */
.contact__dropdown.is-open .contact__dropdown-trigger {
    border-radius: 6px 6px 0 0;
}
.contact__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--blue);
    border-top: none;
    border-radius: 0 0 6px 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.contact__dropdown.is-open .contact__dropdown-menu { display: block; }
.contact__dropdown-menu li {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.contact__dropdown-menu li:first-child { padding-top: 0.85rem; }
.contact__dropdown-menu li:last-child  { padding-bottom: 0.85rem; }
.contact__dropdown-menu li:hover { background: rgba(0,102,203,0.06); color: var(--text); }
.contact__dropdown-menu li[aria-selected="true"] {
    color: var(--blue);
    font-weight: 500;
    background: rgba(0,102,203,0.06);
}
.contact__dropdown-menu li[aria-selected="true"]:hover { background: rgba(0,102,203,0.06); color: var(--blue); }

/* ============================================================
   PROOF / BTS STRIP — used on project pages (Von der Baustelle
   zur Übergabe). Full-bleed carousel + navy caption footer.
   ============================================================ */
.proof { position: relative; }
.proof__carousel {
    position: relative;
    width: 100%;
    height: 36vw;
    min-height: 320px;
    max-height: 640px;
    overflow: hidden;
    background: #0f1c2e;
}
.proof__carousel img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.proof__carousel img.active { opacity: 1; }
.proof__footer {
    background: var(--navy);
    padding: 1.5rem 0;
}
.proof__footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.proof__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    margin: 0 0 0.35rem;
    display: block;
}
.proof__caption {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    letter-spacing: -0.005em;
    margin: 0;
    transition: opacity 0.4s ease;
    min-height: 1.5em;
}
.proof__counter {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.05em;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .proof__carousel { height: 60vw; }
    .proof__footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ============================================================
   MOBILE MENU — burger + full-screen accordion overlay.
   Injected by shell.js; hidden > 1150px.
   ============================================================ */
.header__burger {
    display: none;                              /* enabled at 1150px */
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text);
    position: relative;
    z-index: 110;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.header__burger-icon {
    position: relative;
    width: 24px; height: 18px;
    display: block;
}
.header__burger-icon::before,
.header__burger-icon > span,
.header__burger-icon::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
.header__burger-icon::before   { top: 2px; }
.header__burger-icon > span    { top: 8px; }
.header__burger-icon::after    { top: 14px; }
body.is-menu-open .header__burger-icon::before { top: 8px; transform: rotate(45deg); }
body.is-menu-open .header__burger-icon > span  { opacity: 0; transform: scaleX(0); }
body.is-menu-open .header__burger-icon::after  { top: 8px; transform: rotate(-45deg); }
/* Transparent page: burger white at rest, dark once menu opens (over white overlay) */
body.page-transparent-header .header__burger { color: #fff; }
body.page-transparent-header .header.scrolled .header__burger,
body.is-menu-open .header__burger { color: var(--text); }
body.page-transparent-header.is-menu-open .header__logo img { filter: none; }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: var(--header-h) 0 clamp(2rem, 5vh, 3rem);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__inner {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
}
.mobile-menu__section { border-bottom: 1px solid var(--border); }
.mobile-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.35rem 0.25rem;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
    cursor: pointer;
    text-align: left;
}
.mobile-menu__toggle-icon {
    width: 10px; height: 10px;
    border-right: 2px solid var(--slate);
    border-bottom: 2px solid var(--slate);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 0.35rem;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.mobile-menu__section.is-open .mobile-menu__toggle-icon {
    transform: rotate(-135deg);
    margin-bottom: -4px;
}
.mobile-menu__sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu__section.is-open .mobile-menu__sublist {
    max-height: 400px;
    padding-bottom: 0.75rem;
}
.mobile-menu__sublist li { padding: 0.65rem 0.25rem; }
.mobile-menu__sublist a {
    color: var(--slate);
    text-decoration: none;
    font-size: 1.05rem;
    letter-spacing: -0.005em;
    display: block;
}
.mobile-menu__sublist a:active,
.mobile-menu__sublist a:hover { color: var(--blue); }
.mobile-menu__cta {
    display: block;
    margin-top: 2rem;
    padding: 1.15rem 1.5rem 0.95rem;
    background: var(--blue);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background 0.2s;
}
.mobile-menu__cta:active,
.mobile-menu__cta:hover { background: var(--blue-dark); }
body.is-menu-open { overflow: hidden; }

/* ============================================================
   RESPONSIVE (shell only — page-specific responsive stays local)
   ============================================================ */
@media (max-width: 1150px) {
    .header__nav { display: none; }
    .header__cta { display: none; }
    .mega { display: none; }
    .header__burger { display: flex; }
}
@media (max-width: 900px) {
    :root { --header-h: 76px; }
    .header__logo img { height: 46px; }
    .footer__grid { flex-direction: column; gap: 2.25rem; }
    .footer__brand { max-width: none; flex: 1 1 100%; }
    .footer__nav-cluster { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
    .contact__row { grid-template-columns: 1fr; }
    .hero__nav { left: 1rem; bottom: 1rem; gap: 0.7rem; }
    .hero__nav-btn { width: 30px; height: 30px; }
}
@media (max-width: 600px) {
    .footer__nav-cluster { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer__social { align-self: flex-start; }
}

/* ============================================================
   LIGHTBOX — shared overlay wired to every .gallery__grid img
   and every .lp-gallery__grid img on the page. Injected once
   by shell.js. Swipe on touch, arrows on desktop, ESC to close.
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 24, 0.94);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: pan-y;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox__stage {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
    -webkit-user-drag: none;
    user-select: none;
}
.lightbox__btn {
    position: absolute;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    z-index: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.lightbox__btn:hover {
    color: #fff;
}
.lightbox__btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lightbox__close {
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.14);
}
.lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .lightbox__prev,
    .lightbox__next {
        display: none;      /* rely on swipe on mobile */
    }
    .lightbox__img {
        max-width: 100vw;
        max-height: 82vh;
    }
    .lightbox__close {
        top: 0.75rem;
        right: 0.75rem;
    }
    .lightbox__counter {
        bottom: 1rem;
    }
}
