/* ==========================================================================
   Variables & Design Tokens
   ========================================================================== */
:root {
    --yellow: #fbd900;
    --black: #101010;
    --cream: #f1f0e9;
    --muted: #a2a29d;
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--black);
    font-family: 'DM Sans', Arial, sans-serif;
}

h1,
h2,
h3,
.display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -.065em;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
    max-width: 1440px;
    margin: auto;
    padding-left: 5%;
    padding-right: 5%;
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .17em;
}

.dark {
    background: #111;
    color: white;
}

.yellow {
    background: var(--yellow);
    color: var(--black);
}

.bar {
    height: 7px;
    background: var(--yellow);
}

/* Helper classes for replacing inline styles */
.accent-yellow {
    color: var(--yellow);
}

.text-muted {
    color: #bbb;
}

.disclaimer-text {
    font-size: 11px;
    margin-top: 20px;
}

.software-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-note {
    margin-top: 25px;
    font-size: 12px;
    color: #777;
}

.footer-subtext {
    color: #aaa;
    font-size: 10px;
}

.copyright-right {
    float: right;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
nav {
    height: 65px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 4vw;
    position: relative;
    z-index: 10
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.logo img {
    width: 49px;
    height: 49px;
    border-radius: 10px;
    object-fit: cover;
}

.navlinks {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.navlinks a:hover {
    color: var(--yellow);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--yellow);
    color: var(--black);
    border: 1px solid var(--yellow);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 800;
    transition: .25s;
}

.btn:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: #fff;
}

.btn.ghost {
    background: transparent;
    color: white;
    border-color: #777;
}

.btn.ghost:hover {
    background: white;
    color: black;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 760px;
    height: 95vh;
    max-height: 1050px;
    position: relative;
    overflow: hidden;
    background: #101010;
    color: #fff;
    display: flex;
    align-items: end;
}

.hero .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(90deg, rgba(0, 0, 0, .90) 0%, rgba(0, 0, 0, .48) 58%, rgba(0, 0, 0, .2) 100%), url('assets/img57.jpg') center/cover;

}

.hero:after {
    position: absolute;
    content: '';
    inset: 0;
    background: linear-gradient(0deg, #0b0b0b 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 75px;
}

.hero h1 {
    font-size: clamp(64px, 10.7vw, 175px);
    line-height: .84;
    text-transform: uppercase;
    max-width: 1200px;
    margin: 18px 0 30px;
    font-weight: 700;
}

.hero h1 em {
    color: var(--yellow);
    font-style: normal;
}

.hero .lead {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.55;
    color: #ddd;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    flex-wrap: wrap;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rail {
    display: flex;
    gap: 24px;
    border-top: 1px solid #555;
    padding-top: 21px;
    color: #eee;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rail strong {
    color: var(--yellow);
    font-size: 23px;
    letter-spacing: -.04em;
    display: block;
}

/* ==========================================================================
   Marquee Banner
   ========================================================================== */
.marquee {
    background: var(--yellow);
    border-bottom: 4px solid black;
    padding: 17px 0;
    overflow: hidden;
    font-weight: 1000;
    font-size: 20px;
    white-space: nowrap;
    text-transform: uppercase
}

.marquee div {
    min-width: max-content;
    animation: roll 20s linear infinite
}

@keyframes roll {
    to {
        transform: translateX(-50%)
    }
}

/* ==========================================================================
   Sections & Content Blocks
   ========================================================================== */
.section {
    padding: 110px 0;
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 42px;
}

.section h2 {
    font-size: clamp(46px, 7vw, 105px);
    line-height: .94;
    margin: 13px 0;
    text-transform: uppercase;
}

.sectionhead p {
    max-width: 370px;
    line-height: 1.65;
    color: #64645f;
}

.bigline {
    font-family: 'Space Grotesk';
    font-size: clamp(28px, 4.5vw, 67px);
    line-height: 1.12;
    letter-spacing: -.055em;
    margin: 0;
}

/* ==========================================================================
   Pillars (What We Do)
   ========================================================================== */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pillar {
    background: #222;
    color: white;
    min-height: 530px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 25px;
}

.pillar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.pillar:hover img {
    transform: scale(1.06);
}

.pillar:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, 0) 75%);
}

.pillarcontent {
    position: relative;
    z-index: 1;
}

.pillar small {
    color: var(--yellow);
    font-weight: 800;
}

.pillar h3 {
    font-size: 30px;
    line-height: 1;
    margin: 10px 0;
}

.pillar p {
    font-size: 13px;
    color: #ddd;
    line-height: 1.55;
}

/* ==========================================================================
   About / Story Section
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featureimg {
    width: 100%;
    height: 590px;
    object-fit: cover;
}

.story {
    background: var(--yellow);
}

.story p {
    font-size: 17px;
    max-width: 580px;
    line-height: 1.65;
}

.statgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 50px;
}

.stat {
    border-top: 1px solid #4a4100;
    padding-top: 15px;
}

.stat b {
    font-family: 'Space Grotesk';
    font-size: clamp(45px, 5vw, 82px);
    letter-spacing: -.07em;
}

.stat span {
    display: block;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ==========================================================================
   Products / Software Section
   ========================================================================== */
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product {
    border: 1px solid #454545;
    padding: 30px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.product .tag {
    background: var(--yellow);
    padding: 7px 10px;
    color: black;
    align-self: start;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
}

.product h3 {
    font-size: clamp(36px, 4.3vw, 63px);
    line-height: .98;
    margin: 55px 0 16px;
}

.product p {
    max-width: 460px;
    color: #aaa;
    line-height: 1.6;
}

.product .platform {
    font-size: 12px;
    color: var(--yellow);
    margin-top: auto;
    padding-top: 25px;
}

.product .screenshot {
    height: 180px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    margin-top: 22px;
    filter: saturate(.85);
}

/* ==========================================================================
   Portfolio / Gallery Section
   ========================================================================== */
.gallerybar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 27px 0;
}

.filter {
    padding: 10px 17px;
    border: 1px solid #b9b8b0;
    background: transparent;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.filter.active,
.filter:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    grid-auto-flow: dense; /* Automatically fills layout gaps */
}

.tile {
    position: relative;
    overflow: hidden;
    background: #222;
    cursor: pointer;
    border: 0;
    padding: 0;
    text-align: left;
    aspect-ratio: 3/4;
    color: white;
}

.tile.wide {
    grid-column: span 2;
    aspect-ratio: 16/9; /* Replaces 'auto' with a clean, consistent widescreen proportion */
}

.tile img,
.tile video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: .5s;
}

.tile:hover img,
.tile:hover video {
    transform: scale(1.04);
}

.tile .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 55%);
}

.tile .label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
}

.tile .label small {
    display: block;
    color: var(--yellow);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.tile.hidden {
    display: none;
}

/* ==========================================================================
   Approach / Process Section
   ========================================================================== */
.process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.process article {
    border-top: 2px solid #111;
    padding: 18px 0;
}

.process b {
    font-size: 13px;
}

.process h3 {
    font-size: 28px;
}

.process p {
    line-height: 1.6;
    color: #6a695f;
}

/* ==========================================================================
   End CTA & Footer
   ========================================================================== */
.endcta {
    padding: 115px 0;
}

.endcta h2 {
    font-size: clamp(70px, 12vw, 180px);
    line-height: .85;
    letter-spacing: -.075em;
    text-transform: uppercase;
    margin: 0 0 40px;
}

.endcta h2 em {
    color: var(--yellow);
    font-style: normal;
}

.footer {
    background: #080808;
    color: #fff;
    padding: 40px 0 25px;
}

.footerinner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer a {
    color: #ddd;
}

.footer a:hover {
    color: var(--yellow);
}

.footlinks {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 12px;
    text-transform: uppercase;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 60px;
    font-size: 11px;
    color: #888;
}

/* ==========================================================================
   Modal Component
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, .94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.modal.open {
    display: flex;
}

.modal img,
.modal video {
    max-width: 95%;
    max-height: 87vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 16px;
    right: 23px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    font-size: 27px;
    height: 43px;
    width: 43px;
}

.mobilemenu {
    display: none;
}

.note {
    font-size: 12px;
    color: #8f8f8f;
    line-height: 1.5;
}

.arrow {
    font-size: 22px;
    color: var(--yellow);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media(max-width:900px) {
    .navlinks {
        display: none;
    }

    .mobilemenu {
        display: block;
        background: transparent;
        border: 1px solid white;
        color: white;
        padding: 10px 15px;
    }

    .navlinks.open {
        position: absolute;
        display: flex;
        top: 85px;
        left: 0;
        right: 0;
        background: #111;
        padding: 28px 5%;
        flex-direction: column;
        align-items: start;
    }

    .hero {
        min-height: 720px;
        height: 95svh;
    }

    .hero h1 {
        font-size: clamp(62px, 13vw, 125px);
    }

    .pillars,
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar {
        min-height: 410px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .featureimg {
        height: 500px;
    }

    .section {
        padding: 85px 0;
    }

    .sectionhead {
        display: block;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .sectionhead p {
        max-width: 650px;
    }
}

@media(max-width:600px) {
    .hero h1 {
        font-size: clamp(58px, 13vw, 82px);
    }

    .hero-content {
        padding-bottom: 35px;
    }

    .rail {
        gap: 14px;
        flex-wrap: wrap;
    }

    .rail strong {
        font-size: 20px;
    }

    .hero .lead {
        font-size: 15px;
    }

    .pillars {
        grid-template-columns: 1fr 1fr;
    }

    .pillar {
        min-height: 340px;
        padding: 15px;
    }

    .pillar h3 {
        font-size: 23px;
    }

    .pillar p {
        font-size: 11px;
    }

    .statgrid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .tile {
        aspect-ratio: 3/4;
    }

    .tile.wide {
        grid-column: span 2;
        aspect-ratio: 1.45;
    }

    .tile .label {
        left: 11px;
        bottom: 12px;
        font-size: 12px;
    }

    .process {
        grid-template-columns: 1fr;
    }

    .product {
        min-height: 400px;
    }

    .product h3 {
        margin-top: 30px;
    }

    .section {
        padding: 70px 0;
    }

    .featureimg {
        height: 350px;
    }

    .footerinner {
        flex-direction: column;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}