/*
 Theme Name:   Glass Systems
 Theme URI:    https://glasssystems.biz
 Description:  Standalone custom theme for Glass Systems Inc. (formerly a Divi child; Divi removed).
 Author:       Braxton West
 Author URI:   https://glasssystems.biz
 Version:      1.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  divi-child
*/

/* ============================================================
   DESIGN TOKENS
   Teal opacity ladder — always rgba(27,126,143,X):
     1.00      solid fills — buttons, CTA gradient stop
     0.45      structural dividers — card left-borders, mullion rules
     0.18–0.20 ghost/decorative numerals
     0.08–0.10 subtle wash backgrounds — spec-sheet cards
   ============================================================ */

:root {
    --gsi-teal:  #1B7E8F;
    --gsi-dark:  #1C2B35;
    --gsi-deep:  #0D1B24;
    --gsi-light: #F4F7FA;
    --gsi-card:  #EEF3F7;
    --gsi-ease:  cubic-bezier(0.22, 1, 0.36, 1); /* signature ease — all reveals/transitions */
    --gsi-gutter: 44px; /* section side gutter — narrowed on phones (see media query below) */
}
/* Phones: the 44px gutter leaves a cramped ~232px column at 320px. Narrow it so
   spine sections referencing var(--gsi-gutter) breathe. Desktop keeps 44px. */
@media (max-width: 600px) { :root { --gsi-gutter: 22px; } }

/* ============================================================
   GLOBAL
   ============================================================ */

body {
    font-family: 'Inter', sans-serif;
    background-color: #0D1B24;
}

/* Skip link — first focusable element; visible only on keyboard focus
   (WCAG 2.4.1 Bypass Blocks). Target is <main id="gsi-main"> in header.php. */
.gsi-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: var(--gsi-teal);
    color: #fff;
    padding: 12px 20px;
    font: 600 13px/1 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
}
.gsi-skip-link:focus {
    left: 8px;
    top: 8px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
/* Main is programmatically focusable via the skip link but should not show
   a focus ring when reached that way. */
#gsi-main:focus { outline: none; }

/* ============================================================
   HEADER — Transparent → Dark Frosted on Scroll
   ============================================================ */

/* Smooth transitions on all header state changes */
#main-header,
#main-header .container {
    transition: background-color 0.4s ease,
                padding 0.35s ease,
                box-shadow 0.4s ease;
}

/* Initial transparent state (Divi adds .et-transparent-nav when
   "Transparent Navigation" is enabled in Theme Options > Navigation) */
#main-header.et-transparent-nav,
#main-header.et-transparent-nav #et-top-navigation {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Scrolled / fixed state — deep dark frosted glass */
#main-header.et-fixed-header {
    background-color: rgba(13, 27, 36, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 2px 28px rgba(0, 0, 0, 0.4) !important;
}

/* Logo sizing */
#main-header #logo {
    max-height: 80px;
    width: auto;
    transition: max-height 0.35s ease;
}

#main-header.et-fixed-header #logo {
    max-height: 56px;
}

/* Taller header to accommodate larger logo */
#main-header:not(.et-fixed-header) #et-top-navigation {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

#main-header.et-fixed-header #et-top-navigation {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* ── Nav links ──────────────────────────────────────────────── */

/* White links on transparent header */
#main-header #top-menu > li > a,
#main-header #top-menu > li > a:visited,
.et-transparent-nav #top-menu > li > a,
.et-transparent-nav #top-menu > li > a:visited {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

/* Teal hover */
#main-header #top-menu > li > a:hover,
#main-header #top-menu > li.current-menu-item > a {
    color: #1B7E8F !important;
}

/* Scrolled header — keep white links */
#main-header.et-fixed-header #top-menu > li > a,
#main-header.et-fixed-header #top-menu > li > a:visited {
    color: #ffffff !important;
}

#main-header.et-fixed-header #top-menu > li > a:hover,
#main-header.et-fixed-header #top-menu > li.current-menu-item > a {
    color: #1B7E8F !important;
}

/* ── Desktop dropdown sub-menus ────────────────────────────── */

#top-menu .sub-menu {
    background-color: rgba(13, 27, 36, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    border-top: 2px solid #1B7E8F !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#top-menu .sub-menu li a,
#top-menu .sub-menu li a:visited {
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 2px solid transparent !important;
    padding: 14px 12px !important;
    transition: color 0.2s ease, border-left-color 0.2s ease, padding-left 0.2s ease !important;
}

#top-menu .sub-menu li a:hover {
    color: #ffffff !important;
    background-color: transparent !important;
    border-left-color: #1B7E8F !important;
    padding-left: 16px !important;
}

#top-menu .sub-menu li.current-menu-item > a,
#top-menu .sub-menu li.current-menu-item > a:visited {
    color: #1B7E8F !important;
    background-color: transparent !important;
    border-left-color: #1B7E8F !important;
    padding-left: 16px !important;
}

/* ── Services dropdown — 2×2 panel with descriptors ─────────── */

#top-menu li.gsi-services-dd > .sub-menu {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    width: 500px !important;
}

#top-menu li.gsi-services-dd > .sub-menu li {
    width: auto !important;
}

#top-menu li.gsi-services-dd > .sub-menu li a {
    width: auto !important;
    white-space: normal !important;
}

.gsi-dd-desc {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

#top-menu .sub-menu li a:hover .gsi-dd-desc {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Projects nav item — live project count badge ───────────── */

.gsi-nav-count {
    font-size: 9px;
    font-weight: 600;
    color: #1B7E8F;
    vertical-align: super;
    margin-left: 4px;
    letter-spacing: 0;
}

@media (max-width: 980px) {
    .gsi-dd-desc { display: none !important; }
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#top-menu li:hover > .sub-menu,
#top-menu li.et-hover > .sub-menu {
    animation: dropdown-in 0.15s ease forwards;
}

/* ── Mobile nav ─────────────────────────────────────────────── */

/* Divi 5 beta: ETmodules font maps "3" to wrong glyph — override dropdown caret */
#top-menu .menu-item-has-children > a:first-child:after,
#et-secondary-nav .menu-item-has-children > a:first-child:after {
    content: "\25BE" !important;
    font-family: sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}

@media (max-width: 980px) {

    #et_mobile_nav_menu .mobile_nav .mobile_menu_bar,
    #et_mobile_nav_menu .mobile_nav .mobile_menu_bar:before {
        color: #ffffff !important;
    }

    /* Divi 5 beta: ETmodules font maps \61 to wrong glyph — override with Unicode hamburger */
    #et_mobile_nav_menu .mobile_nav .mobile_menu_bar:before {
        content: "\2630" !important;
        font-family: sans-serif !important;
        font-size: 22px !important;
        line-height: 1 !important;
    }

    #main-header.et-fixed-header #et_mobile_nav_menu .mobile_nav .mobile_menu_bar,
    #main-header.et-fixed-header #et_mobile_nav_menu .mobile_nav .mobile_menu_bar:before {
        color: #ffffff !important;
    }

    /* Mobile dropdown — frosted glass, matching scrolled desktop header */
    .et_mobile_menu {
        background-color: rgba(13, 27, 36, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    /* Top-level items */
    .et_mobile_menu li a {
        color: #ffffff !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        padding: 16px 18px !important;
        border-bottom-color: rgba(255, 255, 255, 0.07) !important;
    }

    .et_mobile_menu li a:hover {
        color: #1B7E8F !important;
        background-color: transparent !important;
    }

    /* Sub-menu items — indented, dimmer, dash prefix */
    .et_mobile_menu .sub-menu li a {
        font-size: 10px !important;
        letter-spacing: 0.1em !important;
        color: rgba(255, 255, 255, 0.5) !important;
        padding: 12px 18px 12px 28px !important;
        border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    }

    .et_mobile_menu .sub-menu li a::before {
        content: "— ";
    }

    .et_mobile_menu .sub-menu li a:hover {
        color: #1B7E8F !important;
    }

    /* Active top-level page */
    .et_mobile_menu li.current-menu-item > a,
    .et_mobile_menu li.current-menu-ancestor > a {
        color: #1B7E8F !important;
        border-left: 2px solid #1B7E8F !important;
    }

    /* Active sub-item — teal text only; parent carries the border */
    .et_mobile_menu .sub-menu li.current-menu-item > a {
        border-left: none !important;
    }

}

/* ── Hide Divi's default top bar ────────────────────────────── */
#top-header {
    display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

#gsi-footer {
    background-color: #0D1B24;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Inter', sans-serif;
}

/* ── Inner grid ─────────────────────────────────────────────── */

.gsi-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px 60px;
}

/* ── Shared column styles ───────────────────────────────────── */

.gsi-footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 24px;
}

/* ── Brand column ───────────────────────────────────────────── */

.gsi-footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.gsi-footer-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 28px;
    line-height: 1.5;
}

.gsi-footer-social {
    display: flex;
    gap: 16px;
}

.gsi-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45) !important;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: color 0.25s ease;
}

.gsi-social-link:hover {
    color: #1B7E8F !important;
}

.gsi-social-link span {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
}

/* ── Nav column ─────────────────────────────────────────────── */

.gsi-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gsi-footer-menu li {
    margin-bottom: 12px;
}

.gsi-footer-menu li a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
}

.gsi-footer-menu li a:hover {
    color: #1B7E8F !important;
}

/* ── Contact column ─────────────────────────────────────────── */

.gsi-footer-address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
}

.gsi-footer-contact-list {
    list-style: none;
    margin: 0 0 0;
    padding: 0;
}

.gsi-footer-contact-list li {
    margin-bottom: 8px;
}

.gsi-footer-contact-list a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s ease;
}

.gsi-footer-contact-list a:hover {
    color: #1B7E8F !important;
}

/* ── Copyright bar ──────────────────────────────────────────── */

.gsi-footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 20px 60px;
    max-width: 100%;
}

.gsi-footer-bar p {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}

.gsi-footer-bar p a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gsi-footer-bar p a:hover {
    color: #1B7E8F;
}

.gsi-footer-disclaimer {
    margin-top: 8px !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    color: rgba(255, 255, 255, 0.15) !important;
}

/* ── Footer responsive ──────────────────────────────────────── */

@media (max-width: 980px) {
    .gsi-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 40px 48px;
    }

    .gsi-footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .gsi-footer-brand .gsi-footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .gsi-footer-brand .gsi-footer-social {
        justify-content: center;
    }

    .gsi-footer-col {
        text-align: center;
    }

    .gsi-footer-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gsi-footer-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .gsi-footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 24px 40px;
    }

    .gsi-footer-brand {
        grid-column: auto;
    }

    /* Center all footer columns on mobile */
    .gsi-footer-col {
        text-align: center;
    }

    .gsi-footer-brand .gsi-footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .gsi-footer-brand .gsi-footer-social {
        justify-content: center;
    }

    .gsi-footer-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gsi-footer-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Expand footer link hit areas to a comfortable tap size (~44px) without
       changing the visual rhythm. display:block (not inline-block): an
       inline-block with min-height sits on the text baseline inside the li,
       adding ~20px of phantom descender space per row — the footer read as
       2.5 screens of air on phones. Block rows are exactly 44px. */
    /* No min-height: these boxes are content-box, so min-height:44px stacked
       ON TOP of the 24px padding (44+24 = 68px rows). 12+20+12 already = 44. */
    .gsi-footer-menu li a,
    .gsi-footer-contact-list a {
        display: block;
        padding: 12px 10px;
        line-height: 20px;
    }
    .gsi-social-link {
        display: inline-block;
        padding: 12px 10px;
        line-height: 20px;
    }
    .gsi-footer-menu li { margin-bottom: 0; line-height: 20px; }

    .gsi-footer-bar {
        padding: 16px 24px;
    }
}

/* ── Hide Divi's default footer ─────────────────────────────── */
#main-footer {
    display: none !important;
}

/* ============================================================
   CONTACT FORM — dark theme overrides
   ============================================================ */

/* Inputs + textarea */
.et_pb_contact_form_container input[type="text"],
.et_pb_contact_form_container input[type="email"],
.et_pb_contact_form_container textarea {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 16px 20px !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
}

.et_pb_contact_form_container input[type="text"]:focus,
.et_pb_contact_form_container input[type="email"]:focus,
.et_pb_contact_form_container textarea:focus {
    border-color: #1B7E8F !important;
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.09) !important;
}

/* Placeholder text */
.et_pb_contact_form_container input::placeholder,
.et_pb_contact_form_container textarea::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Field labels */
.et_pb_contact_form_container label {
    color: rgba(255, 255, 255, 0.45) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

/* Submit button */
.et_pb_contact_form_container .et_pb_contact_submit {
    background-color: #1B7E8F !important;
    border: 1px solid #1B7E8F !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 16px 44px !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, border-color 0.25s ease !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.et_pb_contact_form_container .et_pb_contact_submit:hover {
    background-color: #155f6d !important;
    border-color: #155f6d !important;
}

/* ─── Button hover states ────────────────────────────────────────────────── */

/* Suppress Divi's default arrow glyph */
.et_pb_button::after {
    display: none !important;
}

/* Ensure transition on all buttons */
.et_pb_button {
    transition: background-color 0.25s ease, border-color 0.25s ease,
                color 0.25s ease !important;
}

/* Hover: ghost/outline buttons fill with teal; solid teal buttons stay teal */
.et_pb_button:hover {
    background-color: #1B7E8F !important;
    border-color: #1B7E8F !important;
    color: #ffffff !important;
}

/* Captcha row */
.et_pb_contact_captcha_question {
    color: rgba(255, 255, 255, 0.40) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
}

.et_pb_contact_form_container input.et_pb_contact_captcha {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    width: 60px !important;
    padding: 10px 12px !important;
}

/* Validation error message */
.et_pb_contact_form_container .et_pb_contact_error {
    color: rgba(255, 100, 100, 0.85) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
}

/* ============================================================
   GLAZING / SERVICE PAGES — bullet list styling
   ============================================================ */

/* Dark section bullet lists */
.et_pb_section .et_pb_text ul {
    padding-left: 18px;
    margin: 0;
}

.et_pb_section .et_pb_text ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Light section bullets keep dark color */
.et_pb_section[style*="F4F7FA"] .et_pb_text ul li,
.et_pb_section[style*="FFFFFF"] .et_pb_text ul li {
    color: #4a4a4a;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

/* Remove default Divi gallery padding and borders */
.et_pb_gallery .et_pb_gallery_item {
    overflow: hidden;
}

/* Uniform image sizing — all images same height, cropped to fill */
.et_pb_gallery .et_pb_gallery_image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.et_pb_gallery .et_pb_gallery_image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Hover zoom */
.et_pb_gallery .et_pb_gallery_item:hover .et_pb_gallery_image img {
    transform: scale(1.04);
}

/* Teal overlay on hover */
.et_pb_gallery .et_pb_gallery_image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 126, 143, 0.18);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.et_pb_gallery .et_pb_gallery_image {
    position: relative;
}

.et_pb_gallery .et_pb_gallery_item:hover .et_pb_gallery_image::after {
    opacity: 1;
}

/* Gap between items */
.et_pb_gallery .et_pb_gallery_grid {
    gap: 6px !important;
}

/* ============================================================
   EXECUTIVE TEAM — team-member module overrides
   ============================================================ */

/* Remove Divi's default round image and reset spacing — border on image so it flips with the photo */
.et_pb_team_member .et_pb_team_member_image {
    border-top: 2px solid #1B7E8F;
    border-radius: 0 !important;
    overflow: hidden;
    margin-bottom: 0 !important;
    line-height: 0;
}

.et_pb_team_member .et_pb_team_member_image img {
    border-radius: 0 !important;
    width: 100% !important;
    aspect-ratio: 3 / 4;
    object-fit: cover !important;
    object-position: center top;
    display: block;
}

/* Card — subtle dark fill, no border (border lives on image) */
.et_pb_team_member {
    background-color: rgba(255, 255, 255, 0.025);
    transition: background-color 0.3s ease;
}

.et_pb_team_member:hover {
    background-color: rgba(27, 126, 143, 0.06);
}

/* Text area */
.et_pb_team_member .et_pb_team_member_description {
    padding: 28px 28px 36px !important;
}

/* Name */
.et_pb_team_member h4.et_pb_module_header {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
}

/* Title / position */
.et_pb_team_member .et_pb_member_position {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #1B7E8F !important;
    margin-bottom: 16px !important;
}

/* Bio */
.et_pb_team_member .et_pb_team_member_description_content p {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-bottom: 0 !important;
}

/* ============================================================
   MOBILE ROW WIDTH — give content more room on small screens
   ============================================================ */

@media (max-width: 767px) {
    .et_pb_row {
        width: 94% !important;
        padding-left: 3% !important;
        padding-right: 3% !important;
    }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#gsi-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #1B7E8F;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* ============================================================
   ANIMATED TEAL ACCENTS
   ============================================================ */

/* Border-left grow — replaces static border on accent card columns */
.gsi-accent-card {
    position: relative !important;
    overflow: visible !important;
    border-left: none !important;
}
.gsi-accent-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: #1B7E8F;
    transition: height 0.7s var(--gsi-ease);
    z-index: 1;
}
.gsi-accent-card.gsi-accent-visible::before {
    height: 100%;
}


/* ============================================================
   PROJECT CARD HOVER REVEAL
   ============================================================ */
.gsi-project-card {
    overflow: hidden !important;
    position: relative !important;
}
.gsi-project-card .et_pb_image_wrap {
    overflow: hidden;
    display: block;
}
.gsi-project-card .et_pb_image_wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(13, 27, 36, 0.82) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}
.gsi-project-card:hover .et_pb_image_wrap::after {
    opacity: 1;
}
.gsi-project-card .et_pb_image_wrap img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.7s var(--gsi-ease) !important;
}
.gsi-project-card:hover .et_pb_image_wrap img {
    transform: scale(1.05) !important;
}

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */
#gsi-page-transition {
    position: fixed;
    inset: 0;
    background: #0D1B24;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--gsi-ease);
}

/* ============================================================
   HERO PHOTO-CREDIT CHIP — project name + location, bottom-right
   of the homepage hero. Markup lives in the hero text module.
   ============================================================ */
p.gsi-hero-credit {
    position: absolute;
    right: 34px;
    bottom: 30px;
    z-index: 5;
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(13, 27, 36, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 2px solid var(--gsi-teal);
    padding: 10px 16px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

@media (max-width: 767px) {
    p.gsi-hero-credit { display: none; }
}

/* ============================================================
   SCROLL REVEAL UTILITY — add data-reveal="rise|fade" to any element;
   the shared IntersectionObserver in functions.php adds .gsi-revealed.
   Hidden state only applies once JS has tagged <html class="gsi-js">,
   so content stays visible without JavaScript.
   ============================================================ */
html.gsi-js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--gsi-ease), transform 0.8s var(--gsi-ease);
}
html.gsi-js [data-reveal="fade"] {
    transform: none;
}
html.gsi-js [data-reveal].gsi-revealed {
    opacity: 1;
    transform: none;
}

/* ============================================================
   REDUCED MOTION — disable decorative animations for users who prefer it
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    #gsi-scroll-progress { display: none; }
    #gsi-page-transition { display: none !important; }
    .gsi-accent-card::before { transition: none; height: 100%; }
    .gsi-project-card .et_pb_image_wrap img { transition: none !important; }
    .gsi-project-card .et_pb_image_wrap::after { transition: none; }
    html.gsi-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PORTFOLIO FILTER BAR
   ============================================================ */
.gsi-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
.gsi-filter-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}
.gsi-filter-btn:hover {
    border-color: rgba(27, 126, 143, 0.5);
    color: rgba(255, 255, 255, 0.7);
}
.gsi-filter-btn.active {
    border-color: #1B7E8F;
    color: #1B7E8F;
    background: rgba(27, 126, 143, 0.1);
}
.gsi-project-card {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ============================================================
   GLASS PANEL REVEAL — home page counters section
   ============================================================ */
.gsi-glass-reveal {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.6s var(--gsi-ease);
    will-change: transform;
}
.gsi-glass-reveal.revealed {
    transform: translateY(-105%);
}
@media (prefers-reduced-motion: reduce) {
    .gsi-glass-reveal { display: none !important; }
}

/* ============================================================
   PRIMARY NAV — "Start a Project" button item
   ============================================================ */
#et-top-navigation ul.nav li.gsi-nav-cta > a,
#et-top-navigation ul.nav li.gsi-nav-cta > a:hover {
    background-color: #1B7E8F !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 2px !important;
    margin-left: 8px;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
}

/* ============================================================
   PORTFOLIO CAROUSEL
   ============================================================ */
.gsi-carousel-wrap {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    margin-bottom: 60px;
    overflow: hidden;
}
.gsi-carousel-track {
    display: flex;
    height: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.gsi-carousel-track::-webkit-scrollbar { display: none; }
.gsi-carousel-slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}
.gsi-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.15) 55%,
        transparent 100%
    );
}
.gsi-carousel-meta {
    position: absolute;
    bottom: 32px;
    left: 40px;
    z-index: 2;
}
.gsi-carousel-type {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1B7E8F;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}
.gsi-carousel-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-style: italic;
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 6px;
}
.gsi-carousel-loc {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
}
.gsi-carousel-arrows {
    position: absolute;
    bottom: 28px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.gsi-carousel-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-family: Arial, sans-serif !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    font-family: sans-serif;
}
.gsi-carousel-arrow:hover {
    border-color: #1B7E8F;
    color: #1B7E8F;
}
.gsi-carousel-dots {
    position: absolute;
    top: 20px;
    right: 32px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.gsi-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.2s, width 0.2s;
    cursor: pointer;
}
.gsi-carousel-dot.active {
    background: #1B7E8F;
    width: 18px;
}
.gsi-carousel-peek {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to left, rgba(13, 27, 36, 0.75) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}
@media (max-width: 767px) {
    .gsi-carousel-name { font-size: 28px; }
    .gsi-carousel-meta { left: 20px; bottom: 20px; }
    .gsi-carousel-arrows { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GSI PROJECTS — Shared Cards, Archive, Single Project Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Divi wrapper resets for project pages ────────────────────────────────── */
body.post-type-archive-gsi_project #page-container,
body.single-gsi_project #page-container {
    padding-top: 0 !important;
}
body.post-type-archive-gsi_project .container,
body.single-gsi_project .container {
    max-width: none !important;
    padding: 0 !important;
}

/* ── Shared: Project Cards ────────────────────────────────────────────────── */
.gsi-featured-projects,
.gsi-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 980px) {
    .gsi-featured-projects,
    .gsi-project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .gsi-featured-projects,
    .gsi-project-grid { grid-template-columns: 1fr; }
}

.gsi-project-card {
    display: flex;
    flex-direction: column;
}

.gsi-card-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.gsi-card-info {
    background: #1C2B35;
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gsi-card-type {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(27, 126, 143, 0.9);
    display: block;
    margin-bottom: 10px;
}

.gsi-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.gsi-card-location {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 24px;
}

.gsi-card-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 11px 22px;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    transition: border-color 0.25s, color 0.25s;
}

.gsi-card-btn:hover {
    border-color: #1B7E8F;
    color: #1B7E8F;
    text-decoration: none;
}

/* ── Shared: Section Label ────────────────────────────────────────────────── */
.gsi-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1B7E8F;
    display: block;
    margin-bottom: 14px;
}

/* ── Shared: Teal rule ────────────────────────────────────────────────────── */
.gsi-teal-rule {
    width: 48px;
    height: 1px;
    background: #1B7E8F;
    margin: 0 auto 28px;
}

/* ── Shared: CTA sections ─────────────────────────────────────────────────── */
.gsi-archive-cta,
.gsi-project-cta {
    background: #0D1B24 center/cover no-repeat fixed;
    position: relative;
    padding: 14vw 5%;
    text-align: center;
}

@media (max-width: 980px) {
    .gsi-archive-cta,
    .gsi-project-cta { background-attachment: scroll; }
}

.gsi-archive-cta::before,
.gsi-project-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 18, 26, 0.94) 0%,
        rgba(27, 126, 143, 0.30) 100%
    );
}

.gsi-archive-cta-inner,
.gsi-project-cta-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gsi-cta-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(27, 126, 143, 0.85);
    margin-bottom: 20px;
}

.gsi-cta-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 78px;
    font-weight: 500;
    font-style: italic;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 28px;
}

.gsi-cta-body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    max-width: 580px;
    margin: 0 auto 44px;
}

.gsi-cta-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 15px 40px;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
}

.gsi-cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    text-decoration: none;
}

@media (max-width: 980px) {
    .gsi-cta-heading { font-size: 48px; }
}

@media (max-width: 767px) {
    .gsi-cta-heading { font-size: 36px; }
    .gsi-archive-cta,
    .gsi-project-cta { padding: 80px 5%; }
}

/* ── Archive: Hero ────────────────────────────────────────────────────────── */
.gsi-archive-hero {
    min-height: 100vh;
    background: #0D1B24 center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
}

.gsi-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 18, 26, 0.82) 0%,
        rgba(13, 27, 36, 0.55) 100%
    );
}

.gsi-archive-hero-inner {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.gsi-hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 28px;
}

.gsi-hero-eyebrow::before,
.gsi-hero-eyebrow::after {
    content: '';
    width: 22px;
    height: 1px;
    background: #1B7E8F;
    flex-shrink: 0;
}

.gsi-archive-hero-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 82px;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.04;
    margin: 0 0 28px;
}

.gsi-archive-hero-intro {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .gsi-archive-hero-heading { font-size: 58px; }
}

@media (max-width: 767px) {
    .gsi-archive-hero-heading { font-size: 42px; }
    .gsi-archive-hero { padding: 100px 24px 60px; }
}

/* ── Archive: Grid Section ────────────────────────────────────────────────── */
.gsi-archive-grid-section {
    background: #0D1B24;
    padding: 80px 5%;
}

.gsi-archive-grid-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.gsi-archive-grid-header {
    margin-bottom: 52px;
}

/* ── Filter Bar ────────────────────────────────────────────────────────────── */
.gsi-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.gsi-filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 20px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.gsi-filter-btn:hover,
.gsi-filter-btn.active {
    color: #fff;
    border-color: rgba(27, 126, 143, 0.8);
    background: rgba(27, 126, 143, 0.1);
}

.gsi-project-card {
    transition: opacity 0.25s, transform 0.25s;
}

.gsi-archive-grid-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 600;
    color: #fff;
    line-height: 1.08;
    margin: 0;
}

.gsi-no-projects {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 60px 0;
    font-size: 15px;
}

@media (max-width: 767px) {
    .gsi-archive-grid-heading { font-size: 36px; }
    .gsi-archive-grid-section { padding: 60px 5%; }
}

/* ── Single Project: Hero ─────────────────────────────────────────────────── */
.gsi-project-hero {
    min-height: 100vh;
    background: #0D1B24 center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 5% 72px;
    position: relative;
}

.gsi-project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 27, 36, 0.9) 0%,
        rgba(13, 27, 36, 0.45) 50%,
        rgba(13, 27, 36, 0.15) 100%
    );
}

.gsi-project-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
}

.gsi-hero-stamp {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 18px;
}

.gsi-project-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 82px;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.04;
    margin: 0;
}

@media (max-width: 980px) {
    .gsi-project-hero-title { font-size: 56px; }
}

@media (max-width: 767px) {
    .gsi-project-hero-title { font-size: 38px; }
    .gsi-project-hero { padding-bottom: 48px; }
}

/* ── Single Project: Stats Bar ────────────────────────────────────────────── */
.gsi-stats-bar {
    background: #0D1B24;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 52px 5%;
}

.gsi-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.gsi-stat-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 600;
    color: #1B7E8F;
    line-height: 1.1;
    margin-bottom: 8px;
}

.gsi-stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 980px) {
    .gsi-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 767px) {
    .gsi-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

/* ── Single Project: Overview ─────────────────────────────────────────────── */
.gsi-project-overview {
    background: #1C2B35;
    padding: 80px 5%;
}

.gsi-overview-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 64px;
    align-items: start;
}

.gsi-overview-description p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.4em;
}

.gsi-overview-description p:last-child {
    margin-bottom: 0;
}

.gsi-sidebar-row {
    border-top: 1px solid rgba(27, 126, 143, 0.3);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gsi-sidebar-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1B7E8F;
}

.gsi-sidebar-value {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 767px) {
    .gsi-overview-inner { grid-template-columns: 1fr; gap: 40px; }
    .gsi-project-overview { padding: 60px 5%; }
}

/* ── Single Project: Gallery ──────────────────────────────────────────────── */
.gsi-project-gallery {
    background: #0D1B24;
    padding: 80px 5%;
}

.gsi-gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gsi-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gsi-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gsi-gallery-item:hover img {
    transform: scale(1.04);
}

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

@media (max-width: 767px) {
    .gsi-gallery-grid { grid-template-columns: 1fr; }
    .gsi-project-gallery { padding: 60px 5%; }
}

/* ── Single Project: Challenge ────────────────────────────────────────────── */
.gsi-project-challenge {
    background: #0D1B24;
    padding: 80px 5%;
    text-align: center;
}

.gsi-challenge-inner {
    max-width: 760px;
    margin: 0 auto;
}

.gsi-challenge-inner .gsi-section-label {
    text-align: center;
}

.gsi-challenge-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 24px;
}

.gsi-challenge-body p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.58);
    margin: 0 0 1.2em;
}

.gsi-challenge-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .gsi-challenge-heading { font-size: 30px; }
    .gsi-project-challenge { padding: 60px 5%; }
}

/* ── Single Project: Solution ─────────────────────────────────────────────── */
.gsi-project-solution {
    background: #1C2B35;
    padding: 80px 5%;
}

.gsi-solution-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.gsi-solution-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 20px;
}

.gsi-solution-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 44px;
}

.gsi-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.gsi-pillar {
    border-left: 2px solid rgba(27, 126, 143, 0.45);
    padding-left: 20px;
}

.gsi-pillar-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 600;
    color: rgba(27, 126, 143, 0.35);
    line-height: 1;
    margin-bottom: 10px;
}

.gsi-pillar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
}

.gsi-pillar-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 980px) {
    .gsi-solution-heading { font-size: 32px; }
}

@media (max-width: 767px) {
    .gsi-pillars { grid-template-columns: 1fr; gap: 28px; }
    .gsi-project-solution { padding: 60px 5%; }
}

/* ============================================================
   GSI PARTNERS GRID
   ============================================================ */

.gsi-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Base card ───────────────────────────────────────────────── */
.gsi-partner-card {
    background-color: rgba(255,255,255,0.025);
    padding: 32px 28px 36px;
}

/* ── Featured card ───────────────────────────────────────────── */
.gsi-partner-card--featured {
    background-color: rgba(255,255,255,0.03);
    padding: 36px 32px 40px;
}

/* ── Logo ────────────────────────────────────────────────────── */
.gsi-partner-logo {
    margin-bottom: 22px;
}

.gsi-partner-card--featured .gsi-partner-logo img {
    max-width: 160px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    display: block;
}

.gsi-partner-card--extended .gsi-partner-logo img {
    max-width: 140px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    display: block;
}

/* ── Type label ──────────────────────────────────────────────── */
.gsi-partner-type {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(27,126,143,0.80);
    margin-bottom: 10px;
}

/* ── Company name ────────────────────────────────────────────── */
.gsi-partner-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 0;
}

.gsi-partner-card--featured .gsi-partner-name {
    font-size: 28px;
    margin-bottom: 16px;
}

.gsi-partner-card--extended .gsi-partner-name {
    font-size: 22px;
    margin-bottom: 12px;
}

/* ── Description ─────────────────────────────────────────────── */
.gsi-partner-card--featured .gsi-partner-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.58);
    line-height: 1.9;
    margin: 0;
}

.gsi-partner-card--extended .gsi-partner-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.50);
    line-height: 1.85;
    margin: 0;
}

/* ── Website link (featured only) ────────────────────────────── */
.gsi-partner-link {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #1B7E8F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gsi-partner-link:hover {
    color: #ffffff;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
    .gsi-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gsi-partners-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE NUMBER LINKS
   Ghost Cormorant numbers in service_section() rendered as <a> tags.
   ══════════════════════════════════════════════════════════════════════════ */

.gsi-service-num a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 120px;
    line-height: 0.85em;
    font-weight: 300;
    color: rgba(27,126,143,0.14);
    letter-spacing: 0.04em;
    text-decoration: none;
    display: block;
}
@media (max-width: 980px) { .gsi-service-num a { font-size: 80px; } }
@media (max-width: 767px) { .gsi-service-num a { font-size: 54px; } }

/* ══════════════════════════════════════════════════════════════════════════
   GLAZING SYSTEM FLIP CARDS
   Mirrors gsi-team plugin pattern. 8 cards in a 4-col grid.
   Front: placeholder image + number + name.
   Back:  description + bullet points.
   ══════════════════════════════════════════════════════════════════════════ */

/* Static system cards (photo + name + description + bullets, all visible).
   Replaced the old 3D hover-flip. Rules are scoped under .gsi-svc-glazing so
   they out-specify the page wrapper's `* { margin:0; padding:0 }` reset —
   otherwise all card padding and inter-element spacing collapse to zero. */
.gsi-svc-glazing .gsi-glazing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 1080px) { .gsi-svc-glazing .gsi-glazing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .gsi-svc-glazing .gsi-glazing-grid { grid-template-columns: 1fr; } }

.gsi-svc-glazing .gsi-glazing-card {
    display: flex;
    flex-direction: column;
    background: #1C2B35;
    border-top: 2px solid #1B7E8F;
    overflow: hidden;
}

.gsi-svc-glazing .gsi-glazing-photo-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0d1b24;
}

.gsi-svc-glazing .gsi-glazing-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.gsi-svc-glazing .gsi-glazing-card:hover .gsi-glazing-photo { transform: scale(1.05); }

/* Consistent scrim unifies the mix of stock/project photos (varied exposure)
   into a cohesive set, keeps the corner number legible, and blends the photo
   into the card body below. */
.gsi-svc-glazing .gsi-glazing-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 20, 28, 0.72) 0%, rgba(10, 20, 28, 0.12) 42%, rgba(10, 20, 28, 0.22) 100%);
    pointer-events: none;
}

.gsi-svc-glazing .gsi-glazing-num {
    position: absolute;
    top: 12px;
    left: 16px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 10px rgba(5, 12, 20, 0.7);
    z-index: 2;
}

.gsi-svc-glazing .gsi-glazing-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 24px 28px;
}

.gsi-svc-glazing .gsi-glazing-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 12px;
}

.gsi-svc-glazing .gsi-glazing-desc {
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
    margin: 0 0 18px;
}

.gsi-svc-glazing .gsi-glazing-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gsi-svc-glazing .gsi-glazing-bullets li {
    position: relative;
    padding-left: 18px;
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    margin-bottom: 9px;
}
.gsi-svc-glazing .gsi-glazing-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: #1B7E8F;
}
.gsi-svc-glazing .gsi-glazing-bullets li:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   GSI PARTNERS — Home strip, featured cards, extended grid
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Home page logo marquee ([gsi_partner_logos]) ─────────────────────────── */
.gsi-logo-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.gsi-logo-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: gsi-marquee-scroll 40s linear infinite;
}

/* Equal-width cells (spacing baked in, no flex gap) keep the center-to-center
   rhythm uniform regardless of each logo's proportions, and let the -50%
   scroll loop seamlessly. */
.gsi-partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: clamp(210px, 20vw, 300px);
    padding: 0;
}

.gsi-partner-logo-item img {
    max-width: clamp(150px, 15vw, 200px);
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 0.45;
    filter: brightness(0) invert(1);
    transition: opacity .4s;
}

.gsi-logo-marquee:hover .gsi-partner-logo-item img { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
    .gsi-logo-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ── Partners page grids ([gsi_partners]) ─────────────────────────────────── */
.gsi-partners-grid--featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.gsi-partners-grid--extended {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Shared card base ─────────────────────────────────────────────────────── */
.gsi-partner-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 44px 40px 48px 42px;
    display: flex;
    flex-direction: column;
}

.gsi-partner-logo {
    margin-bottom: 28px;
}

.gsi-partner-logo img {
    max-width: 130px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    display: block;
}

.gsi-partner-type {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(27, 126, 143, 0.9);
    display: block;
    margin-bottom: 10px;
}

.gsi-partner-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 14px;
}

.gsi-partner-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.9;
    margin: 0 0 28px;
    flex: 1;
}

.gsi-partner-link {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1B7E8F;
    text-decoration: none;
    margin-top: auto;
}

.gsi-partner-link:hover {
    color: #fff;
    text-decoration: none;
}

/* ── Extended card overrides (compact) ────────────────────────────────────── */
.gsi-partner-card--extended {
    padding: 36px 32px 40px 32px;
}

.gsi-partner-card--extended .gsi-partner-logo img {
    max-width: 110px;
    height: 32px;
    opacity: 0.75;
}

/* EFCO's mark is portrait (stacked icon + wordmark) — at the shared 32px
   logo height it reads far smaller than the wide wordmark logos, so give
   it extra height for comparable visual weight. */
.gsi-partner-card--extended.gsi-partner--efco .gsi-partner-logo img {
    height: 68px;
    max-width: 90px;
}

.gsi-partner-card--extended .gsi-partner-name {
    font-size: 22px;
}

.gsi-partner-card--extended .gsi-partner-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .gsi-partners-grid--featured { grid-template-columns: 1fr; }
    .gsi-partners-grid--extended { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .gsi-partners-grid--extended { grid-template-columns: 1fr; }
    .gsi-partner-card { padding: 32px 28px 36px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GSI PROJECT GALLERY — Lightbox
   ═══════════════════════════════════════════════════════════════════════════ */

.gsi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(8, 18, 26, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gsi-lightbox[hidden] {
    display: none;
}

.gsi-lb-img-wrap {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gsi-lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.gsi-lb-caption {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.gsi-lb-caption a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gsi-lb-caption a:hover {
    color: #1B7E8F;
}

.gsi-lb-close,
.gsi-lb-prev,
.gsi-lb-next {
    position: fixed;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.gsi-lb-close:hover,
.gsi-lb-prev:hover,
.gsi-lb-next:hover {
    color: #fff;
}

.gsi-lb-close {
    top: 24px;
    right: 28px;
    font-size: 36px;
}

.gsi-lb-prev,
.gsi-lb-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.gsi-lb-prev { left: 16px; }
.gsi-lb-next { right: 16px; }

.gsi-lb-prev:hover,
.gsi-lb-next:hover {
    background: rgba(27, 126, 143, 0.3);
}

@media (max-width: 767px) {
    .gsi-lb-prev { left: 8px; }
    .gsi-lb-next { right: 8px; }
    .gsi-lb-close { top: 16px; right: 16px; font-size: 28px; }
}

/* ============================================================
   SITE-WIDE REVEAL — Divi content pages (About, Services, etc.)
   Only applied to below-fold rows by gsi-site-reveal.js; class is JS-added
   so content is always visible without JS; disabled under reduced-motion.
   ============================================================ */
html.gsi-js .gsi-reveal-row {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
html.gsi-js .gsi-reveal-row.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    html.gsi-js .gsi-reveal-row { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   STANDALONE HEADER — replaces Divi's header (header.php)
   ============================================================ */
.gsi-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: background-color .45s cubic-bezier(.16,1,.3,1), padding .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1);
    background-color: transparent;
}
.gsi-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1500px; margin: 0 auto; padding: 12px 44px;
    transition: padding .45s cubic-bezier(.16,1,.3,1);
}
.gsi-header.is-scrolled {
    background-color: rgba(10,21,29,.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 28px rgba(0,0,0,.4);
}
.gsi-header.is-scrolled .gsi-header__inner { padding-top: 8px; padding-bottom: 8px; }
.gsi-logo { display: inline-flex; align-items: center; line-height: 0; }
.gsi-logo img { height: 116px; width: auto; transition: height .45s cubic-bezier(.16,1,.3,1); }
.gsi-header.is-scrolled .gsi-logo img { height: 84px; }

/* Desktop nav */
.gsi-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.gsi-nav__menu li { position: relative; }
.gsi-nav__menu > li > a,
.gsi-nav__menu > li > a:visited {
    color: #fff; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
    transition: color .3s ease; display: inline-block; padding: 6px 0;
}
.gsi-nav__menu > li > a:hover,
.gsi-nav__menu > li.current-menu-item > a,
.gsi-nav__menu > li.current-menu-ancestor > a { color: var(--gsi-teal); }
.gsi-nav__menu .menu-item-has-children > a::after {
    content: "\25BE"; font-size: 9px; margin-left: 6px; vertical-align: middle; opacity: .7;
}

/* Dropdowns */
.gsi-nav__menu .sub-menu {
    list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: -18px; min-width: 240px;
    background-color: rgba(10,21,29,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0,0,0,.35); border-top: 2px solid var(--gsi-teal);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 1001;
}
.gsi-nav__menu > li:hover > .sub-menu,
.gsi-nav__menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gsi-nav__menu .sub-menu li a,
.gsi-nav__menu .sub-menu li a:visited {
    display: block; color: rgba(255,255,255,.75); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08); border-left: 2px solid transparent;
    padding: 14px 16px; transition: color .2s, border-left-color .2s, padding-left .2s;
}
.gsi-nav__menu .sub-menu li a:hover { color: #fff; border-left-color: var(--gsi-teal); padding-left: 20px; }
/* Current page inside a dropdown panel — persistent version of the hover state */
.gsi-nav__menu .sub-menu li.current-menu-item > a,
.gsi-nav__menu .sub-menu li.current-menu-item > a:visited { color: #fff; border-left-color: var(--gsi-teal); padding-left: 20px; }
/* Services dropdown 2-col + descriptors (re-scoped from the old #top-menu rules) */
/* Right-anchor: Services sits near the right of the nav, so a left-anchored 500px
   panel overflowed the viewport and clipped the right column's descriptions. */
.gsi-nav__menu li.gsi-services-dd > .sub-menu { display: grid; grid-template-columns: repeat(2, 250px); min-width: 500px; left: auto; right: -18px; }
/* Cells stretch to equal row heights (grid), and each <a> fills its cell so the
   divider border always lands on the row boundary — otherwise a 1-line description
   leaves the divider floating and the two columns look ragged. */
.gsi-nav__menu li.gsi-services-dd > .sub-menu > li { display: flex; }
.gsi-nav__menu li.gsi-services-dd > .sub-menu > li > a { flex: 1 1 auto; white-space: normal; }
.gsi-nav__menu .gsi-dd-desc { display: block; font-size: 10px; font-weight: 400; letter-spacing: .02em; text-transform: none; color: rgba(255,255,255,.4); margin-top: 5px; line-height: 1.5; }
.gsi-nav__menu .sub-menu li a:hover .gsi-dd-desc { color: rgba(255,255,255,.6); }
.gsi-nav__menu .gsi-nav-count { font-size: 9px; font-weight: 600; color: var(--gsi-teal); vertical-align: super; margin-left: 4px; letter-spacing: 0; }

/* Mobile toggle + menu */
.gsi-nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 12px; min-width: 48px; min-height: 48px; }
.gsi-nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s; }
.gsi-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gsi-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gsi-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* The menu sits inside the position:fixed header. Without a height cap it runs
   off the bottom on a short landscape phone and can't be scrolled to reach the
   last items — cap it to the space below the header and make it scroll. */
.gsi-mobile-menu { display: none; background-color: rgba(10,21,29,.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.08); max-height: calc(100dvh - 104px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.gsi-mobile-menu[hidden] { display: none !important; }
.gsi-mobile-menu.is-open { display: block; }
.gsi-mobile-menu__list, .gsi-mobile-menu__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.gsi-mobile-menu__list li a { display: block; color: #fff; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 16px 44px; border-bottom: 1px solid rgba(255,255,255,.06); }
.gsi-mobile-menu__list li a:hover { color: var(--gsi-teal); }
.gsi-mobile-menu__list .sub-menu li a { padding-left: 60px; font-size: 11px; color: rgba(255,255,255,.55); }
.gsi-mobile-menu__list .gsi-dd-desc, .gsi-mobile-menu__list .gsi-nav-count { display: none; }
/* Current page + its parent item in the mobile menu */
.gsi-mobile-menu__list li.current-menu-item > a,
.gsi-mobile-menu__list li.current-menu-ancestor > a { color: var(--gsi-teal); }

/* Switch to the hamburger at 1024px (was 980px): an iPad in landscape is 1024px
   and rendered the desktop hover-nav, whose Services dropdown opens only on
   :hover/:focus-within — unreachable by tap (tapping the parent navigates to
   /services). The h-gallery pin breakpoint in gsi-spine.css / gsi-motion.js is
   kept in sync at 1024/1025. */
@media (max-width: 1024px) {
    .gsi-nav { display: none; }
    .gsi-nav-toggle { display: flex; }
    .gsi-header__inner { padding: 10px 24px; }
    .gsi-logo img { height: 84px; }
}
/* Belt-and-suspenders: ANY coarse-pointer / no-hover device gets the hamburger
   regardless of width (large Android tablets, touch laptops) — they can't reveal
   hover dropdowns either. */
@media (hover: none) and (pointer: coarse) {
    .gsi-nav { display: none; }
    .gsi-nav-toggle { display: flex; }
}

/* ============================================================
   BASIC PAGE FALLBACK + 404 (standalone theme, global CSS)
   ============================================================ */
.gsi-basic { background: #0A151D; min-height: 70vh; padding: 22vh 44px 14vh; }
.gsi-basic__inner { max-width: 860px; margin: 0 auto; }
.gsi-basic__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: clamp(36px,5vw,64px); color: #fff; line-height: 1.05; margin: 0 0 32px; }
.gsi-basic__body, .gsi-basic__body p, .gsi-basic__body li { color: rgba(255,255,255,.72); font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.85; }
.gsi-basic__body h2, .gsi-basic__body h3 { color: #fff; font-family: 'Cormorant Garamond', serif; margin: 1.4em 0 .5em; }
.gsi-basic__body a { color: var(--gsi-teal); }

.gsi-404 { background: #0A151D; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px; }
.gsi-404__inner { max-width: 640px; position: relative; }
.gsi-404__ghost { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(140px,26vw,260px); line-height: 1; color: rgba(27,126,143,.20); }
.gsi-404__title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: clamp(34px,5vw,54px); color: #fff; margin: -18px 0 0; }
.gsi-404__rule { width: 48px; height: 1px; background: var(--gsi-teal); margin: 28px auto; }
.gsi-404__body { color: rgba(255,255,255,.6); font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.85; max-width: 460px; margin: 0 auto 40px; }
.gsi-404__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* self-contained button (gsi-spine.css isn't loaded on these pages) */
.gsi-404 .gsi-btn, .gsi-basic .gsi-btn {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    padding: 16px 34px; text-decoration: none; border: 1px solid rgba(255,255,255,.55); color: #fff; display: inline-block;
    transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.gsi-404 .gsi-btn:hover, .gsi-basic .gsi-btn:hover { background: #fff; color: #132029; border-color: #fff; }
