/* ==========================================================================
   1. IMPORTS & VARIABLES (Your Command Center)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url("https://use.typekit.net/bsa3yyb.css");

:root {
    /* --- Global Colors --- */
    --bg-light: #f0f0f0;
    --color-dark: #141414;
    --color-accent: #C52233;
    --text-secondary: #212121;
    --color-white: #f6f6f8;
    --color-grey: #ccc;

    /* --- Typography --- */
    --font-heading: "Archivo", sans-serif;
    --font-body: "Inter", sans-serif;

    /* --- New Subheading Typography --- */
    --subheading-font: var(--font-heading);
    --subheading-weight: 500;
    --subheading-transform: uppercase;
    --subheading-size: .75em;
    --subheading-spacing: 2px;

    

    /* --- Button & UI Styles --- */
    --btn-text-color: var(--color-dark);
    --btn-text-light: var(--bg-light);
    --btn-accent-bg: var(--color-accent);
    --btn-font: var(--font-body);
    --btn-font-size: .75em;
    --btn-border-radius: 15px;
    --btn-border-width: 2px;
    --btn-transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   2. RESET & BASE (Meyerweb Modified)
   ========================================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0; 
    padding: 0; 
    border: 0; 
    font-size: 100%; 
    font: inherit; 
    vertical-align: baseline;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; /* Kills the grey mobile tap box */
}

:focus { 
    outline: 0; 
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display: block; 
}

body { 
    line-height: 1; 
    width: 100%; 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-light); 
    position: relative; 
    cursor: crosshair; 
    overflow-x: hidden; 
}

blockquote, q { 
    quotes: none; 
}

blockquote:before, blockquote:after, q:before, q:after { 
    content: ''; 
    content: none; 
}

table { 
    border-collapse: collapse; 
    border-spacing: 0; 
}

input[type=search]::-webkit-search-cancel-button, 
input[type=search]::-webkit-search-decoration { 
    -webkit-appearance: none; 
}

input[type=search] { 
    -webkit-box-sizing: content-box; 
    -moz-box-sizing: content-box; 
    box-sizing: content-box; 
}

textarea { 
    overflow: auto; 
    vertical-align: top; 
    resize: vertical; 
}

audio, canvas, video { 
    display: inline-block; 
    display: inline; 
    zoom: 1; 
    max-width: 100%; 
}

audio:not([controls]) { 
    display: none; 
    height: 0; 
}

[hidden] { 
    display: none; 
}

html { 
    font-size: 100%; 
    -webkit-text-size-adjust: 100%; 
    -ms-text-size-adjust: 100%; 
}

a:focus { 
    outline: thin dotted; 
}

a:active, a:hover { 
    outline: 0; 
}

img, video { 
    border: 0; 
    -ms-interpolation-mode: bicubic; 
    width: 100%; 
}

figure, form { 
    margin: 0; 
}

fieldset { 
    border: 0; 
    margin: 0; 
    padding: 0; 
}

legend { 
    border: 0; 
    padding: 0; 
    white-space: normal; 
    margin-left: -7px; 
}

button, input, select, textarea { 
    font-size: 100%; 
    margin: 0; 
    vertical-align: baseline; 
    vertical-align: middle; 
}

button, input { 
    line-height: normal; 
}

button, select { 
    text-transform: none; 
}

button, html input[type="button"], input[type="reset"], input[type="submit"] { 
    cursor: pointer; 
    overflow: visible; 
}

button[disabled], html input[disabled] { 
    cursor: default; 
}

input[type="checkbox"], input[type="radio"] { 
    box-sizing: border-box; 
    padding: 0; 
    height: 40px; 
    width: 40px; 
}

button::-moz-focus-inner, input::-moz-focus-inner { 
    border: 0; 
    padding: 0; 
}

html, button, input, select, textarea { 
    color: var(--color-dark); 
}

::-moz-selection { 
    background: #b3d4fc; 
    text-shadow: none; 
}

::selection { 
    background: #b3d4fc; 
    text-shadow: none; 
}

.chromeframe { 
    margin: 0.2em 0; 
    background: var(--color-grey); 
    color: #000; 
    padding: 0.2em 0; 
}

a { 
    text-decoration: none; 
}

p { 
    font-family: var(--font-body); 
    font-weight: 400; 
    line-height: 1.25em; 
    letter-spacing:1px;
    font-size:.75em;
}

/* New Subheading Utility Class */
.subheading {
    font-family: var(--subheading-font);
    font-weight: var(--subheading-weight);
    text-transform: var(--subheading-transform);
    font-size: var(--subheading-size);
    letter-spacing: var(--subheading-spacing);
    color: var(--color-dark);
}

/* ==========================================================================
   3. GLOBAL UI (Overlays, Animations, Buttons)
   ========================================================================== */
@keyframes fadeBlurIn { 
    0% { filter: blur(20px); opacity: 0; } 
    100% { filter: blur(0px); opacity: 1; } 
}

@keyframes spreadOut { 
    0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); } 
    100% { opacity: 0; transform: translate(var(--drift-x), var(--drift-y)) scale(0.5) rotate(0deg); } 
}

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 0.8; transform: translateY(0); } 
}

#main-content { 
    overflow-x: clip; 
    contain: layout paint; 
}

.loading-state { 
    filter: none; 
}

#main-content.content-ready { 
    filter: blur(0px); 
}

#main-content.content-ready::after { 
    transform: translateY(100%); 
}

#main-content::after {
    content: ""; 
    position: fixed; 
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(240, 240, 240, 1) 50%, rgba(240, 240, 240, 1) 100%);
    transform: translateY(-100%); 
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1); 
    z-index: 9999; 
    pointer-events: none;
}

body:not(.home-page) .blur-overlay { 
    backdrop-filter: blur(8px); 
}

.blur-overlay {
    position: fixed; 
    inset: 0; 
    backdrop-filter: blur(20px); 
    background: rgba(255,255,255,0.2); 
    opacity: 0; 
    pointer-events: none; 
    z-index: 10; 
    transition: opacity .75s ease;
}

.blur-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.sub-page .header, .sub-page .hamburger { 
    animation-duration: .25s; 
}

.sub-page .blur-overlay { 
    transition-duration: .25s; 
}

/* --- Global Fixed Canvas Trail --- */
#global-trail-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: 9999; 
    pointer-events: none; 
    
    /* Forces the canvas drawings to invert against the page below */
    mix-blend-mode: difference; 
}

@keyframes pixelEvaporate { 
    0% { 
        opacity: 1; 
        transform: translate(0, 0) scale(1); 
    } 
    100% { 
        opacity: 0; 
        /* Drifts and physically shrinks to 0 like an evaporating pixel */
        transform: translate(var(--drift-x), var(--drift-y)) scale(0); 
    } 
}


/* --- Global Buttons --- */
.btn-animate { 
    position: relative; 
    text-decoration: none; 
    display: inline-block; 
    color: var(--btn-text-color); 
    padding-bottom: 4px; 
    overflow: hidden; 
    font-size:.75em;
}

.btn-animate::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: var(--btn-border-width);
    background-color: var(--btn-accent-bg); 
    transform: scaleX(0); 
    transform-origin: right; 
    transition: var(--btn-transition);
}

.btn-animate:hover::after { 
    transform: scaleX(1); 
    transform-origin: left; 
}

.letstalk { 
    font-family: var(--btn-font); 
    font-size: var(--btn-font-size); 
    color: var(--btn-text-color); 
    text-decoration: none; 
    display: inline-block; 
    transition: var(--btn-transition); 
    width:fit-content;
}
.backhome { 
    font-family: var(--btn-font); 
    font-size: var(--btn-font-size); 
    color: var(--btn-text-color); 
    text-decoration: none; 
    display: inline-block; 
    transition: var(--btn-transition); 
    margin-top:5%;
}

#missionButton { 
    font-family: var(--btn-font); 
    font-size: var(--btn-font-size); 
    color: var(--btn-text-light); 
    text-decoration: none; 
    display: inline-block; 
    transition: var(--btn-transition); 
    margin-top: 5%; 
}

#missionButton:hover { 
    background-color: var(--btn-accent-bg); 
    color: #f6f6f8; 
    padding-left: 5px; 
    padding-right: 5px; 
    cursor: crosshair; 
}

/* ==========================================================================
   4. GLOBAL LAYOUT (Header, Nav & Footer)
   ========================================================================== */
/* --- Default State: Transparent over the Dark Hero --- */
.header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background: var(--bg-light); 
    border-bottom: 2px solid var(--color-dark);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 2.5%; 
    transition: transform 0.3s ease, background 0.4s ease, border-color 0.4s ease; 
    z-index: 100; 
    animation: fadeBlurIn .75s ease-out forwards;
}
.header {
    padding-top: 15px;
}
.header .logo img { 
    filter: invert(0); 
    transition: filter 0.4s ease;
}

.header.hide { 
    transform: translateY(-100%); 
}

.header.show { 
    transform: translateY(0); 
}

.logo { 
    font-weight: bold; 
}

.logo img, .mobile-logo img { 
    height: 50px; 
    width: auto; 
    display: block; 
}

.nav { 
    display: flex; 
    gap: 20px; 
}

.nav a { 
   
    font-size: 16px; 
    font-family: var(--font-body); 
    transition: var(--btn-transition); 
    font-weight: 400; 
}
.header .nav a { 
    color: var(--color-dark); 
}
/* --- Scrolled State: Solid Light Theme --- */
.header.scrolled {
    background: var(--bg-light);
    border-bottom: 2px solid var(--color-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.header.scrolled .logo img {
    filter: invert(0); /* Reverts logo back to black */
}
.header.scrolled .nav a {
    color: var(--color-dark);
}
.header.scrolled .hamburger i {
    color: var(--color-dark);
}

/* Existing hide/show behavior */
.header.hide { 
    transform: translateY(-100%); 
}
.header.show { 
    transform: translateY(0); 
}

/* Mobile Menu */
.hamburger { 
    display: none; 
    position: relative; 
    width: 24px; 
    height: 24px; 
    background: none; 
    border: none; 
    padding: 0; 
    font-size: 1.5rem; 
    cursor: pointer; 
    animation: fadeBlurIn .75s ease-out forwards; 
}

/* 1. Base transition for both icons - Change 0.8s to whatever speed you want */
.hamburger i { 
    position: absolute; 
    top: 0; 
    left: 0; 
    font-size: 1.5rem; 
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); 
    
}
.hamburger i { 
    color: var(--color-dark); 
}
/* --- Modifier State: Transparent Dark (Only injected on Home Hero) --- */
.header.transparent-dark {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.header.transparent-dark .logo img {
    filter: invert(1);
}
.header.transparent-dark .nav a {
    color: #ffffff;
}
.header.transparent-dark .hamburger i {
    color: #ffffff;
}

/* 2. Default State: Bars visible, X hidden & pre-rotated */
.hamburger .fa-bars {
    opacity: 1;
    transform: rotate(0deg);
}

.hamburger .fa-times { 
    opacity: 0;
    transform: rotate(-180deg); /* Starts rotated back so it spins forward */
}

/* 3. Active State (Clicked): Bars fade & spin out, X fades & spins in */
.hamburger.active .fa-bars { 
    opacity: 0; 
    transform: rotate(180deg); 
}

.hamburger.active .fa-times { 
    opacity: 1; 
    transform: rotate(0deg); 
}
.mobile-menu {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 90%; 
    height: 100vh; 
    background: var(--bg-light); 
    z-index: 110;
    transition: right 1s cubic-bezier(0.19, 1, 0.22, 1); 
    
    /* 40px top padding establishes the global horizontal axis */
    padding: 40px 10%; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}
.mobile-menu .hamburger {
    display: block !important; 
    z-index: 20;
}
.mobile-menu .hamburger i {
    color: var(--color-dark) !important; /* Locks the X to black against the white menu */
}


.mobile-menu.open { 
    right: 0; 
    transform: none; 
}

.mobile-menu.open .hamburger .fa-bars { 
    opacity: 0; 
}

.mobile-menu.open .hamburger .fa-times { 
    opacity: 1; 
}

.mobile-menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 105;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease; 
}

.mobile-menu-overlay.active { 
    opacity: 1; 
    pointer-events: all; 
}

.mobile-menu .mobile-logo {
    width: 100%;
    padding-bottom: 30px; /* Space between logo and the divider */
    margin-bottom: 40px; /* Space between the divider and the links */
    border-bottom: 1px solid rgba(20, 20, 20, 0.15); /* The horizontal line */
    display: flex;
    align-items: center;
}
.mobile-menu .mobile-logo img {
    height: 35px; /* Locks the physical mass of the logo */
    margin-bottom: 0; 
    filter: invert(1);
}


.mobile-nav { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 20px; 
    width: 100%; 
}
div.mobile-menu button.hamburger {
    display: flex !important; 
    align-items: center;
    justify-content: center;
    position: absolute !important;
    
    /* Matches the exact padding and height of the logo container */
    top: 40px !important; 
    right: 10% !important; 
    height: 35px !important; 
    
    z-index: 9999 !important;
}

div.mobile-menu button.hamburger i {
    color: var(--color-dark) !important; 
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* --- Keep Existing Open/Close Animations --- */
.mobile-menu.open .hamburger .fa-bars { 
    opacity: 0; 
}

.mobile-menu.open .hamburger .fa-times { 
    opacity: 1; 
}

.mobile-nav a { 
    width: 100%; 
    margin-bottom: 5%; 
    font-family: var(--font-heading); 
    font-size: 1.875em; 
    font-weight: 400; 
    letter-spacing: 1px; 
    color: var(--color-dark); 
}

/* Footer */
.footer-container { 
    width: 100%; 
    border-top: 2px solid var(--color-dark); 
    margin-top: 10%; 
    background-color: var(--bg-light); 
    color: var(--color-dark); 
    box-sizing: border-box; 
}

.footer-grid { 
    display: flex; 
    width: 100%; 
}

.footer-col { 
    flex: 1; 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}

.footer-col:last-child { 
    border-right: none; 
}

.footer-label { 
    font-size: 1.5em; 
    margin-bottom: 5%; 
    font-family: var(--subheading-font); 
    font-weight: 500;
    text-transform: uppercase; 
    color: var(--color-dark); 
}

.footer-links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
}

.footer-links a { 
    font-family: var(--font-body); 
    font-size: .75em; 
    color: var(--color-dark); 
    display: inline-block; 
    transition: var(--btn-transition); 
}

.footer-logo-container { 
    width: 100%; 
    padding: 0; 
    overflow: hidden; 
}

.footer-big-logo { 
    display: block; 
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    margin-top:10%;
}


/* ==========================================================================
   5. SHARED MODULES (Used across multiple pages)
   ========================================================================== */
.work-container { 
    padding-left: 5%; 
    width: 100%; 
    max-width: 1440px; 
    margin: 0 auto 10%; 
    display: flex; 
    flex-direction: column; 
}

.projects-containerTitle { 
    color: var(--color-dark); 
    padding: 0; 
    z-index: 3; 
    max-width: 1200px; 
    font-family: var(--subheading-font); 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size:2em;
}

.projects-container { 
    display: flex; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    gap: 20px; 
}

.project-main { 
    width: 50%; 
    display: flex; 
    flex-direction: column; 
}

.project-main .project-image { 
    flex-grow: 1; 
    position: relative; 
    padding-bottom: 0; 
    height: 0; 
    min-height: calc(80% + 20px); 
}

.secondary-projects { 
    width: 100%; 
    display: flex; 
    flex-wrap: wrap; 
    flex-direction: row; 
    gap: 20px; 
}

.project-row { 
    display: flex; 
    gap: 20px; 
}

.project-secondary { 
    width: 48.5%; 
}

.project-secondary .project-image { 
    padding-bottom: 100%; 
}

.project-image { 
    position: relative; 
    padding-bottom: 100%; 
    overflow: hidden; 
}

.project-image img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.project-title { 
    margin-top: 15px; 
    min-height: 2.5em; 
    display: flex; 
    align-items: center; 
    font-family: var(--font-body); 
    font-size: .75em; 
    font-weight: 400; 
    color: var(--color-dark); 
}

.pcontainer { 
    display: flex; 
    width: 100%; 
    max-width: 1440px; 
    margin: 0 auto; 
    padding: 2.5% 5% 5% 0%; 
    gap: 20px; 
}

#pContainerButton { 
    display: flex; 
    width: 100%; 
    max-width: 1440px; 
    margin: 0 auto; 
    padding: 2.5% 5% 5% 0%; 
    gap: 20px; 
    justify-content: start; 
}
.buttonStack{
    display:flex;
    flex-direction: column;
}
.buttonStack a{
    padding-top:25px;
}



/* ==========================================================================
   5.1. PAGE: 404 (404.html)
   ========================================================================== */
.errorPageContainer { 
    background: var(--bg-light); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: row; 
    margin-bottom: 5%; 
    justify-content: center; 
    overflow: hidden; 
    position: relative; 
}

.heroErrorPage { 
    display: inline-block; 
    height: auto; 
    width: 100%; 
    z-index: 5; 
    margin-bottom: 15%; 
     padding: 5%; 
}
.heroErrorPage > h1 { 
    color: var(--color-dark); 
   
    z-index: 3; 
    max-width: 1440px; 
    font-family: var(--font-heading); 
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 30vh auto 0vh; 
    font-size: clamp(3rem, 8vw, 5rem); 
    line-height: 0.9; 
    letter-spacing: -0.04em; 
}


/* ==========================================================================
   6. PAGE: HOME (index.html)
   ========================================================================== */
.HeroContainer { 
    background: var(--color-dark); 
    min-height: 110vh; 
    display: flex; 
    flex-direction: row; 
    margin-bottom: 10%; 
    justify-content: center; 
    overflow: hidden; 
    position: relative; 
}

.heroHome { 
    display: inline-block; 
    height: auto; 
    width: 100%; 
    z-index: 5; 
    margin-bottom: 15%; 
}

.heroHome > h1 { 
    color: var(--color-white);
    text-shadow: 
        0 0 15px rgba(20, 20, 20, 0.7),
        0 0 35px rgba(20, 20, 20, 0.9),
        0 0 70px rgba(20, 20, 20, 1.0);
    padding: 5%; 
    z-index: 3; 
    max-width: 1440px; 
    font-family: var(--font-heading); 
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 30vh auto 0vh; 
    font-size: clamp(2.5rem, 8vw, 5rem); 
    line-height: 0.95; 
    letter-spacing: -0.05em; 
}

.hero-services { 
    position: absolute; 
    
    bottom: 50px; 
    width: 100%; 
    padding: 0 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 10; 
    padding-bottom: 5%; 
    max-width: 1440px; 
    
}

.hero-services span { 
    color: var(--color-white);
    text-shadow: 
        0 0 10px rgba(20, 20, 20, 0.8),
        0 0 20px rgba(20, 20, 20, 1.0);
    font-family: var(--subheading-font); 
    font-weight:600;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: crosshair; 
    opacity: 0; 
    animation: fadeInUp 1s ease forwards; 
    animation-delay: 0.5s; 
}



.missionSection { 
    position: relative; 
    padding: 20% 5% 10% 5%; 
    width: 100%; 
    background-color: var(--color-dark); 
    box-sizing: border-box; 
    margin: 0 auto; 
    display: block; 
}

.missionSmallText { 
    position: absolute; 
    left: 5%; 
    color: var(--bg-light); 
    font-family: var(--font-heading); 
    font-size: .75rem; 
     
    margin-top: 4vw; 
}

.missionSection > h2 { 
    text-indent: 0vw; 
    color: var(--bg-light); 
    font-size: clamp(2.75rem, 8vw, 5rem); 
    font-family: var(--font-heading); 
    text-transform: uppercase; 
    font-weight: 800; 
    padding: 0; 
    margin: 0; 
    line-height: 1.125em; 
    letter-spacing: -0.05em; 
}

.missionBigText { 
    color: var(--bg-light); 
}

.missionBigText span { 
    opacity: 0.15; 
    transition: opacity .5s ease; 
    display: inline; 
}

.missionBigText span.active { 
    opacity: 1; 
}

.aboutcontainer { 
    display: flex; 
    width: 100%; 
    max-width: 1440px; 
    margin: 0 auto; 
    padding: 2.5% 5% 5% 0%; 
    gap: 20px; 
}

#aboutContainerButton { 
    display: flex; 
    width: 100%; 
    max-width: 1440px; 
    margin: 0; 
    padding: 10% 5% 5% 0%; 
    gap: 20px; 
    justify-content: start; 
}

.aboutcontainer > .letstalk { 
    color: var(--bg-light); 
}


/* ==========================================================================
   7. PAGE: PORTFOLIO (portfolio.html)
   ========================================================================== */
.hero { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
    max-height: 900px; 
    min-height: 600px; 
    background: var(--bg-light); 
    overflow: hidden; 
}

.hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: url('../theme/imgs/GRASS.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    z-index: 1; 
}

.hero-content { 
    position: absolute; 
    bottom: 10%; 
    left: 0; 
    width: 100%; 
    padding: 0 5%; 
    color: var(--bg-light); 
    z-index: 2; 
    text-align: left; 
    
}

.hero-title { 
    color: var(--bg-light); 
    font-size: 5em; 
    padding-bottom: 2.5%; 
    z-index: 3; 
    max-width: 1440px; 
    font-family: var(--font-heading); 
    font-weight: 800; 
    letter-spacing: -0.05em; 
    text-transform: uppercase; 
    margin-top: 50vh; 
}

.hero-subtitle { 
    color: var(--bg-light); 
    font-family: var(--subheading-font); 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom:20px;
}

.slideshow-container { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
    max-height: 900px; 
    min-height: 600px; 
    overflow: hidden; 
    background: var(--bg-light); 
}

.slideshow-container::before { 
    display: none; 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.6s ease-in-out; 
    z-index: 1; 
}

.slide.active { 
    opacity: 1; 
    z-index: 2; 
}

.slide-image { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    filter: brightness(0.8); 
}

.slider-controls { 
    position: absolute; 
    bottom: 5%; 
    right: 5%; 
    z-index: 10; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    color: var(--bg-light); 
}

.slide-btn { 
    background: none; 
    border: none; 
    color: var(--bg-light); 
    font-family: var(--font-body); 
    font-size: 1.5rem; 
    cursor: pointer; 
    padding: 0; 
    transition: var(--btn-transition); 
}

.btn-icon { 
    width: 25px; 
    height: auto; 
    display: block; 
}

.slide-btn:hover { 
    transform: scale(1.2); 
}

.pagination-number { 
    font-family: var(--font-body); 
    font-size: 12px; 
    letter-spacing: 0.1em; 
    font-weight: 500; 
}

.filterSection { 
    margin: 0 auto; 
    padding: 5%; 
    max-width: 1440px; 
    display: flex; 
}

.filterTitle{ 
    color: var(--color-dark); 
    font-family: var(--subheading-font); 
    
    
    width: 30%; 
}

.chip { 
    font-family: var(--subheading-font); 

    transition: .3s ease; 
    cursor: pointer; 
}

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

.swRightside, .fsRightside { 
    display: flex; 
    flex-direction: row; 
    justify-content: end; 
    align-items: center; 
}

.swRightside { 
    width: 60%; 
} 

.fsRightside { 
    width: 70%; 
}

.swRightside > hr { 
    width: 85%; 
    margin: 0 15px 0 0; 
} 

.fsRightside > hr { 
    width: 90%; 
    margin: 0 15px 0 0; 
}


/* ==========================================================================
   8. PAGE: ABOUT (about.html)
   ========================================================================== */
.heroAbout { 
    display: flex; 
    flex-direction: row; 
    justify-content: space-between; 
    width: 100%; 
    margin-bottom: 15%; 
}

.heroAbout > h1 { 
    color: var(--color-dark); 
    font-size: 3em; 
    padding: 5%; 
    z-index: 3; 
    max-width: 60%; 
    font-family: var(--font-heading); 
    font-weight: 700; 
    line-height: 1.5em; 
    letter-spacing: 2px; 
    margin-top: 30vh; 
}
#aboutSubText{
    color: var(--color-dark);
  line-height: 1.25em;
  max-width:500px;
  font-size: .75em;
  letter-spacing: 1px;
}

.aboutHeroImg { 
    margin-top: 90vh; 
}

.aboutservices { 
    width: 100%; 
    height: auto; 
    max-width: 1440px; 
    margin: 5% auto; 
    display: flex; 
    flex-direction: row; 
    justify-content: space-between; 
    padding-left:5%;
}

.aboutservicesTop { 
    width: 100%; 
    height: auto; 
    max-width: 1440px; 
    padding-top: 25vh; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    padding-left:5%;
}

.asleft { 
    width: 50%; 
    height: 50%; 
    
}

.aboutservicesTop > .asleft { 
    width: 90%; 
}

.asright { 
    width: 40%; 
    height: 50%; 
    padding-right: 5%; 
}

.aboutservicesTop > .asright { 
    padding-right: 0; 
    width: 100%; 
}

#zoomimg3 { 
    width: 50%; 
    max-width: 1440px; 
    height: auto; 
    overflow: hidden; 
    margin: 0 auto; 
    margin-bottom: 5%; 
}

.aboutHeroImgTest { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.asleft > p { 
    color: var(--color-dark); 
    line-height: 2; 
    font-size: 14px; 
    letter-spacing: .5px; 
}

.asleft > .tagHolder { 
    margin: 0 0 5% 0; 
}

.astitle { 
    margin: 0% 0 5% 0; 
}

.astitle > h1 { 
    color: var(--color-dark); 
    margin-top: 0vh; 
    font-size: clamp(2.5rem, 8vw, 5rem); 
    padding-bottom: 2.5%; 
    z-index: 3; 
    max-width: 1440px; 
    font-family: var(--font-heading); 
    font-weight: 800; 
    letter-spacing: -0.05em; 
    line-height: 1em; 
    text-transform: uppercase; 
}

.astitle p { 
    color: var(--color-dark); 
    line-height: 2; 
    font-size: 14px; 
    letter-spacing: .5px; 
}

.astitle > h3 { 
    color: var(--color-dark); 
    margin-top: 0vh; 
    z-index: 3; 
    max-width: 1440px; 
    font-weight: 500; 
    margin-bottom: 5%; 
    font-family: var(--subheading-font); 
    text-transform: uppercase; 
    font-size:1.5em;
}

.asbreakdown { 
    margin: 0% 0 10% 0; 
}

.asbreakdown > p { 
    margin-top: 15px; 
    min-height: 2.5em; 
    display: flex; 
    align-items: center; 
    font-family: var(--font-body); 
    font-size: .75em; 
    font-weight: 400; 
    padding-bottom: 10%; 
    letter-spacing: 1px; 
    color: var(--text-secondary); 
}

.asbreakdown > ul { 
    list-style: none; 
}

.asbreakdown li { 
    color: var(--color-dark); 
    min-height: 2.5em; 
    display: flex; 
    align-items: center; 
    font-family: var(--font-body); 
    font-size: .75em; 
    letter-spacing: 1px; 
    line-height:1.25em;
}

.asbreakdown > h3 { 
    color: var(--color-dark); 
    margin-top: 0vh; 
    z-index: 3; 
    max-width: 1440px; 
  font-size:1.125em;
    font-weight: 400; 
    margin-bottom: 5%; 
    font-family: var(--subheading-font); 
    text-transform: uppercase; 
}
/* ==========================================================================
   PROCESS ACCORDION (About Page)
   ========================================================================== */
.process-container { 
    width: 90%; 
    max-width: 1440px; 
    margin: 0 auto; 
    margin-bottom:10%;
}

.process-main-title { 
    /* Style this as your main heading */
    font-family: var(--subheading-font); 
    font-size:2em;
    font-weight: 500;
    text-transform: uppercase; 
    color: var(--color-dark); 
    padding: 0 0 1rem 0; 
 
}

.process-accordion-item { 
    border-bottom: 1px solid rgba(20, 20, 20); 
}

.process-accordion-header { 
    width: 100%; 
    padding: 2.5rem 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: none; 
    border: none; 
    cursor: crosshair; 
    transition: all 0.3s ease; 
}

.process-accordion-header h2 { 
    /* Style this as your subheading */
    font-family: var(--font-body); 
    font-size:1.125em;
     letter-spacing:1px;
    color: var(--color-dark); 
    text-align: left; 
    max-width: 80%; 
    text-transform:uppercase;
}

/* -- The Animation Mechanics -- */
.process-accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1); 
}

.process-accordion-item.active .process-accordion-content { 
    max-height: 2000px; 
    padding-bottom: 4rem; 
}

.process-accordion-item.active .plus-icon { 
    transform: rotate(45deg); 
}
.process-best-for{
    font-family: var(--font-body);
    font-size:.75em;
}
/* ==========================================================================
   9. PAGE: CASE STUDY (projectTemplate.html)
   ========================================================================== */
#zoomimg2 { 
    width: 50%; 
    max-width: 1440px; 
    height: auto; 
    overflow: hidden; 
    margin: 0 auto; 
    margin-bottom: 5%; 
}

.herocs { 
    width: 100%; 
    max-width: 1440px; 
    display: block; 
    margin: 0 auto; 
}

.herocsimg { 
    
    height: auto; 
    display: block; 
    margin:0 auto;
}

.herocs > h1 { 
    color: var(--color-dark); 
    font-size: 5em; 
    padding-bottom: 2.5%; 
    z-index: 3; 
    max-width: 1440px; 
    font-family: var(--font-heading); 
    font-weight: 700; 
    letter-spacing:-0.05em; 
    text-transform: uppercase; 
    padding: 5%; 
    padding-top: 15%; 
    margin: 0 auto; 
}

.cscontext { 
    width: 100%; 
    height: auto; 
    max-width: 1440px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: row; 
    justify-content: space-between; 
}

.cscleft { 
    width: 40%; 
    height: 50%; 
    padding-left: 5%; 
}

.cscright { 
    width: 40%; 
    height: 50%; 
    padding-right: 2.5%; 
}

.cscleft > p { 
    color: var(--color-dark); 
    line-height: 2; 
    font-size: 14px; 
    letter-spacing: .5px; 
}

.cscleft > .tagHolder { 
    margin: 0 0 5% 0; 
}

.cscMore { 
    width: 50%; 
    height: 50%; 
    padding-left: 5%; 
}
.cscBigImg { 
    width: 90%; 
    height: auto; 
    max-width: 1440px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: row; 
    justify-content: space-between; 
}

.csbrief { 
    margin: 10% 0 10% 0; 
}

.csbrief p { 
    color: var(--color-dark); 
    font-family: var(--font-body); 
    font-size: 12px; 
    font-weight: 400; 
    letter-spacing: 1px; 
    line-height: 1.5em; 
}

.csbrief > h3 { 
    color: var(--color-dark); 
    font-size: 1.5em; 
    font-weight: 500; 
    margin-bottom: 5%; 
    font-family: var(--font-heading); 
    text-transform: uppercase; 
}

.csobjectives { 
    margin: 10% 0 10% 0; 
}

.csobjectives > ul { 
    list-style: none; 
}

.csobjectives li { 
    color: var(--color-dark); 
    font-family: var(--font-body); 
    font-size: 12px; 
    font-weight: 400; 
    padding-bottom: 5%; 
    letter-spacing: 1px; 
}

.csobjectives > h3 { 
    color: var(--color-dark); 
    font-size: 1.5em; 
    font-weight: 500; 
    margin-bottom: 5%; 
    font-family: var(--font-heading); 
    text-transform: uppercase; 
}

.csfeatures, .csclient { 
    margin: 10% 0 10% 0; 
}

.csfeatures p, .csclient p { 
    color: var(--color-dark); 
    line-height: 2; 
    font-size: 14px; 
    letter-spacing: .5px; 
}

.csfeatures > h3 { 
    color: var(--color-dark); 
    font-size: 3em; 
    font-weight: 500; 
    margin-bottom: 5%; 
    font-family: var(--font-heading); 
}

.csclient > h3, .cscright > h3 { 
    color: var(--color-dark); 
    font-size: 3em; 
    font-weight: 500; 
    margin-bottom: 5%; 
    font-family: var(--font-heading); 
}

.cscright > h3 { 
    margin-top: 5%; 
}

.masonry { 
    max-width: 1440px; 
    margin: 0% auto; 
    padding: 0; 
    column-count: 3; 
    column-gap: 16px; 
    margin-bottom: 5%; 
}

.masonry .mItem { 
    display: inline-block; 
    margin-bottom: 16px; 
    width: 100%; 
    cursor: pointer; 
}

.lightbox { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(0, 0, 0, 0.9); 
    z-index: 100000 !important; 
    justify-content: center; 
    align-items: center; 
    user-select: none; 
}

.lightbox-content { 
    max-width: 90%; 
    max-height: 85%; 
    object-fit: contain; 
    box-shadow: 0 0 30px rgba(0,0,0,0.5); 
}

.close, .lightbox-prev, .lightbox-next { 
    position: absolute; 
    color: var(--bg-light); 
    background: none; 
    border: none; 
    cursor: crosshair; 
    z-index: 100001; 
}

.close { 
    top: 30px; 
    right: 30px; 
    font-size: 40px; 
}

.lightbox-prev, .lightbox-next { 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 50px; 
    padding: 20px; 
    transition: opacity 0.3s ease; 
}

.lightbox-prev { 
    left: 10px; 
} 

.lightbox-next { 
    right: 10px; 
}

.lightbox-prev:hover, .lightbox-next:hover { 
    opacity: 0.7; 
}

body.lightbox-active .header { 
    transform: translateY(-100%) !important; 
    pointer-events: none; 
}


/* ==========================================================================
   10. PAGE: PACKAGES (packages.html)
   ========================================================================== */
.packages-container { 
    width: 90%; 
    max-width: 1440px; 
    margin: 0 auto; 
}

.service-main-title { 
    font-family: var(--font-heading); 
    font-size: 1.5em; 
    font-weight: 800; 
    text-transform: uppercase;  
    color: var(--color-dark); 
    padding: 4rem 0 1rem 0; 
    border-bottom: 2px solid var(--color-dark); 
    margin-bottom: 2rem; 
}

.accordion-item { 
    border-bottom: 1px solid rgba(20, 20, 20, 0.2); 
}

.accordion-header { 
    width: 100%; 
    padding: 2.5rem 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: none; 
    border: none; 
    cursor: crosshair; 
    transition: all 0.3s ease; 
    font-size:1.125em;
}

.accordion-header h2 { 
    font-family: var(--subheading-font);  
    font-weight: 500; 
    text-transform: uppercase; 
    color: var(--color-dark); 
    text-align: left; 
    max-width: 80%; 
    font-size:1.125em;
}

.plus-icon { 
    
    font-weight: 300; 
    transition: transform 0.4s ease; 
}


.accordion-item.active .plus-icon { 
    transform: rotate(45deg); 
   
}

.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1); 
}

.accordion-item.active .accordion-content { 
    max-height: 2000px; 
    padding-bottom: 4rem; 
}

.package-details ul { 
    list-style: none; 
    padding: 0; 
}

.package-details li { 
    font-family: var(--font-body); 
    font-size: .75em; 
    padding: 10px 0; 
    border-bottom: 1px solid rgba(20, 20, 20, 0.05); 
    color: var(--text-secondary); 
    font-weight:400;
    letter-spacing:1px;
}

.best-for { 
    font-family: var(--subheading-font); 
    font-weight:700;
    text-transform: uppercase;
    letter-spacing: 1px; 
    margin-bottom: 2rem; 
   
}
.strategy-block, .design-block, .advantage-block, .addons-block > h3{
    font-family: var(--font-body);
    font-weight:500;
    
}
.strategy-block > h3{
    font-size:.75em;
    font-weight:900;
    margin-bottom:2.5%;
}
.design-block > h3{
    font-size:.75em;
    font-weight:900;
    margin-bottom:2.5%;
}
.advantage-block > h3{
    font-size:.75em;
    font-weight:900;
    margin-bottom:2.5%;
}
.addons-block > h3{
    font-size:.75em;
    font-weight:900;
    margin-bottom:2.5%;
}
.strategy-block, .design-block, .advantage-block, .addons-block{
  padding-bottom:2rem;
}


/* ==========================================================================
   11. PAGE: CONTACT (contact.html)
   ========================================================================== */
.cContainer { 
    width: 100%; 
    max-width: 1440px; 
    margin: 0 auto; 
    padding-top: 30vh; 
}

.ContactHero { 
    position: relative; 
    width: 100%; 
    max-width: 1250px; 
    padding: 2.5%; 
}

.ContactHero > h1 { 
    color: var(--color-dark); 
    margin-top: 0vh; 
    font-size: 5em; 
    padding-bottom: 2.5%; 
    z-index: 3; 
    max-width: 1440px; 
    font-family: var(--font-heading); 
    font-weight: 800; 
    letter-spacing: -0.05em; 
    text-transform: uppercase; 
    line-height:.9;
}

#contact-form { 
    position: relative; 
    width: 100%; 
    max-width: 750px; 
    padding: 2.5%; 
}

input { 
    font-size: 0.875em; 
    width: 90%; 
    height: 50px; 
    padding: 0px 15px 0px 15px; 
    margin-bottom: 2.5%; 
    background: transparent; 
    color: var(--color-dark); 
    border: solid var(--btn-border-width) var(--color-dark); 
    border-radius: 0; 
    transition: var(--btn-transition); 
    font-family: var(--font-heading); 
}

textarea { 
    width: 90%; 
    border-radius: 0; 
    height: 110px; 
    max-height: 110px; 
    padding: 15px; 
    font-family: var(--font-heading); 
    background: transparent; 
    outline: none; 
    margin-bottom: 2.5%; 
    color: var(--color-dark); 
    font-size: 0.875em; 
    border: solid var(--btn-border-width) var(--color-dark); 
    transition: var(--btn-transition); 
}

input:hover, textarea:hover { 
    color: var(--color-dark); 
}

textarea:hover { 
    background: var(--bg-light); 
}

#submit { 
    width: 90%; 
    padding: 0; 
    font-size: 0.875em; 
    color: var(--btn-text-color); 
    outline: none; 
    cursor: crosshair; 
    border: solid var(--btn-border-width) var(--color-dark); 
    border-radius: 0; 
    font-family: var(--font-heading); 
}

#submit:hover { 
    letter-spacing: 1px; 
    background: var(--btn-accent-bg); 
    color: var(--btn-text-light); 
    border: 1px solid var(--btn-accent-bg); 
}

#HelpWith { 
    font-size: 0.875em; 
    width: 90%; 
    height: 50px; 
    padding: 0px 15px; 
    margin-bottom: 2.5%; 
    background: transparent; 
    color: var(--color-dark); 
    border: solid var(--btn-border-width) var(--color-dark); 
    border-radius: 0; 
    font-family: var(--font-heading); 
    transition: var(--btn-transition); 
    cursor: crosshair; 
}

/* Match placeholder size to typed text, select, and button */
#contact-form input::placeholder, 
#contact-form textarea::placeholder { 
    font-size: 1em; 
}

.nextSteps { 
    margin-top: 10%; 
}

.captcha { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 2.5%; 
}

/* Contact Form Placeholders */
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { 
    color: var(--color-dark); 
    font-size: 0.875em; 
}

input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder { 
    color: var(--bg-light); 
}

input::-moz-placeholder, textarea::-moz-placeholder { 
    color: var(--color-dark); 
    font-size: 0.875em; 
}

input:focus::-moz-placeholder, textarea:focus::-moz-placeholder { 
    color: var(--color-dark); 
}

input::placeholder, textarea::placeholder { 
    color: var(--color-dark); 
    font-size: 0.875em; 
}

input:focus::placeholder, textarea:focus::placeholder { 
    color: var(--bg-light); 
}

input::-ms-placeholder, textarea::-ms-placeholder { 
    color: var(--bg-light); 
    font-size: 0.875em; 
}

input:focus::-ms-placeholder, textarea:focus::-ms-placeholder { 
    color: var(--bg-light); 
}

input:hover::-webkit-input-placeholder, textarea:hover::-webkit-input-placeholder { 
    color: var(--color-dark); 
    font-size: 0.875em; 
}

input:hover:focus::-webkit-input-placeholder, textarea:hover:focus::-webkit-input-placeholder { 
    color: var(--color-dark); 
}

input:hover::-moz-placeholder, textarea:hover::-moz-placeholder { 
    color: var(--color-dark); 
    font-size: 0.875em; 
}

input:hover:focus::-moz-placeholder, textarea:hover:focus::-moz-placeholder { 
    color: var(--color-dark); 
}

input:hover::placeholder, textarea:hover::placeholder { 
    color: var(--color-dark); 
    font-size: 0.875em; 
}

input:hover:focus::placeholder, textarea:hover:focus::placeholder { 
    color: var(--color-dark); 
}

input:hover:focus::-ms-placeholder, textarea:hover:focus::-ms-placeholder { 
    color: var(--color-dark); 
}


/* ==========================================================================
   12. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1199px) {
    .masonry { 
        column-count: 3; 
    }
}

@media (max-width: 991px) {
    .masonry { 
        column-count: 2; 
    }
    .aboutservicesTop { 
        flex-direction: column; 
    }
    .aboutservicesTop > .asleft { 
        width: 90%; 
    }
    .aboutservicesTop > .asright { 
        width: 100%; 
        padding-left: 0; 
    }
    .asright, .asleft { 
        margin-top: 5%; 
    }
    .missionSmallText { 
        font-size: .75em; 
        max-width:300px;
    }
    #aboutContainerButton{
        padding:35% 5% 5% 0%;
    }
}

@media (max-width: 768px) {
    
    
    /* Keep your typography fix */
    .heroHome > h1 { 
        margin-top: 15vh; 
        margin-bottom: 15%;
        font-size: 2.5em; 
        letter-spacing: -2px; 
        line-height: 1.05; 
    }
    .mobile-hide { 
        display: none; 
    }
    .footer-col { 
        border-right: none; 
        padding: 1.5rem; 
    }
    .footer-col:last-child { 
        border-bottom: none; 
    }
    .nav { 
        gap: 15px; 
    }
    .hero { 
        min-height: 500px; 
    }
    .hero-content { 
        bottom: 8%; 
        padding: 0 8%; 
    }
    .projects-container { 
        flex-direction: column; 
    }
    .project-main, .secondary-projects { 
        width: 100%; 
    }
    .project-main .project-image { 
        min-height: 400px; 
        padding-bottom: 100%; 
    }
    .project-row { 
        flex-direction: column; 
    }
    .project-secondary { 
        width: 48%; 
    }
    .hero-services { 
        flex-wrap: wrap; 
        justify-content: start; 
        gap: 15px; 
        bottom: 20vh; 
    }
    .cscMore { 
    width: 90%; 
    
}
}

@media (max-width: 767px) {
    .masonry { 
        column-count: 1; 
    }
}

@media only screen and (max-width: 600px) {
    .cscontext { 
        flex-direction: column-reverse; 
    }
    .cscleft { 
        width: 90%; 
    }
    .cscright { 
        width: 90%; 
        padding-left: 5%; 
    }
    .missionSection > h1 { 
        font-size: 2.5em; 
        text-indent: 20vw; 
    }
}

@media (max-width: 560px) {
    .heroHome > h1 { 
        margin-top: 15vh; 
        margin-bottom: 15%;
        font-size: 2.5em; 
        letter-spacing: -2px; 
        line-height: 1.05; /* This stops the letters from crashing */
    }
    .header { 
        display: grid; 
        grid-template-columns: 1fr auto 1fr; 
        padding: 15px 15px; 
    }
    .logo img, .mobile-logo img { 
        height: 30px; 
    }
    .nav { 
        display: none; 
    }
    .hamburger { 
        grid-column: 3; 
        justify-self: end; 
        display: block; 
        margin: 0; 
    }
    .herocs > h1 { 
        font-size: 2em; 
        margin: 0 auto; 
        padding: 10% 5% 5% 5%; 
        z-index: 3; 
        max-width: 1440px; 
        margin-bottom: 5vh; 
        margin-top: 10vh; 
    }
    .heroHome > h1 { 
        margin-top: 25vh; 
        margin-bottom:15%;
        font-size: 2.5em; 
        letter-spacing: -2px; 
    }
    
    .heroAbout { 
        flex-direction: column; 
    }
    .heroAbout > h1 { 
        margin-top: 15vh; 
        font-size: 2em; 
        letter-spacing: normal; 
        max-width: 100%; 
    }
    .aboutHeroImg { 
        margin-top: 10%; 
        width: 100%; 
        flex-direction: column-reverse; 
    }
    .hero { 
        min-height: 400px; 
        height: 80vh; 
    }
    .hero-content { 
        bottom: 5%; 
        padding: 5%; 
    }
    #filters { 
        display: flex; 
        flex-wrap: wrap; 
    }
    .hero-title, .astitle > h1 { 
        font-size: 2.5rem; 
        margin-bottom: 0.5rem; 
        overflow-wrap: break-word;
        hyphens: auto;
    }
    .project-secondary { 
        width: 46.5%; 
    }
    .aboutservicesTop { 
        padding-top: 10vh; 
    }
    
}

@media (max-width: 500px) {
    .cContainer { 
        padding-top: 15vh; 
    }
    .ContactHero > h1 { 
        font-size: 2.5rem; 
        line-height:.9;
        margin-bottom:10%;
        
    }
    .aboutservices { 
        flex-direction: column; 
    }
    .asleft { 
        width: 100%; 
        padding-right: 5%; 
    }
    .asright { 
        
        width: 100%; 
    }
}

@media (max-width: 450px) {
    .footer-grid { 
        flex-wrap: wrap; 
    }
}

@media (max-width: 400px) {
    .astitle > h1 { 
        font-size: 2.5em; 
        line-height:.9;
    }
    .HeroContainer{
        min-height:90vh;
    }
    .hero-services { 
        flex-wrap: wrap; 
        justify-content: start; 
        gap: 15px; 
        bottom: 5vh; 
        width: 100%; 
    }
    .hero-services span { 
        font-size:.75em;
        font-weight:500; 
    }
    .projects-containerTitle{
        font-size:1.5em;
    }
    .pcontainer{
        padding: 10% 5% 5% 0%;
    }
}

/* SEO kit: .h1-style marks headings that were <h1> and are now <h2> for SEO.
   The reset above gives h1 and h2 identical styling, and no h1-only rule
   targeted these elements, so no extra rules are needed. Any future h1 rule
   should also target .h1-style. */

/* SEO kit: videos replace GIFs inside project cards */
.project-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== BENTO GRID (featured work, home page concept) =====
   4 columns. Each column is a stack of tiles.
   To resize a tile, change its --rows number in the HTML (style="--rows:3").
   Rows in one column should add up to the same total as the other columns (6). */
.bento-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 1000px;
}

.bento-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.bento-tile {
    flex: var(--rows) 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bento-image {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.bento-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.bento-tile:hover .bento-image img {
    transform: scale(1.04);
}

.bento-tile .project-title {
    margin-top: 12px;
    min-height: 0;
    text-transform: uppercase;
    font-weight: 600;
}

.bento-desc {
    font-family: var(--font-body);
    font-size: .75em;
    font-weight: 400;
    color: var(--color-dark);
    margin-top: 2px;
}

/* Phone and small tablet: 2 columns, fixed tile heights */
@media (max-width: 768px) {
    .bento-grid {
        flex-wrap: wrap;
        height: auto;
    }
    .bento-col {
        flex: 1 1 calc(50% - 10px);
    }
    .bento-tile {
        flex: none;
        height: calc(var(--rows) * 90px);
    }
}

/* ===== PORTFOLIO PAGE GRID (4 wide) =====
   Same markup and filter script as before. Only the layout changed.
   Each project is still an <a class="project-secondary">, so the filter keeps working.
   To change the tile shape, change padding-bottom on .portfolio-grid .project-image
   (100% = square, 125% = a little taller than wide). */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.portfolio-grid .project-secondary {
    width: 100%;
}

.portfolio-grid .project-secondary .project-image {
    padding-bottom: 100%;
}

.portfolio-grid .project-image img,
.portfolio-grid .project-image video {
    transition: transform .4s ease;
}

.portfolio-grid .project-secondary:hover .project-image img,
.portfolio-grid .project-secondary:hover .project-image video {
    transform: scale(1.04);
}

.portfolio-grid .project-title {
    margin-top: 12px;
    min-height: 0;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ABOUT PAGE (new layout) =====
   Globe, snippets inside the headline, and the services grid. */
.inline-snippet {
    height: .75em;
    width: 1.4em;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: baseline;
    margin: 0 .05em;
    border: 1px solid rgba(20, 20, 20, .15);
}

.globe-section {
    width: 100%;
    height: 0;                /* globe.js grows this as you scroll, which pushes the sections below it down */
    margin: 0;
}

.globe {
    position: relative;
    width: 100%;
    height: 100%;             /* same height as .globe-section */
    overflow: visible;
    cursor: grab;
    touch-action: pan-y;      /* up/down still scrolls the page, left/right spins the globe */
    user-select: none;
    -webkit-user-select: none;
}

.globe.dragging {
    cursor: grabbing;
}

.globe-item {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    will-change: transform;
}

.globe-item img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* the 3 tiles that start as the headline images keep their rectangle crop */
.globe-item[data-inline] img {
    height: 100%;
    object-fit: cover;
}

/* Services: full-width black band with light text (same colors as the home page mission section) */
.services-section {
    width: 100%;
    background-color: var(--color-dark);
    padding: 8% 0;
    margin-bottom: 10%;
}

.services-section .process-main-title,
.services-section .service-item h3,
.services-section .service-item p {
    color: var(--bg-light);
}

.services-container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    width: calc(50% - 10px);
    padding: 1.5rem 0 2.5rem 0;      /* no lines, the spacing separates the items */
}

.service-item h3 {
    font-family: var(--subheading-font);
    font-size: 1.125em;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.service-item p {
    font-family: var(--font-body);
    font-size: .75em;
    letter-spacing: 1px;
    line-height: 1.25em;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .service-item {
        width: 100%;
    }
}

.process-container #aboutSubText {
    margin-bottom: 2rem;
}

/* About page: photo and who/what/why sit on the same 2 + 2 split as the project grid */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: start;
}

.about-intro-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.about-intro-text .asbreakdown {
    margin: 0;
}

@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
    }
}

/* Services band on phones: more room above the title, tighter gaps between services */
@media (max-width: 768px) {
    .services-section {
        padding: 18% 0;
    }
    .services-grid {
        gap: 0;
    }
    .service-item {
        padding: 1rem 0 1.25rem 0;
    }
}

/* Globe on phones: dragging the globe spins it in any direction (it no longer scrolls the page).
   The narrower globe leaves a strip on each side where swiping still scrolls the page. */
@media (max-width: 768px) {
    .globe {
        width: 76%;
        margin: 0 auto;
        touch-action: none;
    }
}

/* Process: pulled together so the title, intro and rows read as one section */
.process-container .process-main-title {
    padding-bottom: .5rem;
}

.process-container #aboutSubText {
    margin-bottom: 1.25rem;
}

.process-container .process-accordion-header {
    padding: 1.75rem 0;
}

@media (max-width: 768px) {
    .process-container .process-main-title {
        padding-bottom: .25rem;
    }
    .process-container #aboutSubText {
        margin-bottom: .75rem;
    }
    .process-container .process-accordion-header {
        padding: 1.1rem 0;
    }
}

/* ===== BENTO LIGHTBOX (home page) =====
   Uses the same .lightbox dark background as the case study pages.
   The frame holds the big visual with its caption underneath. */
.bento-lightbox-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 92vh;
}

.bento-lightbox-frame .lightbox-content {
    max-width: 100%;
    max-height: 72vh;
    min-height: 0;
}

.bento-lightbox-caption {
    margin-top: 1.25rem;
    align-self: stretch;      /* spans the image width so the text lines up with its left edge */
    text-align: left;
    color: var(--bg-light);
}

.bento-lightbox-caption h3 {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-lightbox-caption p {
    font-family: var(--font-body);
    font-size: .875em;
    margin: .25rem 0 1.5rem 0;   /* bottom margin = space above the View project link */
}

.bento-lightbox-caption a {
    color: var(--bg-light);
    font-family: var(--font-body);
    font-size: .875em;
    text-decoration: none;
}

@media (max-width: 768px) {
    .bento-lightbox-frame .lightbox-content {
        max-height: 62vh;
    }
    .lightbox-prev, .lightbox-next {
        font-size: 36px;
        padding: 10px;
    }
}

/* Lightbox arrows hidden (the markup and keyboard arrows still work). Remove this block to bring the arrows back. */
#bento-prev, #bento-next {
    display: none;
}


/* ==========================================================================
   PIXEL LOAD (pairs with theme/js/pixel-load.js)
   The page keeps its normal blur load-in. Images start as a chunky pixel
   mosaic of themselves and sharpen once they have loaded.
   To remove it: delete this block and the pixel-load.js <script> tags.
   ========================================================================== */
/* an image waits (invisible) until its mosaic is ready */
.px-hold {
    visibility: hidden !important;
}

/* the mosaic canvas sits right on top of its image */
.px-mosaic {
    position: absolute;
    pointer-events: none;
    image-rendering: pixelated;
    overflow: hidden;
}

/* Page transition: Sprite Shuffle (native cross-document view transitions) */
@view-transition {
    navigation: auto;
}
::view-transition-image-pair(root) {
    background: url("imgs/segue-confetti.png") 0 0 / 100% 100%;
    image-rendering: pixelated;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation: segue .6s steps(12, jump-none) both;
    mix-blend-mode: normal;
    -webkit-mask-size: 1200% 100%;
    mask-size: 1200% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
::view-transition-old(root) {
    -webkit-mask-image: url("imgs/segue-old.png");
    mask-image: url("imgs/segue-old.png");
}
::view-transition-new(root) {
    -webkit-mask-image: url("imgs/segue-new.png");
    mask-image: url("imgs/segue-new.png");
}
@keyframes segue {
    from { -webkit-mask-position: 0 0; mask-position: 0 0; }
    to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}
