:root {
    --ink: #101820;
    --ink-2: #17242d;
    --steel: #53636d;
    --mist: #edf1f2;
    --paper: #f8f9f8;
    --white: #ffffff;
    --accent: #1f29bf;
    --accent-dark: #161e8c;
    --accent-light: #8f99f2;
    --accent-rgb: 31, 41, 191;
    --line: rgba(16, 24, 32, .14);
    --shadow: 0 22px 60px rgba(16, 24, 32, .12);
    --radius: 4px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 12px; background: white; }
.skip-link:focus { left: 12px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 249, 248, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.brand-logo {
    height: 46px;
    width: auto;
    display: block;
    border-radius: 3px;
}
.brand strong { display: block; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .03em; }
.brand small { display: block; margin-top: 4px; color: var(--steel); font-size: .66rem; }
.primary-nav { display: flex; align-items: center; gap: 25px; }
.primary-nav > a:not(.btn), .nav-dropdown-toggle { text-decoration: none; font-size: .88rem; font-weight: 700; transition: color .2s ease; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
.primary-nav > a:not(.btn):hover, .nav-dropdown-toggle:hover { color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; }
.dropdown-arrow { font-size: 0.65rem; transition: transform .2s ease; display: inline-block; }
.nav-dropdown:hover .dropdown-arrow { transform: translateY(2px); }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 160px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s ease; z-index: 100; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 12px 18px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; transition: background .15s ease; }
.nav-dropdown-menu a:hover { background: var(--mist); color: var(--accent); }
.nav-toggle { display: none; border: 1px solid var(--line); background: white; padding: 10px 14px; font-weight: 800; }
.hero {
    position: relative;
    color: white;
    background-image:
        linear-gradient(90deg, rgba(13,18,24,.95) 0%, rgba(13,18,24,.82) 36%, rgba(13,18,24,.50) 66%, rgba(13,18,24,.34) 100%),
        url('/images/hero-sign.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: 78vh;
    padding: clamp(90px, 12vh, 150px) 0;
}
.hero-inner { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.hero-copy { max-width: 720px; }
.hero-grid, .split { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(35px, 6vw, 82px); }
.hero h1, .page-hero h1 {
    margin: 0 0 22px;
    max-width: 850px;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: .97;
    letter-spacing: -.055em;
}
.hero h1 { max-width: 760px; }
.lead { max-width: 780px; color: var(--steel); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.hero .lead { color: rgba(255,255,255,.75); }
.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hero .eyebrow, .dark .eyebrow, .page-hero.detail .eyebrow, .info-panel .eyebrow { color: var(--accent-light); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border: 0;
    border-radius: 2px;
    background: var(--accent);
    color: white;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 9px 17px; font-size: .83rem; }
.btn-secondary, .btn-light { border: 1px solid rgba(255,255,255,.5); background: transparent; color: white; }
.btn-light:hover, .btn-secondary:hover { background: white; color: var(--ink); }
.visual-placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    background:
        linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.02)),
        repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,.04) 24px 25px),
        #33434d;
    color: rgba(255,255,255,.82);
    text-align: center;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.visual-placeholder::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.15); }
.hero-visual { min-height: 490px; box-shadow: 30px 30px 0 rgba(var(--accent-rgb), .26); }
.wide { min-height: 400px; }
.section { padding: clamp(70px, 9vw, 118px) 0; }
.section h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.03; letter-spacing: -.04em; }
.section p { color: var(--steel); }
.soft { background: var(--mist); }
.dark { background: var(--ink); color: white; }
.dark p { color: rgba(255,255,255,.72); }
.proof-band { padding: 30px 0; background: white; border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proof-grid div { padding: 8px 20px; border-left: 2px solid var(--accent); }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { font-size: 1.1rem; }
.proof-grid span { margin-top: 4px; color: var(--steel); font-size: .76rem; line-height: 1.4; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.mini { grid-template-columns: repeat(2, 1fr); }
.card-grid article, .zone-grid article, .case-grid article {
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(16,24,32,.04);
}
.card-grid article h2, .card-grid article h3 { margin: 12px 0; font-size: 1.28rem; }
.line-icon { display: block; width: 42px; height: 4px; background: var(--accent); }
.text-link { color: var(--accent); font-weight: 850; text-decoration: none; }
.text-link::after { content: " →"; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.step-grid > div { padding-top: 20px; border-top: 1px solid var(--line); }
.step-grid span { color: var(--accent); font-weight: 900; font-size: .75rem; letter-spacing: .15em; }
.step-grid h2, .step-grid h3 { margin: 14px 0 8px; font-size: 1.28rem; letter-spacing: -.02em; }
.page-hero { padding: 92px 0 72px; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 980px; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero.detail { background: var(--ink); color: white; }
.page-hero.detail .lead { color: rgba(255,255,255,.7); }
.spec-table { border: 1px solid var(--line); background: white; }
.spec-table > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.spec-table > div:last-child { border-bottom: 0; }
.spec-table span { color: var(--steel); }
.timeline > div { display: grid; grid-template-columns: 100px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline strong { color: var(--accent); }
.zone-grid, .case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project-card { padding: 0 !important; overflow: hidden; }
.project-card > *:not(.visual-placeholder) { margin-inline: 24px; }
.project-card .visual-placeholder { min-height: 210px; }
.project-card .text-link { display: inline-block; margin-bottom: 25px; }
.proto-form { padding: 30px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.proto-form label { display: block; margin-bottom: 17px; font-weight: 800; font-size: .85rem; }
.proto-form input, .proto-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid #bcc5ca;
    background: var(--paper);
    font: inherit;
}
.proto-form textarea { min-height: 130px; resize: vertical; }
.proto-form small { display: block; margin-top: 6px; color: var(--steel); font-weight: 500; }
.info-panel { padding: 42px; background: var(--ink); color: white; }
.info-panel p, .info-panel .muted { color: rgba(255,255,255,.7); }
.info-panel li { margin: 12px 0; }
.site-footer { padding: 72px 0 25px; background: #0a1015; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 60px; }
.footer-grid h2, .footer-grid h3 { margin-top: 0; }
.footer-grid p { color: rgba(255,255,255,.65); }
.footer-grid > div:nth-child(2) a { display: block; margin: 8px 0; color: rgba(255,255,255,.75); text-decoration: none; }
.concept-note { margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.62); font-size: .75rem; }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .primary-nav { display: none; position: absolute; inset: 82px 20px auto; padding: 22px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .primary-nav.is-open { display: flex; }
    .hero-grid, .split { grid-template-columns: 1fr; }
    .proof-grid, .step-grid, .zone-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 28px), var(--max)); }
    .brand small { display: none; }
    .hero { padding: 64px 0; min-height: 0; background-image: linear-gradient(rgba(13,18,24,.90), rgba(13,18,24,.80)), url('/images/hero-sign.jpg'); }
    .hero-visual { min-height: 310px; box-shadow: 14px 14px 0 rgba(var(--accent-rgb), .26); }
    .proof-grid, .card-grid, .card-grid.mini, .step-grid, .zone-grid, .case-grid, .footer-grid { grid-template-columns: 1fr; }
    .proof-grid div { padding: 12px 15px; }
    .spec-table > div { grid-template-columns: 1fr; gap: 4px; }
    .page-hero { padding: 64px 0 50px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ---- Capabilities page ---- */
.cap-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cap-jump a {
    padding: 9px 16px;
    border: 1px solid var(--line);
    background: white;
    font-weight: 800;
    font-size: .82rem;
    text-decoration: none;
    border-radius: 2px;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.cap-jump a:hover { border-color: var(--accent); color: var(--accent); }
.page-hero.detail .cap-jump a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: white; }
.page-hero.detail .cap-jump a:hover { background: white; color: var(--ink); }
.cap { scroll-margin-top: 100px; }
.cap .split { align-items: start; }
.cap .visual-placeholder { min-height: 340px; }
.cap-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.cap-tag { padding: 6px 12px; background: var(--mist); border-left: 2px solid var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.dark .cap-tag { background: rgba(255,255,255,.07); }
.spec-table { margin-top: 8px; }
.spec-table strong { font-size: .95rem; }
.cap-cta { background: var(--ink); color: white; text-align: center; }
.cap-cta h2 { max-width: 760px; margin-inline: auto; }
.cap-cta p { max-width: 620px; margin-inline: auto; color: rgba(255,255,255,.72); }
.cap-cta .button-row { justify-content: center; }

/* ---- Capability photos ---- */
.cap-figure { margin: 0; }
.cap-photo { width: 100%; display: block; border: 1px solid var(--line); object-fit: cover; object-position: center; }
.cap-photo.single { height: 450px; }
.cap-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cap-stack .cap-photo { height: auto; }
.cap-cap { margin: 8px 0 0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
@media (max-width: 640px) {
    .cap-photo.single { height: 300px; }
    .cap-stack { grid-template-columns: 1fr; }
    .cap-stack .cap-photo { height: auto; }
}

/* ============ Refined hybrid homepage ============ */
/* Tightened stat strip (light, compact) */
.statstrip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.statstrip .sg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.statstrip .item { text-align: center; padding: 4px 14px; position: relative; }
.statstrip .item + .item::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; border-left: 1px solid var(--line); }
.statstrip .n { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 850; letter-spacing: -.025em; color: var(--ink); line-height: 1; }
.statstrip .n b { color: var(--accent); font-weight: 850; }
.statstrip .l { margin: 9px 0 0; color: var(--steel); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Capability photo grid */
.cap-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.cap-tile { position: relative; min-height: 250px; display: flex; align-items: flex-end; padding: 24px; color: #fff; text-decoration: none; background-size: cover; background-position: center; overflow: hidden; border: 1px solid var(--line); }
.cap-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,18,24,.90) 0%, rgba(13,18,24,.32) 55%, rgba(13,18,24,.12) 100%); transition: background .25s ease; }
.cap-tile:hover::before { background: linear-gradient(0deg, rgba(22,30,140,.90) 0%, rgba(13,18,24,.35) 60%, rgba(13,18,24,.12) 100%); }
.cap-tile .tx { position: relative; }
.cap-tile .tx b { font-size: 1.18rem; font-weight: 850; letter-spacing: -.01em; }
.cap-tile .tx span { display: block; margin-top: 5px; color: var(--accent-light); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Full-bleed facility band */
.band { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 480px; }
.band .media { background-size: cover; background-position: center; min-height: 340px; }
.band .body { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 88px); }
.band .body h2 { margin: 0 0 16px; }
.band.dark { background: var(--ink); color: #fff; }
.band.dark .body p { color: rgba(255,255,255,.72); }
.band.reverse .media { order: 2; }

/* Process section */
.process .pg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
.process .step { padding: 28px 24px; background: var(--white); border: 1px solid var(--line); position: relative; }
.process .step .num { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--accent); color: #fff; font-weight: 850; border-radius: 2px; }
.process .step h3 { margin: 16px 0 8px; font-size: 1.18rem; }
.process .step p { margin: 0; color: var(--steel); font-size: .96rem; }

/* Featured project — case-study layout (distinct from band) */
.case-feature .ph { width: 100%; height: 380px; object-fit: cover; display: block; border: 1px solid var(--line); }
.case-feature .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.case-feature .meta h4 { margin: 0 0 8px; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case-feature .meta p { margin: 0; color: var(--steel); }
.case-tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.case-tagrow span { padding: 6px 12px; background: var(--mist); border-left: 2px solid var(--accent); font-size: .74rem; font-weight: 800; }

/* Quality band */
.quality.dark { background: var(--ink); color: #fff; }
.quality.dark .lead { color: rgba(255,255,255,.72); }
.quality .qg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.quality .qitem { padding: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.quality .qitem h3 { margin: 0 0 8px; font-size: 1.12rem; }
.quality .qitem p { margin: 0; color: rgba(255,255,255,.68); font-size: .95rem; }

/* Improved footer */
.footer-contact p { margin: 6px 0; color: rgba(255,255,255,.65); }
.site-footer .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.5); font-size: .76rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
    .statstrip .sg { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
    .statstrip .item:nth-child(3)::before, .statstrip .item:nth-child(odd)::before { display: none; }
    .cap-tiles { grid-template-columns: repeat(2, 1fr); }
    .band { grid-template-columns: 1fr; }
    .band .media { min-height: 280px; }
    .band.reverse .media { order: 0; }
    .process .pg { grid-template-columns: repeat(2, 1fr); }
    .case-feature .meta { grid-template-columns: 1fr; gap: 18px; }
    .quality .qg { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cap-tiles { grid-template-columns: 1fr; }
    .process .pg { grid-template-columns: 1fr; }
    .case-feature .ph { height: 260px; }
}

/* Header click-to-call */
.nav-phone { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 800; font-size: .9rem; color: var(--ink); white-space: nowrap; transition: color .2s ease; }
.nav-phone svg { width: 15px; height: 15px; fill: var(--accent); flex: none; }
.nav-phone:hover { color: var(--accent); }
@media (max-width: 1100px) {
    .nav-phone { font-size: 1rem; padding: 4px 0; }
}
