:root {
    --xgs-dark: #123D2B;
    --xgs-primary: #1F6B45;
    --xgs-light: #B8E0B0;
    --xgs-pale: #F1F7F0;
    --xgs-white: #FFFFFF;
    --xgs-ink: #1a2a22;
    --xgs-muted: #5b6d63;
    --shadow: 0 18px 40px rgba(18, 61, 43, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7.5rem;
}
body {
    font-family: "Source Sans 3", system-ui, sans-serif;
    color: var(--xgs-ink);
    background: var(--xgs-white);
    line-height: 1.6;
}
h1, h2, h3, .display-font {
    font-family: "Source Serif 4", Georgia, serif;
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--xgs-dark);
    color: #fff;
    padding: .5rem 1rem;
    z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d9e8dc;
}
.top-bar {
    background: var(--xgs-dark);
    color: var(--xgs-light);
    padding: .35rem 0;
}
.brand-logo {
    height: 78px;
    width: auto;
    max-width: none;
    display: block;
    border-radius: 14px;
}
.brand-logo-footer { height: 112px; }
.office-line { font-weight: 600; }
.contact-person {
    padding: .75rem 0;
    border-bottom: 1px solid #d9e8dc;
}
.contact-person:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-person .role {
    color: var(--xgs-muted);
    font-size: .92rem;
}
.contact-person a {
    color: var(--xgs-primary);
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.contact-person a:hover { text-decoration: underline; }
.section-dark .contact-person,
.site-footer .contact-person { border-bottom-color: rgba(184, 224, 176, .22); }
.section-dark .contact-person .role,
.site-footer .contact-person .role { color: #d7eadc; }
.section-dark .contact-person a,
.site-footer .contact-person a { color: var(--xgs-light); }
.navbar { padding: .85rem 0; }
.navbar .nav-link {
    color: var(--xgs-dark);
    font-weight: 600;
    padding: .4rem .75rem;
}
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--xgs-primary); }
.btn-meeting,
.btn-primary {
    background: var(--xgs-primary);
    border-color: var(--xgs-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: .55rem 1.2rem;
}
.btn-meeting:hover,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--xgs-dark);
    border-color: var(--xgs-dark);
    color: #fff;
}
.btn-outline-success {
    color: var(--xgs-primary);
    border-color: var(--xgs-primary);
    border-radius: 999px;
    font-weight: 600;
}
.btn-outline-success:hover {
    background: var(--xgs-primary);
    color: #fff;
}
.hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(18,61,43,.92), rgba(31,107,69,.72)),
        radial-gradient(circle at 80% 20%, #B8E0B0 0, transparent 28%),
        var(--xgs-dark);
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% 40%;
    height: 70%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath fill='none' stroke='%23B8E0B0' stroke-opacity='.25' stroke-width='2' d='M0 150 C80 80 140 180 220 90 C300 20 340 140 400 70'/%3E%3C/svg%3E") no-repeat center/cover;
    pointer-events: none;
}
.hero .eyebrow {
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--xgs-light);
    font-size: .78rem;
    font-weight: 700;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; }
.hero-panel {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(184,224,176,.35);
    border-radius: 18px;
    padding: 1.5rem;
}
.section { padding: 5rem 0; }
.section-pale { background: var(--xgs-pale); }
.section-dark {
    background: var(--xgs-dark);
    color: #fff;
}
.kicker {
    color: var(--xgs-primary);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}
.card-xgs {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    background: #fff;
}
.card-xgs:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(18,61,43,.16);
}
.card-visual {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--xgs-dark);
    position: relative;
    background: #fff;
    overflow: hidden;
}
.card-visual img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.card-visual.product { background: #fff; }
.card-visual.brand { background: linear-gradient(160deg, #1F6B45, #123D2B); color: #fff; }
.card-visual.application { background: linear-gradient(160deg, #dceee0, #F1F7F0); }
.badge-type {
    background: var(--xgs-pale);
    color: var(--xgs-dark);
    font-weight: 600;
    border-radius: 999px;
}
.industry-tile {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    border: 1px solid #d9e8dc;
    transition: border-color .2s ease, transform .2s ease;
}
.industry-tile:hover {
    border-color: var(--xgs-light);
    transform: translateY(-3px);
}
.industry-tile i { font-size: 1.6rem; color: var(--xgs-primary); }
.page-hero .eyebrow {
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--xgs-light);
    font-size: .78rem;
    font-weight: 700;
}
.pull-quote {
    margin: 1.5rem 0 0;
    padding-left: 1rem;
    border-left: 4px solid var(--xgs-primary);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.4;
}
.section-dark .pull-quote,
.page-hero .pull-quote { border-left-color: var(--xgs-light); color: #fff; }
.value-card {
    padding: 1.5rem;
    border-left: 4px solid var(--xgs-primary);
    background: #fff;
    border-radius: 0 16px 16px 0;
    height: 100%;
}
.form-control, .form-select {
    border-radius: 12px;
    border-color: #cfe0d4;
    padding: .7rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--xgs-primary);
    box-shadow: 0 0 0 .2rem rgba(31,107,69,.15);
}
.hp-field { position: absolute; left: -9999px; }
.site-footer {
    background: #0d2a1e;
    color: #d7eadc;
    padding: 4rem 0 1.5rem;
}
.footer-links a, .site-footer a { color: var(--xgs-light); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.letter-space { letter-spacing: .12em; }
.footer-base {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(184,224,176,.2);
}
.page-hero {
    background: linear-gradient(120deg, var(--xgs-dark), var(--xgs-primary));
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.about-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(184, 224, 176, .28), transparent 28%),
        linear-gradient(120deg, var(--xgs-dark), var(--xgs-primary));
}
.about-hero .lead {
    max-width: 38rem;
    color: rgba(255, 255, 255, .92);
}
.about-story,
.about-motivation,
.about-values {
    overflow: visible;
}
.about-story .row > [class*="col-"],
.about-motivation .row > [class*="col-"],
.about-values .row > [class*="col-"] {
    min-width: 0;
}
.about-prose {
    max-width: 42rem;
}
.about-prose p {
    margin-bottom: 1.15rem;
    color: var(--xgs-ink);
}
.about-prose a {
    color: var(--xgs-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .18em;
}
.about-aside {
    display: grid;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}
.about-panel {
    background: #fff;
    border: 1px solid #d9e8dc;
    border-radius: 22px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 10px 28px rgba(18, 61, 43, .06);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.about-panel-soft {
    background: linear-gradient(180deg, #f7fbf6 0%, #ffffff 70%);
}
.about-intro {
    max-width: 46rem;
    margin-bottom: 1.75rem;
}
.about-value {
    background: #fff;
    border: 1px solid #d9e8dc;
    border-radius: 22px;
    padding: 1.5rem 1.35rem 1.4rem;
    box-shadow: 0 10px 28px rgba(18, 61, 43, .05);
    position: relative;
    overflow: hidden;
}
.about-value-mark {
    display: inline-block;
    margin-bottom: .65rem;
    color: var(--xgs-primary);
    font-weight: 700;
    letter-spacing: .14em;
    font-size: .78rem;
}
.about-story .pull-quote,
.about-motivation .pull-quote,
.about-values .pull-quote {
    max-width: 40rem;
}
.related-wrap { background: var(--xgs-pale); }
.pagination .page-link { color: var(--xgs-primary); }
.pagination .active .page-link {
    background: var(--xgs-primary);
    border-color: var(--xgs-primary);
}
.filter-chip {
    border: 1px solid #cfe0d4;
    border-radius: 999px;
    padding: .35rem .9rem;
    color: var(--xgs-dark);
    text-decoration: none;
    display: inline-block;
    margin: .2rem;
}
.filter-chip.active, .filter-chip:hover {
    background: var(--xgs-primary);
    color: #fff;
    border-color: var(--xgs-primary);
}
@media (max-width: 991.98px) {
    .about-aside {
        margin-top: .5rem;
    }
}
@media (max-width: 767.98px) {
    .hero { min-height: auto; padding: 4.5rem 0; }
    .section { padding: 3.2rem 0; }
    .page-hero { padding: 3.4rem 0 2.8rem; }
    .brand-logo { height: 58px; }
    .brand-logo-footer { height: 84px; }
    html { scroll-padding-top: 5.5rem; }
    .about-panel,
    .about-value {
        border-radius: 18px;
        padding: 1.25rem 1.15rem;
    }
}