*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050608;
    color: #f5f5f5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Fullscreen cross-fade slideshow behind content */
#bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #050608;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.is-visible {
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Simple block fade-in animation */
@keyframes blockFadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header / Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 0.0));
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    display: block;
    height: 28px;
    width: auto;
}

.nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav a {
    opacity: 0.7;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.2s ease;
}

.nav a:hover,
.nav a:focus {
    opacity: 1;
}

.nav a:hover::after,
.nav a:focus::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: #f5f5f5;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(0,0,0,0.15), transparent 62%),
        linear-gradient(to bottom, rgba(5,6,8,0.22), rgba(5,6,8,0.6));
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.55);
}

.hero-title span {
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 0.98rem;
    max-width: 32rem;
    opacity: 0.9;
    margin-bottom: 1.8rem;
    text-shadow: 0 3px 14px rgba(0,0,0,0.55);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    background: #ffffff;
    color: #050608;
}

.btn:hover {
    transform: translateY(-1px);
    background: #e6e6e6;
}

.btn-outline {
    background: rgba(5,6,8,0.35);
    color: #f5f5f5;
    border-color: rgba(245,245,245,0.45);
}

.btn-outline:hover {
    background: rgba(5,6,8,0.5);
    border-color: rgba(245,245,245,0.8);
}

.hero-meta {
    font-size: 0.8rem;
    opacity: 0.85;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-meta span {
    border-left: 1px solid rgba(245,245,245,0.3);
    padding-left: 0.75rem;
}

/* Hero card – “Heart of 4chords” – slightly less opaque and animated in */
.hero-card {
    padding: 1.5rem 1.4rem;
    border-radius: 0.9rem;
    background: linear-gradient(
        135deg,
        rgba(10,10,12,0.55),
        rgba(0,0,0,0.78)
    ); /* was 0.7 / 0.92 – now lighter */
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.8);
    animation: blockFadeUp 0.7s ease-out both;
}

.hero-card h3 {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

.hero-card p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.chip {
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(245,245,245,0.35);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.9;
    background: rgba(5,6,8,0.65);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Main / sections */
main {
    background: transparent;
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 6rem 1.5rem 5rem;
}

.section--compact {
    padding-top: 4.5rem;
}

/* Glass surface – fading in */
.section-surface {
    background: rgba(5, 6, 8, 0.55);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem 2.7rem;
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 18px 45px rgba(0,0,0,0.7);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    animation: blockFadeUp 0.7s ease-out both;
}

/* Service cards also fade in (lighter timing cascade) */
.service-card {
    padding: 1rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(5,6,8,0.95));
    animation: blockFadeUp 0.6s ease-out both;
}

/* Slight stagger if you want (optional) */
.service-card:nth-child(2) { animation-delay: 0.05s; }
.service-card:nth-child(3) { animation-delay: 0.1s; }
.service-card:nth-child(4) { animation-delay: 0.15s; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.section-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.6;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 500;
}

.section-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 24rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 3rem;
    align-items: flex-start;
}

.muted {
    opacity: 0.86;
    font-size: 0.95rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

.pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(245,245,245,0.18);
    font-size: 0.78rem;
    opacity: 0.86;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

/* Parallax band (content overlay) */
.parallax-band {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
}

.parallax-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,6,8,0.55), rgba(5,6,8,0.2), rgba(5,6,8,0.55));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 0;
}

.parallax-band-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
    text-shadow: 0 4px 16px rgba(0,0,0,0.7);
}

.parallax-band-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.parallax-band-inner p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
}

/* Contact / submissions */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
    gap: 3rem;
}

form {
    display: grid;
    gap: 1rem;
}

label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.25rem;
}

.field {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
textarea {
    background: rgba(5,6,8,0.9);
    border-radius: 0.6rem;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 0.85rem;
    color: #f5f5f5;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
    opacity: 0.4;
}

input:focus,
textarea:focus {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    background: rgba(5,6,8,0.96);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 0.2rem;
}

.checkbox-label {
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.85;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.6);
    color: #a9f5c5;
}

.alert.error {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.7);
    color: #ffb1a8;
}

.contact-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-meta dl {
    margin-top: 1.5rem;
}

.contact-meta dt {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 1rem;
}

.contact-meta dd {
    margin-top: 0.2rem;
}

.contact-meta a {
    border-bottom: 1px solid rgba(245,245,245,0.2);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0.75;
    font-size: 0.8rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.4rem 1.5rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    opacity: 0.7;
}

.footer-nav a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 860px) {
    /* Mobile background: always fill the screen, even if it crops */
    .bg-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 6rem;
    }

    .hero-card {
        order: -1;
        /* Slightly more transparent on mobile as well */
        background: linear-gradient(
            135deg,
            rgba(10,10,12,0.5),
            rgba(0,0,0,0.74)
        );
    }

    /* More opacity than before, but still light on mobile */
    .section-surface {
        background: rgba(5, 6, 8, 0.38); /* was 0.30 – slightly more opaque now */
        border-radius: 0.9rem;
        padding: 2rem 1.4rem 2.2rem;
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 10px 28px rgba(0,0,0,0.5);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .two-column,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Slightly lighter mid-band overlay on mobile */
    .parallax-band::before {
        background: linear-gradient(to right, rgba(5,6,8,0.45), rgba(5,6,8,0.15), rgba(5,6,8,0.45));
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav {
        position: fixed;
        inset: 56px 0 auto 0;
        background: rgba(5,6,8,0.98);
        padding: 0.8rem 1.5rem 1rem;
        flex-direction: column;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: inline-flex;
    }
}