/* ==========================================================================
   EGASCON ENGINEERING SERVICES  —  INDUSTRIAL EDITORIAL DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Palette — deep navy foundation, paper warmth, signal orange, oxidized teal */
    --ink:          #0A1118;     /* near-black navy — primary text, dark bands */
    --ink-2:        #1E2430;     /* raised navy — cards on dark */
    --ink-3:        #2F3744;     /* secondary dark */
    --paper:        #F5F1E8;     /* warm cream — body background */
    --paper-2:      #EBE5D6;     /* darker paper for alt sections */
    --steel:        #7A818C;     /* muted secondary text */
    --steel-2:      #BFC3C9;     /* subtle borders on dark */
    --rule:         #D4CFC0;     /* hairlines on paper */
    --signal:       #E8742C;     /* signal orange — primary accent */
    --signal-dark:  #C85E1E;     /* hover state */
    --teal:         #1F6B6F;     /* oxidized teal — selective secondary accent */
    --cream:        #FEFBF5;     /* pure cream for highlights */
    --red:          #B8382C;     /* danger / safety */
    --green:        #4A6B3A;     /* success */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--signal); }

/* ==========================================================================
   TYPOGRAPHY — Archivo Black display, IBM Plex Sans body, IBM Plex Mono meta
   ========================================================================== */
.font-display { font-family: 'Archivo Black', 'Archivo', sans-serif; font-weight: 900; letter-spacing: -0.015em; }
.font-mono    { font-family: 'IBM Plex Mono', 'Courier New', monospace; }

h1, h2, h3, h4 { font-family: 'Archivo Black', sans-serif; font-weight: 900; line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.15; }
h4 { font-size: 1.1rem; letter-spacing: 0; }

p { line-height: 1.65; color: var(--ink-3); }

/* Serial-number meta label (shows above every section — industrial spec-sheet feel) */
.meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--signal);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}
.meta::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--signal);
    display: inline-block;
}
.meta.meta-dark { color: #D9A574; }
.meta.meta-dark::before { background: #D9A574; }
.meta.meta-nobar::before { display: none; }

/* ==========================================================================
   WRAP + LAYOUT
   ========================================================================== */
.wrap { width: 100%; overflow-x: hidden; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 2rem; }

@media (max-width: 720px) {
    .container, .container-narrow { padding: 0 1.25rem; }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--ink);
    color: var(--cream);
    border-bottom: 1px solid var(--ink-3);
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2rem;
    gap: 2rem;
}

.site-branding {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none;
    color: var(--cream);
    flex-shrink: 0;
}
.site-branding img { max-height: 44px; width: auto; filter: brightness(1.1); }

.logo-fallback { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 36px; height: 36px;
    background: var(--signal); color: var(--cream);
    font-family: 'Archivo Black', sans-serif; font-size: 1.3rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 2px;
}
.logo-word { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-word .name { font-family: 'Archivo Black', sans-serif; font-size: 1.1rem; letter-spacing: 0.02em; }
.logo-word .sub  { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--steel-2); margin-top: 2px; }

.primary-nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
.primary-nav a {
    color: var(--cream);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem; font-weight: 500;
    padding: 0.3rem 0;
    position: relative;
    letter-spacing: 0.01em;
}
.primary-nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--signal);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after { transform: scaleX(1); }
.primary-nav .current-menu-item a { color: var(--signal); }

.header-cta .btn-primary {
    background: var(--signal); color: var(--cream);
    padding: 0.7rem 1.4rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    border: none; cursor: pointer;
    transition: background .2s ease;
    display: inline-block;
}
.header-cta .btn-primary:hover { background: var(--signal-dark); color: var(--cream); }

.mobile-toggle {
    display: none;
    background: none; border: 1px solid var(--steel-2); color: var(--cream);
    width: 42px; height: 42px; font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 980px) {
    .site-header { padding: 0.9rem 1.25rem; }
    .mobile-toggle { display: block; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink); border-top: 1px solid var(--ink-3);
        display: none; padding: 1rem 1.25rem;
    }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .header-cta { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.btn-fill { background: var(--signal); color: var(--cream); }
.btn-fill:hover { background: var(--signal-dark); color: var(--cream); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); }

.btn-arrow::after { content: '→'; font-family: inherit; }

/* ==========================================================================
   HERO — oversized asymmetric split, number labels, overlapping image
   ========================================================================== */
.hero {
    background: var(--ink);
    color: var(--cream);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: end;
    min-height: 68vh;
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero { padding: 2.5rem 0 0; }
}

.hero-text { padding-bottom: 4rem; }
.hero-eyebrow {
    display: flex; align-items: center; gap: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: #D9A574;
    margin-bottom: 2rem;
    opacity: 0; animation: fadeUp .8s .1s ease forwards;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--signal); border-radius: 50%; }
.hero-eyebrow .count { color: var(--steel-2); }

.hero h1 {
    color: var(--cream);
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 0.98;
    margin-bottom: 1.75rem;
    opacity: 0; animation: fadeUp .8s .25s ease forwards;
}
.hero h1 .accent { color: var(--signal); font-style: italic; font-weight: 900; }
.hero h1 .outline {
    -webkit-text-stroke: 2px var(--cream);
    color: transparent;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--steel-2);
    line-height: 1.55;
    max-width: 46ch;
    margin-bottom: 2.5rem;
    opacity: 0; animation: fadeUp .8s .4s ease forwards;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .55s ease forwards; }

.hero-image {
    position: relative;
    height: 100%;
    min-height: 480px;
}
.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(1.05) brightness(0.95);
}

/* ---------- Reusable slider (hero + about) ---------- */
.hero-slider, .about-slider {
    position: relative;
    overflow: hidden;
}
.hero-slide, .about-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(.4,0,.2,1);
    filter: contrast(1.05) brightness(.95);
}
.hero-slide.active, .about-slide.active { opacity: 1; }
.hero-image::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(10,17,24,0) 55%, rgba(10,17,24,0.5));
    pointer-events: none;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 0.6rem;
    z-index: 3;
}
.slider-dot {
    width: 38px; height: 3px;
    background: rgba(255,255,255,.3);
    border: 0; padding: 0; cursor: pointer;
    transition: background .3s, width .3s;
}
.slider-dot:hover { background: rgba(255,255,255,.6); }
.slider-dot.active { background: var(--signal); width: 56px; }
.slider-dots-dark .slider-dot { background: rgba(10,17,24,.25); }
.slider-dots-dark .slider-dot:hover { background: rgba(10,17,24,.5); }
.slider-dots-dark .slider-dot.active { background: var(--signal); }

/* About slider sizing — matches .about-split img-wrap */
.about-slider {
    height: 500px;
    position: relative;
}
.about-slider::before {
    content: '';
    position: absolute; top: 1.5rem; left: 1.5rem; right: -1.5rem; bottom: -1.5rem;
    border: 2px solid var(--signal);
    z-index: -1;
}
@media (max-width: 980px) {
    .about-slider { height: 320px; }
    .about-slider::before { display: none; }
}

/* Hero spec-strip beneath — serial numbers + stats */
.hero-strip {
    background: var(--ink-2);
    border-top: 1px solid var(--ink-3);
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: relative; z-index: 1;
}
.hero-strip-item {
    padding: 1.75rem 2rem;
    border-right: 1px solid var(--ink-3);
    display: flex; flex-direction: column; gap: 0.4rem;
}
.hero-strip-item:last-child { border-right: 0; }
.hero-strip-item .num {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.2rem;
    color: var(--cream);
    line-height: 1;
}
.hero-strip-item .num .plus { color: var(--signal); }
.hero-strip-item .lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--steel-2);
}
@media (max-width: 720px) {
    .hero-strip { grid-template-columns: repeat(2, 1fr); }
    .hero-strip-item { padding: 1.25rem 1.25rem; }
    .hero-strip-item .num { font-size: 1.6rem; }
    .hero-strip-item:nth-child(2) { border-right: 0; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section     { padding: 6rem 0; }
.section-sm  { padding: 4rem 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark p, .section-dark .lead { color: var(--steel-2); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-alt { background: var(--paper-2); }

.section-head {
    display: grid; grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    align-items: end;
}
.section-head .lede {
    font-size: 1.1rem;
    color: var(--ink-3);
    line-height: 1.5;
}
.section-dark .section-head .lede { color: var(--steel-2); }
@media (max-width: 820px) {
    .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
    .section { padding: 4rem 0; }
}

/* Big headline + outline treatment */
.headline-outline {
    display: block;
    -webkit-text-stroke: 1.5px currentColor;
    color: transparent;
}

/* ==========================================================================
   HOME: SERVICES GRID — 14 cards with icon, number, title, blurb
   ========================================================================== */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.section-dark .svc-grid { border-color: var(--ink-3); }

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

/* ---------- Base svc-card (used on services.php, about.php, service.php related) ---------- */
.svc-card {
    position: relative;
    padding: 2.25rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column; gap: 1rem;
    transition: background .3s ease, color .3s ease;
    overflow: hidden;
    min-height: 300px;
}
.section-dark .svc-card { background: var(--ink); border-color: var(--ink-3); color: var(--cream); }

.svc-card:not(.svc-card-flip):hover { background: var(--ink); color: var(--cream); }
.section-dark .svc-card:not(.svc-card-flip):hover { background: var(--signal); }

.svc-card .svc-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.15em;
    color: var(--signal);
    transition: color .3s;
}
.svc-card:not(.svc-card-flip):hover .svc-num { color: var(--cream); }

.svc-card .svc-icon {
    width: 48px; height: 48px;
    color: var(--signal);
    transition: color .3s;
}
.svc-card:not(.svc-card-flip):hover .svc-icon { color: var(--cream); }

.svc-card .svc-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem; line-height: 1.15;
    text-transform: uppercase;
    color: inherit;
    margin-top: 0.5rem;
}

.svc-card .svc-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-3);
    transition: color .3s;
}
.svc-card:not(.svc-card-flip):hover .svc-desc { color: var(--steel-2); }
.section-dark .svc-card .svc-desc { color: var(--steel-2); }

.svc-card .svc-link {
    margin-top: auto; padding-top: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--signal);
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: color .3s;
}
.svc-card .svc-link::after {
    content: '→';
    transition: transform .3s;
}
.svc-card:not(.svc-card-flip):hover .svc-link { color: var(--cream); }
.svc-card:not(.svc-card-flip):hover .svc-link::after { transform: translateX(4px); }

/* ---------- Flip variant (homepage "What we do") ---------- */
.svc-card-flip {
    padding: 0;
    perspective: 1200px;
    overflow: hidden;
    background: transparent;
    min-height: 340px;
}
.svc-card-flip .svc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.svc-card-flip:hover .svc-card-inner,
.svc-card-flip:focus-visible .svc-card-inner,
.svc-card-flip.is-flipped .svc-card-inner {
    transform: rotateY(180deg);
}
.svc-face {
    position: absolute; inset: 0;
    padding: 2.25rem;
    display: flex; flex-direction: column; gap: 1rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: var(--paper);
}
.svc-face-back {
    transform: rotateY(180deg);
    padding: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--ink);
    overflow: hidden;
}
.svc-face-back::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,17,24,.92) 0%, rgba(10,17,24,.55) 45%, rgba(10,17,24,.15) 100%);
    pointer-events: none;
}
.svc-face-back .back-overlay {
    position: absolute; inset: 0;
    padding: 2.25rem;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 0.75rem;
    z-index: 1;
}
.svc-face-back .back-num {
    color: var(--signal) !important;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.15em;
}
.svc-face-back .back-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem; line-height: 1.1;
    text-transform: uppercase;
    color: var(--cream);
    letter-spacing: -0.01em;
}
.svc-face-back .back-link {
    color: var(--cream);
    margin-top: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,.2);
    width: fit-content;
}

/* On touch devices, flip on tap: JS will toggle .is-flipped and the first tap won't navigate */
@media (hover: none) {
    .svc-card-flip:hover .svc-card-inner { transform: none; }
}

/* ==========================================================================
   ABOUT SPLIT — image + text side by side with offset frame
   ========================================================================== */
.about-split {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}
.about-split .img-wrap {
    position: relative;
}
.about-split .img-wrap img {
    width: 100%; height: 500px; object-fit: cover;
    display: block;
}
.about-split .img-wrap::before {
    content: '';
    position: absolute; top: 1.5rem; left: 1.5rem; right: -1.5rem; bottom: -1.5rem;
    border: 2px solid var(--signal);
    z-index: -1;
}
.about-split .text h2 { margin: 1rem 0 1.5rem; }
.about-split .text p { font-size: 1.05rem; margin-bottom: 1.25rem; }
.about-split .text .btn { margin-top: 1rem; }

@media (max-width: 980px) {
    .about-split { grid-template-columns: 1fr; gap: 2rem; }
    .about-split .img-wrap img { height: 320px; }
    .about-split .img-wrap::before { display: none; }
}

/* ==========================================================================
   STATS BAND / VALUES
   ========================================================================== */
.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink-3);
    border-left: 1px solid var(--ink-3);
}
.values .val {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--ink-3);
    border-bottom: 1px solid var(--ink-3);
    display: flex; flex-direction: column; gap: 0.8rem;
}
.values .val .num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.15em; color: var(--signal);
}
.values .val h4 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    color: var(--cream);
    text-transform: uppercase;
    margin: 0.3rem 0;
}
.values .val p { color: var(--steel-2); font-size: 0.95rem; line-height: 1.5; }

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

/* ==========================================================================
   ACCREDITATION BAND — logo marquee with industrial strip
   ========================================================================== */
.accred {
    background: var(--paper-2);
    padding: 3rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.accred-head {
    text-align: center;
    margin-bottom: 2rem;
}
.accred-head .meta { justify-content: center; }
.accred-head h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-top: 0.8rem;
}
.accred-list {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.5rem 0;
    border-top: 1px solid var(--rule);
}
.accred-list .item {
    padding: 1.25rem 1.75rem;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: all .25s ease;
}
.accred-list .item:hover { color: var(--signal); background: var(--paper); }

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
    background: var(--ink);
    color: var(--cream);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: contrast(1.1);
}
.page-hero.has-image::before { opacity: 0.35; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .meta { color: #D9A574; margin-bottom: 1.5rem; }
.page-hero .meta::before { background: #D9A574; }
.page-hero h1 { color: var(--cream); max-width: 24ch; }

/* ==========================================================================
   SERVICE DETAIL
   ========================================================================== */
.svc-detail-wrap {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 980px) { .svc-detail-wrap { grid-template-columns: 1fr; } }

.svc-detail-body { max-width: 760px; }
.svc-detail-body .intro {
    font-size: 1.2rem; line-height: 1.6; color: var(--ink);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}
.svc-detail-body p { font-size: 1.02rem; margin-bottom: 1.3rem; color: var(--ink-3); }

.svc-aside {
    position: sticky; top: 100px;
    padding: 2rem;
    background: var(--ink);
    color: var(--cream);
}
.svc-aside h4 {
    color: var(--cream);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 1rem;
}
.svc-aside .svc-aside-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.svc-aside .svc-aside-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ink-3);
    color: var(--steel-2);
    font-size: 0.9rem;
}
.svc-aside .svc-aside-list li:last-child { border-bottom: 0; }
.svc-aside .btn { width: 100%; justify-content: center; }

/* Capability check-grid on service pages */
.cap-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.9rem 2rem;
    margin: 2rem 0;
}
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.95rem; color: var(--ink);
}
.cap-item::before {
    content: '→';
    color: var(--signal);
    font-weight: 700;
    flex-shrink: 0;
}

/* Advantage callout */
.advantage {
    background: var(--ink);
    color: var(--cream);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    border-left: 4px solid var(--signal);
    position: relative;
}
.advantage::before {
    content: 'ADVANTAGE';
    position: absolute; top: -10px; left: 2.5rem;
    background: var(--signal);
    color: var(--cream);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.2em;
    padding: 0.3rem 0.8rem;
}
.advantage p { color: var(--cream); font-size: 1rem; line-height: 1.5; margin: 0; }

/* Equipment tag cloud */
.eq-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2rem; }
.eq-tag {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    padding: 0.5rem 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--ink);
    transition: all .2s ease;
}
.eq-tag:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
    background: var(--ink);
    color: var(--cream);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--signal);
}
.cta-band-inner {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 3rem; align-items: center;
}
.cta-band h2 { color: var(--cream); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-band p { color: var(--steel-2); font-size: 1.1rem; margin-top: 1rem; max-width: 50ch; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 820px) {
    .cta-band-inner { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
    background: var(--cream);
    padding: 2.5rem;
    border: 1px solid var(--rule);
}
.contact-form label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    color: var(--ink);
    margin-bottom: 1.25rem;
    transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--signal);
}
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.contact-info > div { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.contact-info > div:last-child { border-bottom: 0; }
.contact-info .label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 0.6rem;
}
.contact-info .value { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-info .value a { color: var(--ink); }
.contact-info .value a:hover { color: var(--signal); }

.alert {
    padding: 1rem 1.2rem; margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border-left: 4px solid;
}
.alert-success { background: #E8F0E0; border-color: var(--green); color: #2F4A20; }
.alert-error { background: #F6E2DE; border-color: var(--red); color: #6B1F15; }

/* ==========================================================================
   PRODUCTS / PROJECTS GRID
   ========================================================================== */
.product-grid, .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 820px) { .product-grid, .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid, .project-grid { grid-template-columns: 1fr; } }

.product-card, .project-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover, .project-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(10,17,24,.1); }
.product-card .img, .project-card .img {
    height: 220px; background: var(--paper-2);
    background-size: cover; background-position: center;
}
.product-card .body, .project-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.product-card .cat, .project-card .cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--signal);
}
.product-card h3, .project-card h3 { font-size: 1.1rem; }
.product-card p, .project-card p { font-size: 0.9rem; color: var(--ink-3); }

/* Chip filter */
.chip-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
    padding: 0.5rem 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    background: transparent; border: 1px solid var(--rule); color: var(--ink);
    cursor: pointer;
    transition: all .2s;
}
.chip:hover, .chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ==========================================================================
   TRAINING COURSES
   ========================================================================== */
.course-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (max-width: 820px) { .course-grid { grid-template-columns: 1fr; } }

.course {
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.course .code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.15em;
    color: var(--signal);
}
.course h3 { font-size: 1.25rem; }
.course .meta-row {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem; color: var(--steel);
    padding-top: 0.8rem; border-top: 1px solid var(--rule);
}
.course .meta-row span strong { color: var(--ink); }

/* ==========================================================================
   POLICIES
   ========================================================================== */
.policies-wrap {
    display: grid; grid-template-columns: 240px 1fr;
    gap: 4rem; align-items: start;
}
@media (max-width: 820px) { .policies-wrap { grid-template-columns: 1fr; } }
.policies-toc { position: sticky; top: 100px; }
.policies-toc h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--signal); margin-bottom: 1rem; }
.policies-toc ul { list-style: none; padding: 0; }
.policies-toc li { margin: 0.6rem 0; }
.policies-toc a { font-size: 0.9rem; color: var(--ink-3); }
.policies-toc a:hover { color: var(--signal); }

.policy-item { padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.policy-item:first-child { padding-top: 0; }
.policy-item h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.policy-item p { margin-bottom: 1rem; }
.policy-item ul { padding-left: 1.5rem; margin: 1rem 0; }
.policy-item li { margin-bottom: 0.5rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--ink);
    color: var(--steel-2);
    padding: 4.5rem 0 2rem;
    border-top: 4px solid var(--signal);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .wordmark {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.6rem;
    color: var(--cream);
    letter-spacing: 0.02em;
}
.footer-brand .tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem; letter-spacing: 0.15em;
    color: var(--signal);
    margin: 0.4rem 0 1.5rem;
}
.footer-brand p { font-size: 0.92rem; color: var(--steel-2); line-height: 1.55; max-width: 42ch; }

.footer-col h5 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin: 0.6rem 0; }
.footer-col a { color: var(--steel-2); font-size: 0.9rem; }
.footer-col a:hover { color: var(--cream); }

.footer-col .contact-line { font-size: 0.9rem; color: var(--steel-2); margin: 0.5rem 0; }
.footer-col .contact-line strong { color: var(--cream); display: block; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.2rem; }

.footer-bar {
    padding-top: 2rem;
    border-top: 1px solid var(--ink-3);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--steel);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
