/* =====================================================
   AMERON CONSULTING — GLOBAL STYLESHEET
   ===================================================== */

/* --- Variables --- */
:root {
    --bg: #0B0B0D;
    --bg-alt: #111114;
    --bg-card: #16161A;
    --text: #F5F5F7;
    --text-muted: #B8BCC8;
    --accent: #4C7DFF;
    --accent-glow: rgba(76, 125, 255, 0.18);
    --border: rgba(255, 255, 255, 0.07);
    --font: 'Inter', sans-serif;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --radius: 6px;
    --nav-h: 76px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden
}

body {
    line-height: 1.65;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: var(--font)
}

ul {
    list-style: none
}

input,
textarea,
select {
    font-family: var(--font)
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text)
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem)
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem)
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem)
}

h4 {
    font-size: 1.125rem
}

p {
    color: var(--text-muted);
    margin-bottom: 1.25rem
}

p:last-child {
    margin-bottom: 0
}

.container {
    width: 90%;
    max-width: 1380px;
    margin: 0 auto
}

.section {
    padding: 7rem 0
}

.eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

.section-header h2 {
    margin-bottom: 1rem
}

.section-sub {
    font-size: 1.125rem;
    color: var(--text-muted)
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .875rem 1.75rem;
    font-size: .9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .35s var(--ease);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    gap: 0.5rem
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(76, 125, 255, .25)
}

.btn-primary:hover {
    background: #3d6ef5;
    box-shadow: 0 8px 32px rgba(76, 125, 255, .4);
    transform: translateY(-2px);
    color: #fff
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, .18)
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(76, 125, 255, .06)
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, .2)
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.btn-lg {
    padding: 1.15rem 2.25rem;
    font-size: 1.0625rem
}

/* --- Loader --- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #050507;
    display: flex;
    align-items: center;
    justify-content: center
}

#loader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.loader-inner {
    position: relative;
    z-index: 2;
    text-align: center
}

.loader-wordmark {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--text);
    display: block;
    opacity: 0
}

.loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 1.5rem auto 0;
    overflow: hidden;
    border-radius: 2px
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 2px
}

/* --- Navbar --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
    padding: 1.25rem 0;
    border-bottom: 1px solid transparent
}

#navbar.scrolled,
body.page-inner #navbar {
    background: rgba(11, 11, 13, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border);
    padding: .875rem 0
}

.nav-wrap {
    width: 90%;
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: .08em;
    color: var(--text);
    flex-shrink: 0
}

.nav-brand-icon {
    flex-shrink: 0;
    height: 36px;
    width: auto;
    object-fit: contain
}

.footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0
}

.nav-links {
    display: flex;
    gap: 0;
    margin-left: auto
}

.nav-links li a {
    display: block;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
    transition: color .25s
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .3s var(--ease)
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text)
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: scaleX(1)
}

.nav-cta {
    padding: .625rem 1.25rem;
    font-size: .8125rem;
    margin-left: 1.5rem
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: transform .3s, opacity .3s
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg)
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 1.5rem
}

.mobile-menu.open {
    display: flex
}

.mobile-menu a {
    padding: .75rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: .9375rem
}

.mobile-menu a:last-child {
    border-bottom: none
}

.mobile-menu .btn {
    margin-top: 1rem;
    text-align: center
}

@media(max-width:1024px) {

    .nav-links,
    .nav-cta {
        display: none
    }

    .hamburger {
        display: flex
    }
}

/* --- Hero (Home) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1
}

.hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 11, 13, .95) 40%, rgba(11, 11, 13, .7) 100%);
    z-index: 2
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 860px;
    padding: 5rem 0
}

.hero-eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.75rem;
    opacity: 0
}

.hero-headline {
    margin-bottom: 1.75rem
}

.hero-headline .h-line {
    display: block;
    overflow: hidden
}

.hero-headline .reveal-text {
    display: block;
    font-style: normal;
    font-weight: 800;
    transform: translateY(110%)
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 620px;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 2.5rem
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px)
}

.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    opacity: 0
}

.h-stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 0 2rem
}

.h-stat:first-child {
    padding-left: 0
}

.h-stat strong {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text)
}

.h-stat span {
    font-size: .8125rem;
    color: var(--text-muted)
}

.h-stat-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    right: 5%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .75rem;
    opacity: .5
}

.hero-scroll-hint span {
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    writing-mode: vertical-rl
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--text-muted) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: .3;
        transform: scaleY(1)
    }

    50% {
        opacity: 1;
        transform: scaleY(1.3)
    }
}

/* --- Marquee --- */
.marquee-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: .75rem 0
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite
}

.marquee-track span {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap
}

.marquee-track .dot {
    color: var(--accent)
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* --- Services Grid (Home) --- */
.home-services {
    background: var(--bg)
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background: var(--border)
}

.svc-card {
    display: block;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
    transition: background .3s
}

.svc-card:hover {
    background: var(--bg-card)
}

.svc-card-wide {
    grid-column: span 2
}

.svc-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform .6s var(--ease);
    filter: brightness(.5) saturate(.6)
}

.svc-card:hover .svc-img {
    transform: scale(1.04);
    filter: brightness(.6) saturate(.8)
}

.svc-body {
    padding: 2rem
}

.svc-num {
    font-size: .75rem;
    letter-spacing: .12em;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: .75rem
}

.svc-body h3 {
    margin-bottom: .75rem;
    font-size: 1.25rem
}

.svc-body p {
    font-size: .9375rem;
    line-height: 1.65
}

.svc-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap .25s
}

@media(max-width:900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr
    }

    .svc-card-wide {
        grid-column: span 2
    }
}

@media(max-width:580px) {
    .services-grid {
        grid-template-columns: 1fr
    }

    .svc-card-wide {
        grid-column: span 1
    }
}

/* --- About Stripe (Home) --- */
.about-stripe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px
}

.about-stripe-img {
    background-size: cover;
    background-position: center;
    filter: brightness(.45) saturate(.5)
}

.about-stripe-content {
    background: var(--bg-alt);
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem
}

.about-stripe-content h2 {
    margin-bottom: 0
}

.about-stripe-content p {
    font-size: 1.0625rem;
    margin-bottom: 0
}

@media(max-width:900px) {
    .about-stripe {
        grid-template-columns: 1fr
    }

    .about-stripe-img {
        height: 300px
    }

    .about-stripe-content {
        padding: 3rem 2rem
    }
}

/* --- Insights Grid (Home) --- */
.home-insights {
    background: var(--bg)
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border)
}

.ins-card {
    display: block;
    background: var(--bg-alt);
    overflow: hidden;
    transition: background .3s
}

.ins-card:hover {
    background: var(--bg-card)
}

.ins-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    filter: brightness(.5) saturate(.5);
    transition: transform .6s var(--ease), filter .4s
}

.ins-card:hover .ins-img {
    transform: scale(1.04);
    filter: brightness(.65) saturate(.8)
}

.ins-body {
    padding: 2rem
}

.ins-tag {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: .75rem
}

.ins-body h3 {
    margin-bottom: .75rem;
    font-size: 1.1875rem
}

.ins-body p {
    font-size: .9375rem
}

.ins-read {
    display: inline-block;
    margin-top: 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    transition: color .25s
}

.ins-card:hover .ins-read {
    color: var(--accent)
}

@media(max-width:768px) {
    .insights-grid {
        grid-template-columns: 1fr
    }
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
    background: #050507
}

#cta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .6
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto
}

.cta-inner h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4vw, 3rem)
}

.cta-inner p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem
}

.subscribe-form {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem
}

.sub-input {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .875rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9375rem;
    outline: none;
    transition: border .25s
}

.sub-input:focus {
    border-color: var(--accent)
}

/* --- Footer --- */
.footer {
    position: relative;
    padding: 5rem 0 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    overflow: hidden
}

.footer-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none
}

.footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: .08em;
    color: var(--text);
    margin-bottom: 1.25rem
}

.footer-brand img {
    display: inline-block
}

.footer-brand-col p {
    font-size: .9rem
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem
}

.footer-socials a {
    color: var(--text-muted);
    transition: color .25s
}

.footer-socials a:hover {
    color: var(--accent)
}

.footer-col h4 {
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 600
}

.footer-col a {
    display: block;
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: .65rem;
    transition: color .25s
}

.footer-col a:hover {
    color: var(--text)
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .35)
}

@media(max-width:900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:580px) {
    .footer-inner {
        grid-template-columns: 1fr
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: .5rem
    }
}

/* =====================================================
   INNER PAGE STYLES
   ===================================================== */

/* --- Page Hero --- */
.page-hero {
    position: relative;
    padding: 10rem 0 6rem;
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: flex-end
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 11, 13, 1) 0%, rgba(11, 11, 13, .65) 60%, rgba(11, 11, 13, .4) 100%)
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0
}

.page-hero-content p {
    font-size: 1.125rem;
    max-width: 560px
}

/* --- Services Page --- */
.service-detail {
    padding: 6rem 0
}

.svc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center
}

.svc-detail-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    filter: brightness(.85)
}

.svc-detail-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .04);
    line-height: 1;
    margin-bottom: .5rem
}

.svc-detail-content h2 {
    margin-bottom: 1.25rem
}

.svc-lead {
    font-size: 1.1875rem;
    color: var(--text);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1.25rem
}

.svc-list {
    margin: 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: .875rem
}

.svc-list li {
    color: var(--text-muted);
    font-size: .9375rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 0
}

.svc-list li::before {
    content: '—';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: .05em
}

.svc-divider {
    height: 1px;
    background: var(--border);
    width: 90%;
    max-width: 1380px;
    margin: 0 auto
}

.alt-layout .svc-detail-grid {
    direction: rtl
}

.alt-layout .svc-detail-grid>* {
    direction: ltr
}

@media(max-width:900px) {
    .svc-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .alt-layout .svc-detail-grid {
        direction: ltr
    }

    .svc-detail-img img {
        height: 300px
    }
}

/* --- Capabilities Page --- */
.cap-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start
}

.cap-intro-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.cap-stat {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem
}

.big-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
    display: block;
    line-height: 1
}

.cap-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
    background: var(--border)
}

.cap-detail-card {
    background: var(--bg-alt);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden
}

.cap-detail-img {
    background-size: cover;
    background-position: center;
    filter: brightness(.4) saturate(.5);
    min-height: 320px;
    transition: filter .5s
}

.cap-detail-card:hover .cap-detail-img {
    filter: brightness(.5) saturate(.7)
}

.cap-detail-body {
    padding: 3rem
}

.cap-tag {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .04);
    display: block;
    line-height: 1;
    margin-bottom: .5rem
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin-top: 3rem
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .75rem;
    display: block
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: .4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem
}

@media(max-width:1100px) {
    .cap-cards-grid {
        grid-template-columns: 1fr
    }

    .cap-detail-card {
        grid-template-columns: 1fr
    }

    .cap-detail-img {
        min-height: 240px
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem
    }

    .step-arrow {
        display: none
    }

    .cap-intro-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:768px) {
    .cap-detail-card {
        grid-template-columns: 1fr
    }
}

/* --- Insights Page --- */
.featured-ins-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden
}

.featured-ins-img {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform .6s var(--ease);
    display: flex;
    align-items: flex-end
}

.featured-ins-card:hover .featured-ins-img {
    transform: scale(1.01)
}

.featured-ins-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 11, 13, .95) 30%, transparent 100%)
}

.featured-ins-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    max-width: 700px
}

.featured-ins-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem
}

.ins-filter-bar {
    display: flex;
    gap: .75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem
}

.filter-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: .5rem 1.25rem;
    border-radius: 99px;
    font-size: .875rem;
    cursor: pointer;
    transition: all .25s
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

.ins-all-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--border)
}

.ins-full-card {
    display: block;
    background: var(--bg-alt);
    overflow: hidden;
    transition: background .3s
}

.ins-full-card:hover {
    background: var(--bg-card)
}

.ins-full-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    filter: brightness(.5) saturate(.5);
    transition: transform .5s var(--ease), filter .4s
}

.ins-full-card:hover .ins-full-img {
    transform: scale(1.04);
    filter: brightness(.65) saturate(.7)
}

.ins-full-body {
    padding: 2rem
}

.ins-meta {
    font-size: .8rem;
    color: rgba(255, 255, 255, .3);
    margin-top: .75rem;
    display: flex;
    gap: 1.5rem
}

@media(max-width:900px) {
    .ins-all-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .ins-all-grid {
        grid-template-columns: 1fr
    }
}

/* --- About Page --- */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center
}

.mission-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    filter: brightness(.8)
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background: var(--border)
}

.value-card {
    background: var(--bg-color, #0B0B0D);
    padding: 2.5rem 2rem;
    transition: background .3s
}

.value-card:hover {
    background: var(--bg-card)
}

.value-icon {
    color: var(--accent);
    margin-bottom: 1.25rem
}

.value-card h3 {
    margin-bottom: .75rem;
    font-size: 1.1875rem
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
    border: 1px solid var(--border)
}

.home-stat {
    padding: 3.5rem 2rem;
    border-right: 1px solid var(--border)
}

.home-stat:last-child {
    border-right: none
}

.stat-big {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--text);
    display: inline-block;
    line-height: 1
}

.stat-sfx {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    vertical-align: top
}

.stat-lbl {
    display: block;
    font-size: .9375rem;
    color: var(--text-muted);
    margin-top: .75rem;
    font-weight: 400
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
    background: var(--border)
}

.team-card {
    background: var(--bg-color, #0B0B0D);
    overflow: hidden
}

.team-img {
    height: 280px;
    background-size: cover;
    background-position: top center;
    filter: grayscale(20%) brightness(.75);
    transition: filter .4s
}

.team-card:hover .team-img {
    filter: grayscale(0%) brightness(.85)
}

.team-info {
    padding: 1.5rem
}

.team-info h3 {
    font-size: 1.125rem;
    margin-bottom: .25rem
}

.team-role {
    font-size: .8125rem;
    color: var(--accent);
    letter-spacing: .05em;
    display: block;
    margin-bottom: .75rem
}

.team-info p {
    font-size: .875rem
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--border)
}

.client-placeholder {
    background: var(--bg-alt);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .25);
    font-weight: 500;
    letter-spacing: .05em
}

@media(max-width:1100px) {
    .values-grid {
        grid-template-columns: 1fr 1fr
    }

    .client-logos {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .mission-img img {
        height: 300px
    }

    .home-stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .home-stat:nth-child(2) {
        border-right: none
    }

    .home-stat {
        border-bottom: 1px solid var(--border)
    }
}

/* --- Careers Page --- */
.careers-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start
}

.careers-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem
}

.perk-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color .3s
}

.perk-item:hover {
    border-color: rgba(76, 125, 255, .4)
}

.perk-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1rem;
    filter: brightness(.7) saturate(.7);
    transition: filter .4s
}

.perk-item:hover .perk-img {
    filter: brightness(.85) saturate(.9)
}

.perk-item h4 {
    font-size: 1rem;
    margin-bottom: .5rem;
    font-weight: 600
}

.perk-item p {
    font-size: .875rem;
    margin: 0
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
    background: var(--border)
}

.role-card {
    background: var(--bg-color, #0B0B0D);
    padding: 2.5rem;
    transition: background .3s
}

.role-card:hover {
    background: var(--bg-card)
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem
}

.role-loc {
    font-size: .8125rem;
    color: var(--text-muted);
    display: block;
    margin-top: .25rem;
    font-weight: 400
}

.role-type {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    background: rgba(76, 125, 255, .12);
    color: var(--accent);
    padding: .35rem .75rem;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0
}

.role-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem
}

.role-tags span {
    font-size: .75rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    padding: .25rem .65rem;
    border-radius: 99px;
    color: var(--text-muted)
}

.culture-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px
}

.culture-img {
    background-size: cover;
    background-position: center;
    filter: brightness(.4) saturate(.5)
}

.culture-content {
    background: var(--accent);
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem
}

.culture-content .eyebrow {
    color: rgba(255, 255, 255, .7)
}

.culture-content h2 {
    color: #fff
}

.culture-content p {
    color: rgba(255, 255, 255, .8)
}

.culture-content .btn-primary {
    background: #fff;
    color: var(--accent)
}

.culture-content .btn-primary:hover {
    background: rgba(255, 255, 255, .9)
}

@media(max-width:1000px) {
    .careers-intro-grid {
        grid-template-columns: 1fr
    }

    .roles-grid {
        grid-template-columns: 1fr
    }

    .culture-strip {
        grid-template-columns: 1fr
    }

    .culture-img {
        height: 300px
    }

    .culture-content {
        padding: 3rem 2rem
    }
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    align-items: start
}

.contact-form-wrap h2 {
    margin-bottom: .75rem
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.form-group label {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .04em
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .875rem 1rem;
    border-radius: var(--radius);
    font-size: .9375rem;
    outline: none;
    transition: border .25s;
    width: 100%
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, .2)
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent)
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8BCC8' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center
}

.form-group select option {
    background: #111114
}

.btn-form {
    width: 100%
}

.form-success {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1.25rem;
    background: rgba(76, 125, 255, .08);
    border: 1px solid rgba(76, 125, 255, .3);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9375rem
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem
}

.contact-info-block h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .75rem
}

.office-item {
    margin-bottom: 1.5rem
}

.office-item h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .375rem
}

.office-item p {
    font-size: .875rem;
    margin: 0;
    line-height: 1.6
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: .875rem;
    margin-bottom: 1rem;
    color: var(--text-muted)
}

.contact-link-item a {
    color: var(--text-muted);
    transition: color .25s
}

.contact-link-item a:hover {
    color: var(--accent)
}

@media(max-width:900px) {
    .contact-grid {
        grid-template-columns: 1fr
    }

    .form-row {
        grid-template-columns: 1fr
    }
}

/* --- Fade-in animation (scroll-triggered by JS) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease)
}

.fade-in.visible {
    opacity: 1;
    transform: none
}

/* --- Misc utilities --- */
.hide-mobile {
    display: inline-flex
}

@media(max-width:768px) {
    .hide-mobile {
        display: none
    }
}