:root {
    --bardis-primary: #1f2937;
    --bardis-accent: #d4a017;
    --bardis-text: #343a40;
    --bardis-light: #f8f9fa;
}

body {
    color: var(--bardis-text);
    font-family: "Poppins", Arial, sans-serif;
}

body.launch-page {
    background: #fff;
    color: #171717;
    min-height: 100vh;
}

body.home-page {
    background: #111827;
}

.launch-landing {
    align-items: center;
    display: flex;
    min-height: 100vh;
    padding: 48px 24px;
}

.launch-landing-inner {
    margin: 0 auto;
    max-width: 980px;
    text-align: center;
    width: 100%;
}

.launch-logo {
    display: block;
    height: auto;
    margin: 0 auto 24px;
    max-width: min(760px, 100%);
    width: 100%;
}

.launch-kicker {
    color: #d50000;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.launch-landing h1 {
    color: #202020;
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 22px;
    overflow-wrap: anywhere;
}

.launch-contact {
    align-items: center;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    gap: 10px;
    justify-content: center;
}

.launch-contact a {
    color: #d50000;
    font-weight: 500;
    text-decoration: none;
}

.launch-contact a:hover {
    color: #a90000;
}

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

.footer-logo {
    height: 38px;
    width: auto;
}

.site-header .nav-link {
    color: var(--bardis-primary);
    font-weight: 500;
}

.site-header .nav-link:hover,
.footer-links a:hover {
    color: var(--bardis-accent);
}

.hero-section {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: 620px;
    padding: 96px 0;
    position: relative;
}

.hero-section::before {
    background: linear-gradient(90deg, rgba(31, 41, 55, 0.9), rgba(31, 41, 55, 0.45));
    content: "";
    inset: 0;
    position: absolute;
}

.hero-section > .container-xl {
    position: relative;
    z-index: 1;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.card {
    border-radius: 8px;
}

.card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.breadcrumb a {
    color: var(--bardis-primary);
}

.btn-warning {
    --bs-btn-bg: var(--bardis-accent);
    --bs-btn-border-color: var(--bardis-accent);
    --bs-btn-hover-bg: #b88912;
    --bs-btn-hover-border-color: #b88912;
    color: #111827;
    font-weight: 600;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.home-page-shell {
    color: #fff;
    overflow: hidden;
    position: relative;
}

.home-page-shell::before {
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.86)), var(--home-bg);
    background-position: center;
    background-size: cover;
    content: "";
    filter: blur(5px);
    inset: -12px;
    position: fixed;
    transform: scale(1.03);
    z-index: -2;
}

.home-page-shell::after {
    background: rgba(17, 24, 39, 0.24);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.home-hero {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 68px);
    padding: 96px 0 72px;
}

.home-eyebrow {
    color: var(--bardis-accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.home-title {
    font-size: clamp(1.4rem, 3.1vw, 3.3rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 28px;
    max-width: 920px;
}

.home-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 760px;
}

.js .home-page .home-reveal-title,
.js .home-page .home-reveal-description {
    clip-path: inset(100% 0 0 0);
    filter: blur(22px);
    opacity: 0;
    transition-property: clip-path, filter, opacity, text-shadow, transform;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: clip-path, filter, opacity, transform;
}

.js .home-page .home-reveal-title {
    text-shadow: 0 42px 70px rgba(0, 0, 0, 0.8);
    transform: translateY(520px) scale(0.96);
    transition-duration: 7200ms;
}

.js .home-page .home-reveal-description {
    transform: translateY(140px);
    transition-duration: 2100ms;
}

.js .home-page.is-loaded .home-reveal-title,
.js .home-page.is-loaded .home-reveal-description {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    opacity: 1;
    text-shadow: none;
    transform: translateY(0) scale(1);
}

.js .home-page.is-loaded .home-reveal-title {
    transition-delay: 320ms;
}

.js .home-page.is-loaded .home-reveal-description {
    transition-delay: 820ms;
}

.home-section,
.home-stats,
.home-cta {
    padding: 88px 0;
    position: relative;
}

.home-section-header {
    margin-bottom: 34px;
    max-width: 760px;
}

.home-section-header p {
    color: rgba(255, 255, 255, 0.64);
    margin-bottom: 12px;
}

.home-section-header h2,
.home-cta h2 {
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
}

.home-card-link,
.home-project-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.home-service-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--bardis-primary);
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 34px;
    transition: transform 220ms ease, background-color 220ms ease;
}

.home-service-card:hover {
    background: #fff;
    transform: translateY(-6px);
}

.home-service-icon {
    align-items: center;
    border: 1px solid rgba(31, 41, 55, 0.16);
    border-radius: 8px;
    color: var(--bardis-accent);
    display: inline-flex;
    font-size: 2rem;
    height: 64px;
    justify-content: center;
    margin-bottom: 30px;
    width: 64px;
}

.home-service-card h3 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 16px;
}

.home-service-card p {
    color: #5b6472;
    line-height: 1.7;
    margin-bottom: 26px;
}

.home-service-card span {
    align-items: center;
    color: var(--bardis-primary);
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    margin-top: auto;
}

.home-project-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-project-card {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.home-project-card.is-featured {
    aspect-ratio: auto;
    grid-column: span 2;
    grid-row: span 2;
}

.home-project-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
    width: 100%;
}

.home-project-link:hover img {
    transform: scale(1.05);
}

.home-project-card::after {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.86));
    content: "";
    inset: 0;
    position: absolute;
}

.home-project-content {
    bottom: 0;
    left: 0;
    padding: 24px;
    position: absolute;
    right: 0;
    z-index: 1;
}

.home-project-content p,
.home-project-content span {
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 8px;
}

.home-project-content h3 {
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 2rem);
    line-height: 1.15;
    margin-bottom: 6px;
}

.home-stats {
    background: rgba(255, 255, 255, 0.08);
}

.home-stat-item {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.6rem);
    font-weight: 700;
    padding-top: 18px;
}

.home-cta {
    text-align: center;
}

.home-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 18px auto 30px;
    max-width: 680px;
}

.cookie-consent {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 8px;
    bottom: 20px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
    color: var(--bardis-primary);
    display: flex;
    gap: 24px;
    left: 20px;
    max-width: 720px;
    padding: 18px 20px;
    position: fixed;
    right: 20px;
    z-index: 1050;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent p {
    color: #5b6472;
    font-size: 0.92rem;
}

.cookie-consent-link {
    color: var(--bardis-primary);
    font-weight: 600;
    margin-left: 6px;
}

@media (max-width: 767.98px) {
    .launch-landing {
        padding: 32px 18px;
    }

    .launch-logo {
        margin-bottom: 18px;
    }

    .launch-landing h1 {
        font-size: 1.35rem;
        line-height: 1.15;
        margin-left: auto;
        margin-right: auto;
        max-width: 300px;
    }

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

    .launch-contact span {
        display: none;
    }

    .hero-section {
        min-height: 520px;
        padding: 64px 0;
    }

    .home-hero {
        min-height: 680px;
        padding: 72px 0 56px;
    }

    .home-eyebrow,
    .home-title,
    .home-lead,
    .home-section-header h2,
    .home-cta h2 {
        max-width: 320px;
        overflow-wrap: anywhere;
    }

    .home-title {
        font-size: 2rem;
        line-height: 1.08;
    }

    .home-eyebrow {
        font-size: 0.78rem;
    }

    .home-lead {
        font-size: 1rem;
    }

    .home-section-header h2,
    .home-cta h2 {
        font-size: 1.78rem;
        line-height: 1.08;
    }

    .home-section,
    .home-stats,
    .home-cta {
        padding: 64px 0;
    }

    .home-project-grid {
        grid-template-columns: 1fr;
    }

    .home-project-card.is-featured {
        aspect-ratio: 1 / 1;
        grid-column: auto;
        grid-row: auto;
    }

    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
        left: 20px;
        max-width: 320px;
        right: auto;
        width: calc(100% - 40px);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .home-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
