/* Full-width page layout and shared top navigation. */
:root { --site-header-height: 96px; }
#main { position: relative; height: auto; min-height: 100%; }
#main > .wrapper { position: relative; inset: auto; width: 100%; }
.wrapper > .main-footer { position: relative; inset: auto; width: 100%; padding: 0; }
.contact-form-wrap { inset: 0; z-index: 200; overflow-y: auto; padding: 32px 20px; }
.contact-form-container { top: 0; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 18, 35, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
@supports (backdrop-filter: blur(20px)) {
    .site-header { background: rgba(15, 18, 35, .82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
}
.site-header-inner { display: flex; align-items: center; gap: 40px; min-height: var(--site-header-height); max-width: 1600px; margin: auto; padding: 0 40px; }
.site-logo { display: flex; align-items: center; flex: 0 0 140px; }
.site-logo img { width: 140px; max-height: 76px; object-fit: contain; }
.site-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 32px; flex: 1; }
.site-nav-links { display: flex; align-items: center; gap: 24px; }
.site-header a, .site-header button { color: #fff; }
.site-nav-links a, .site-projects-toggle { display: flex; align-items: center; gap: 8px; min-height: 48px; font: 500 14px/1.4 var(--main-font); text-align: left; }
.site-header button { cursor: pointer; }
.site-projects-toggle, .site-menu-toggle { background: transparent; border: 0; padding: 0; }
.site-nav-links a:hover, .site-projects-toggle:hover, .site-nav-links a[aria-current="page"] { color: #ff936f; }
.site-header :is(a, button):focus-visible { outline: 2px solid #ff936f; outline-offset: 5px; }
.site-projects { position: relative; }
.site-project-links { position: absolute; top: calc(100% + 8px); left: -20px; min-width: 240px; padding: 12px 20px; background: #171d33; border: 1px solid #39405a; border-radius: 12px; }
.site-project-links[hidden] { display: none; }
.site-contact-button { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 0 24px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: rgba(255,255,255,.06); font: 500 14px/1.4 var(--main-font); white-space: nowrap; }
.site-contact-button:hover { background: #a73614; }
.site-menu-toggle { display: none; }
.home-hero { height: calc(100svh - var(--site-header-height)); min-height: 460px; }
.home-hero .hero-content { width: min(85%, 1000px); }
.home-hero .hero-project-logo {
    display: block;
    width: min(100%, 440px);
    height: 240px;
    max-height: 32svh;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .35));
}
@media (min-width: 1200px) {
    .home-hero .hero-project-logo {
        width: min(100%, 560px);
        height: 310px;
        max-height: 40svh;
    }
}
.hero-slider-controls {
    position: absolute;
    left: 40px;
    bottom: 32px;
    z-index: 20;
    display: flex;
    gap: 8px;
}
.hero-slider-controls button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 6px;
    background: rgba(15, 18, 35, .78);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.hero-slider-controls button:hover { background: #a73614; border-color: #ff936f; }
.hero-slider-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.home-hero .hero-slogan h2 { font-family: "Teko", sans-serif; font-weight: 500; font-size: clamp(48px, 6vw, 88px); line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; }
@media (max-width: 1199px) {
    :root { --site-header-height: 80px; }
    .site-header-inner { justify-content: space-between; padding: 0 24px; gap: 16px; }
    .site-logo { flex-basis: 110px; }
    .site-logo img { width: 110px; max-height: 66px; }
    .site-menu-toggle { display: flex; align-items: center; gap: 16px; min-height: 48px; font: 500 14px var(--main-font); }
    .site-menu-toggle i { font-size: 22px; }
    .site-navigation {
        display: block;
        position: absolute;
        top: 100%; left: 0; right: 0;
        max-height: calc(100dvh - var(--site-header-height) - 60px);
        overflow-y: auto;
        padding: 16px 24px 24px;
        background: #0f1223;
        border-bottom: 1px solid #39405a;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
                    transform 240ms cubic-bezier(0.32, 0.72, 0, 1),
                    visibility 0s 240ms;
    }
    .site-navigation.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }
    .site-nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav-links > li { border-bottom: 1px solid rgba(255,255,255,.1); }
    .site-nav-links a, .site-projects-toggle { min-height: 52px; width: 100%; font-size: 16px; }
    .site-projects-toggle { justify-content: space-between; }
    .site-project-links { position: static; min-width: 0; padding: 0 16px 12px; border: 0; border-radius: 0; background: transparent; }
    .site-project-links a { color: #cbd0df; font-size: 14px; }
    .site-contact-button { margin-top: 24px; width: 100%; }
}
@media (max-width: 1199px) and (prefers-reduced-motion: reduce) {
    .site-navigation {
        transform: none;
        transition: opacity 100ms ease-out, visibility 0s 100ms;
    }
    .site-navigation.is-open { transform: none; transition-delay: 0s; }
}
@media (max-width: 700px) {
    .wrapper > .main-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .contact-panel { padding-bottom: env(safe-area-inset-bottom); }
    .home-hero { min-height: 400px; }
    .home-hero .hero-project-logo { width: min(100%, 280px); height: 180px; }
    .hero-slider-controls { left: 24px; bottom: calc(80px + env(safe-area-inset-bottom)); }
}
