/* Global Selection Color */
::selection {
    background: rgba(255, 87, 34, 0.3);
    /* Light orange background */
    color: inherit;
}

:root {
    --bg-color: #161616;
    --text-color: #767676;
    --accent-color: #FF632F;
    --font-primary: 'Outfit', sans-serif;
    --stroke-color: #383838;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

main {
    display: none;
    /* Deprecated */
}

/* LAYOUT GRID */
.layout-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1.5px solid var(--stroke-color);
    border-right: 1.5px solid var(--stroke-color);
    border-top: 1.5px solid var(--stroke-color);
}

/* SECTIONS */
.hero-section {
    padding: 4rem;
    border-bottom: 1.5px solid var(--stroke-color);
    flex-grow: 1;
    /* Takes available space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-row {
    display: flex;
    border-bottom: 1.5px solid var(--stroke-color);
    min-height: 300px;
    /* Give it some substance */
}

.contact-box {
    flex: 2;
    /* Takes more space */
    padding: 4rem;
    border-right: 1.5px solid var(--stroke-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align to bottom like before */

    font-size: 20px;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.5;
}

.contact-box a {
    color: #e0e0e0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.3s;
}

.contact-box a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.logo-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
    /* Subtle highlight */
}

.brand-logo {
    width: 100%;
    max-width: 150px;
    /* Adjust as needed */
    height: auto;
    transition: transform 0.5s ease;
}

.brand-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

/* FOOTER */
.site-footer {
    padding: 2rem 4rem;
    font-size: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-content p {
    margin-bottom: 0.2rem;
}

.faded {
    font-size: inherit;
    opacity: 0.6;
}

/* Typography 70px */
h1,
.description p {
    font-size: 70px;
    line-height: 1.05;
    font-weight: 200;
    margin-bottom: 0px;
}

h1 {
    margin-bottom: 2vh;
}

.grey {
    color: var(--text-color);
}

.highlight {
    color: var(--accent-color);
    font-weight: 400;
}

/* Char splitting class */
.char {
    display: inline-block;
    transition: font-weight 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: font-variation-settings;
}

/* Responsive */
@media (max-width: 900px) {
    .layout-grid {
        border-right: none;
        border-left: none;
        border-top: none;
        /* Often cleaner on mobile to lose outer borders */
    }

    .hero-section {
        padding: 2rem;
        border-bottom: 1.5px solid var(--stroke-color);
        border-top: 1.5px solid var(--stroke-color);
        /* Restore top border here if we want it */
    }

    .split-row {
        flex-direction: column;
    }

    .contact-box {
        padding: 2rem;
        border-right: none;
        border-bottom: 1.5px solid var(--stroke-color);
    }

    .logo-box {
        padding: 4rem 2rem;
        border-right: none;
        /* No bottom border needed as split-row has one? No, split-row is container. */
        /* If split-row has border-bottom, and logo-box is last, we don't need border on logo-box. */
    }

    h1,
    .description p {
        font-size: clamp(32px, 8vw, 55px);
    }

    .site-footer {
        padding: 2rem;
    }
}