/* SAPACO corporate website styles */
:root {
    --navy: #071d34;
    --navy-2: #0b2847;
    --teal: #08b6a6;
    --teal-dark: #078f85;
    --orange: #f97316;
    --orange-dark: #c9570c;
    --ink: #0f172a;
    --muted: #5f6f82;
    --soft: #eef4f7;
    --soft-2: #f7fafc;
    --white: #ffffff;
    --line: #d9e4ea;
    --teal-soft: #e3f8f6;
    --orange-soft: #fff0e5;
    --shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    --radius: 8px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--teal-dark);
    text-decoration: none;
}

a:hover {
    color: var(--orange-dark);
}

a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(8, 182, 166, 0.45);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 16px;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: 0;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
}

h2 {
    font-size: 2.35rem;
    font-weight: 760;
}

h3 {
    font-size: 1.38rem;
    font-weight: 740;
}

h4 {
    font-size: 1rem;
    font-weight: 760;
}

p {
    margin: 0 0 16px;
    color: var(--muted);
}

ul,
ol {
    margin: 0;
    padding: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 4px;
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.top-strip {
    background: var(--navy);
    color: #bed3df;
    font-size: 0.82rem;
}

.top-strip .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.top-strip a {
    color: #e7f8f6;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 900;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background:
        linear-gradient(135deg, var(--teal) 0 48%, transparent 48%),
        linear-gradient(315deg, var(--orange) 0 34%, var(--navy) 34%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-name {
    color: var(--navy);
    font-size: 1.38rem;
    line-height: 1;
}

.brand-label {
    color: var(--teal-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.primary-nav a {
    position: relative;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    transform: scaleX(1);
}

.primary-nav a.active {
    color: var(--navy);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-dark);
    color: var(--white);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.48);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.btn-dark {
    background: var(--navy);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--navy-2);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
}

.btn-light:hover {
    color: var(--navy);
}

.btn-disabled {
    background: #e7edf1;
    color: #708194;
    cursor: default;
    pointer-events: none;
}

.section {
    padding: 88px 0;
}

main section[id],
.hero[id] {
    scroll-margin-top: 96px;
}

.section-soft {
    background: var(--soft-2);
}

.section-navy {
    background: var(--navy);
    color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
    color: var(--white);
}

.section-navy p,
.section-navy li {
    color: #bed3df;
}

.section-navy .card,
.section-navy .feature-panel {
    background: var(--white);
    color: var(--ink);
}

.section-navy .card h3,
.section-navy .card h4,
.section-navy .feature-panel h3,
.section-navy .feature-panel h4 {
    color: var(--ink);
}

.section-navy .card p,
.section-navy .card li,
.section-navy .feature-panel p,
.section-navy .feature-panel li {
    color: #334155;
}

.section-head {
    max-width: 780px;
    margin-bottom: 42px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--teal-dark);
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--orange);
}

.center .eyebrow::before,
.hero .eyebrow::before,
.page-hero .eyebrow::before {
    display: none;
}

.lead {
    font-size: 1.14rem;
    color: #425469;
}

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 29, 52, 0.95) 0%, rgba(7, 29, 52, 0.86) 42%, rgba(7, 29, 52, 0.42) 74%, rgba(7, 29, 52, 0.20) 100%),
        url("assets/media/sapaco-industrial-hero.jpg") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
}

.hero-inner {
    position: relative;
    width: 100%;
    padding: 86px 0 96px;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    margin-bottom: 14px;
    color: var(--white);
}

.hero-kicker {
    display: block;
    margin-bottom: 22px;
    color: #e8f6f4;
    font-size: 1.35rem;
    font-weight: 760;
}

.hero p {
    max-width: 660px;
    color: #d8e8ef;
    font-size: 1.15rem;
}

.hero-actions,
.cta-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 920px;
    margin-top: 56px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius);
    overflow: hidden;
}

.proof-item {
    padding: 20px;
    background: rgba(7, 29, 52, 0.56);
}

.proof-value {
    display: block;
    margin-bottom: 4px;
    color: var(--teal);
    font-size: 1.65rem;
    font-weight: 900;
}

.proof-label {
    display: block;
    color: #d6e5ec;
    font-size: 0.82rem;
    font-weight: 700;
}

.client-strip {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.client-strip .container {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 18px;
    align-items: center;
}

.client-strip p {
    margin: 0;
    color: #6b7a8b;
    font-size: 0.9rem;
    font-weight: 760;
}

.client-strip strong {
    color: var(--navy);
    font-size: 0.9rem;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 26px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.card:hover {
    border-color: #b7ccd6;
}

.card-topline {
    border-top: 4px solid var(--teal);
}

.card-topline.orange {
    border-top-color: var(--orange);
}

.card-topline.navy {
    border-top-color: var(--navy);
}

.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-weight: 900;
}

.card ul,
.check-list {
    list-style: none;
}

.card li,
.check-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 9px;
    color: #334155;
}

.card li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: start;
}

.feature-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft-2);
    padding: 30px;
}

.feature-panel h3 {
    margin-bottom: 20px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.metric {
    padding: 18px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--line);
}

.metric strong {
    display: block;
    color: var(--navy);
    font-size: 1.28rem;
}

.metric span {
    color: var(--muted);
    font-size: 0.82rem;
}

.page-hero {
    background: linear-gradient(115deg, var(--navy), var(--navy-2));
    color: var(--white);
    padding: 78px 0;
}

.page-hero h1 {
    max-width: 880px;
    color: var(--white);
    font-size: 3rem;
}

.page-hero p {
    max-width: 760px;
    color: #d5e4eb;
    font-size: 1.08rem;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: #adc4d0;
    font-size: 0.85rem;
    font-weight: 700;
}

.breadcrumbs a {
    color: #e7f8f6;
}

.tag-row,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag,
.filter-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: #425469;
    font-size: 0.78rem;
    font-weight: 800;
}

.tag.dark {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #d8e8ef;
}

.filter-bar {
    margin-bottom: 28px;
}

.filter-btn {
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.case-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.case-card .tag-row {
    margin-bottom: 18px;
}

.case-card h3 {
    font-size: 1.24rem;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: auto 0 22px;
    padding-top: 18px;
}

.case-meta span {
    padding: 12px;
    border-radius: 6px;
    background: var(--soft-2);
    color: #43566a;
    font-size: 0.82rem;
    font-weight: 740;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.detail-article {
    max-width: 820px;
}

.detail-article section {
    margin-bottom: 34px;
}

.detail-article h2 {
    font-size: 1.8rem;
}

.quote-box {
    border-left: 4px solid var(--orange);
    padding: 20px 24px;
    background: var(--orange-soft);
    border-radius: 0 8px 8px 0;
    color: #7c2d12;
    font-weight: 720;
}

.side-note {
    position: sticky;
    top: 100px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft-2);
    padding: 24px;
}

.resource-card {
    display: grid;
    gap: 16px;
}

.resource-type {
    color: var(--orange-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: #5c6b7b;
    font-size: 0.78rem;
    font-weight: 800;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.team-card {
    overflow: hidden;
    padding: 0;
}

.portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background: var(--soft);
}

.portrait-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(135deg, rgba(8, 182, 166, 0.16), rgba(249, 115, 22, 0.12)),
        var(--soft);
    color: var(--navy);
    font-size: 3rem;
    font-weight: 900;
}

.team-body {
    padding: 22px;
}

.role {
    display: block;
    margin-bottom: 12px;
    color: var(--teal-dark);
    font-size: 0.84rem;
    font-weight: 900;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 32px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 18px;
}

.contact-list h3 {
    margin-bottom: 4px;
}

.contact-list p {
    margin-bottom: 0;
}

.form {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd8e0;
    border-radius: 6px;
    background: var(--white);
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 138px;
    resize: vertical;
}

.consent-field {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
}

.consent-field input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--teal-dark);
}

.consent-field label {
    color: var(--muted);
    font-weight: 600;
}

.error-msg {
    display: none;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 700;
}

.feedback {
    display: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 760;
}

.feedback.success {
    display: block;
    background: var(--teal-soft);
    color: #075f58;
}

.feedback.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 8px;
}

.legal-nav a {
    padding: 10px 12px;
    border-left: 3px solid var(--line);
    color: #425469;
    font-weight: 740;
}

.legal-nav a:hover {
    border-color: var(--teal);
    color: var(--navy);
}

.legal-copy {
    max-width: 860px;
}

.legal-copy section {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.legal-copy section:last-child {
    border-bottom: 0;
}

.legal-copy h2 {
    font-size: 1.8rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    background: var(--white);
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    width: 34%;
    background: var(--soft-2);
    color: var(--navy);
}

.cta-band {
    background: var(--navy);
    color: var(--white);
    padding: 54px 0;
}

.cta-band .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.cta-band h2 {
    color: var(--white);
    font-size: 2rem;
}

.cta-band p {
    color: #d5e4eb;
    margin-bottom: 0;
}

.site-footer {
    background: #061426;
    color: #aec5d4;
    padding: 58px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 34px;
    margin-bottom: 36px;
}

.footer-grid h3,
.footer-grid h4 {
    color: var(--white);
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 8px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #aec5d4;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--teal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.cookie-banner {
    position: fixed;
    top: 132px;
    right: 20px;
    bottom: auto;
    left: auto;
    z-index: 3000;
    width: min(460px, calc(100% - 40px));
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #061426;
    color: #d5e4eb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    display: none;
}

.cookie-banner p {
    color: #d5e4eb;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .primary-nav {
        position: absolute;
        inset: 76px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 14px 20px 22px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav a {
        width: 100%;
        padding: 12px 0;
    }

    .primary-nav a::after {
        display: none;
    }

    .team-grid,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .contact-grid,
    .detail-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .side-note,
    .legal-nav {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .top-strip .container,
    .client-strip .container,
    .cta-band .container,
    .footer-bottom {
        flex-direction: column;
        display: flex;
        align-items: flex-start;
    }

    .site-header {
        position: sticky;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.16rem;
    }

    .brand-label {
        font-size: 0.58rem;
    }

    .nav-actions .btn {
        display: none;
    }

    h1,
    .page-hero h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 1.95rem;
    }

    .hero {
        min-height: 0;
        background-position: 64% center;
    }

    .hero-inner {
        padding: 68px 0 78px;
    }

    .hero-kicker,
    .hero p,
    .page-hero p {
        font-size: 1rem;
    }

    .hero-proof,
    .metric-row,
    .grid-2,
    .grid-3,
    .grid-4,
    .team-grid,
    .case-meta,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .page-hero {
        padding: 56px 0;
    }

    .card,
    .form,
    .feature-panel {
        padding: 22px;
    }
}

/* One-page SAPACO refresh */
.site-header {
    position: sticky;
}

.hero {
    min-height: 720px;
    background:
        linear-gradient(180deg, rgba(7, 29, 52, 0.82), rgba(7, 29, 52, 0.78)),
        radial-gradient(circle at center, rgba(8, 182, 166, 0.18), transparent 52%),
        url("assets/media/sapaco-industrial-hero.jpg") center / cover no-repeat;
}

.container.hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4.6rem;
}

.hero p {
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    justify-content: center;
}

.hero-proof {
    margin-left: auto;
    margin-right: auto;
}

.audience-band {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.audience-band .container {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.audience-band p {
    margin: 0;
    color: #6b7a8b;
    font-weight: 800;
}

.audience-band strong {
    display: block;
    color: var(--navy);
}

.solutions-section {
    background:
        linear-gradient(90deg, rgba(8, 182, 166, 0.07) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, var(--soft-2), var(--white));
    background-size: 52px 52px, auto;
}

.pillar-matrix {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.pillar-cell {
    min-height: 420px;
    padding: 32px 28px;
    border-left: 1px solid var(--line);
    background: var(--white);
}

.pillar-cell:first-child {
    border-left: 0;
}

.pillar-cell.geoscience {
    background: linear-gradient(180deg, var(--teal-soft), var(--white) 58%);
}

.pillar-cell.software {
    background: linear-gradient(180deg, var(--orange-soft), var(--white) 58%);
}

.pillar-cell.cloud {
    background: linear-gradient(180deg, #eaf1f8, var(--white) 58%);
}

.pillar-cell.ai {
    background: linear-gradient(180deg, #e5f8fb, var(--white) 58%);
}

.pillar-cell ul {
    list-style: none;
    margin-top: 20px;
}

.pillar-cell li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
    color: #334155;
    font-weight: 650;
}

.pillar-cell li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.services-section {
    background: #f6f9fb;
}

.services-section .section-head {
    max-width: 680px;
}

.service-lanes {
    display: grid;
    gap: 18px;
    margin-left: clamp(0px, 16vw, 210px);
}

.service-lanes article {
    display: grid;
    grid-template-columns: 120px minmax(0, 0.55fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.service-lanes article:last-child {
    border-bottom: 1px solid var(--line);
}

.service-lanes span {
    width: fit-content;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
}

.service-lanes p {
    margin: 0;
}

.ai-section {
    background:
        linear-gradient(135deg, rgba(8, 182, 166, 0.10), transparent 42%),
        var(--navy);
    color: var(--white);
}

.ai-section h2,
.ai-section h3 {
    color: var(--white);
}

.ai-section p {
    color: #d5e4eb;
}

.ai-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 48px;
    align-items: center;
}

.signal-board {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.signal-board div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 6px 18px;
    padding: 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.signal-board span {
    grid-row: span 2;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-board strong {
    color: var(--white);
    font-size: 1.18rem;
}

.signal-board em {
    color: #bed3df;
    font-style: normal;
}

.work-section {
    background: var(--white);
}

.case-mosaic {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
        "primary second"
        "primary third"
        "fourth fourth";
    gap: 20px;
}

.case-tile {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft-2);
}

.case-tile.primary {
    grid-area: primary;
    background: var(--teal-soft);
}

.case-tile:nth-child(2) {
    grid-area: second;
}

.case-tile:nth-child(3) {
    grid-area: third;
    background: var(--orange-soft);
}

.case-tile.dark {
    grid-area: fourth;
    background: var(--navy);
}

.case-tile.dark h3,
.case-tile.dark p {
    color: var(--white);
}

.case-tile span {
    display: block;
    margin-bottom: 14px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-tile.dark span {
    color: var(--teal);
}

.resources-section {
    background: #eef4f7;
}

.resource-header {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 34px;
}

.resource-shelf {
    display: grid;
    grid-template-columns: repeat(6, minmax(220px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.resource-shelf article {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
}

.resource-shelf span {
    color: var(--orange-dark);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-section {
    background: var(--white);
}

.team-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
    align-items: stretch;
}

.team-feature,
.team-stack article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.team-feature img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    object-position: center top;
}

.team-feature > div {
    padding: 28px;
}

.team-stack {
    display: grid;
    gap: 18px;
}

.team-stack article {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    align-items: stretch;
}

.team-stack img,
.team-stack .portrait-placeholder {
    width: 100%;
    height: 100%;
    min-height: 178px;
    object-fit: cover;
    object-position: center top;
}

.team-stack article > div:last-child {
    padding: 22px;
}

.team-stack h3,
.team-feature h3 {
    margin-bottom: 8px;
}

.contact-section {
    background: linear-gradient(180deg, var(--soft-2), var(--white));
}

.contact-card {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.contact-card h3 {
    margin-bottom: 4px;
    font-size: 1.04rem;
}

.contact-card p {
    margin: 0;
}

@media (max-width: 1100px) {
    .nav-shell {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0 8px;
    }

    .primary-nav,
    .primary-nav.open {
        position: static;
        inset: auto;
        order: 3;
        display: flex;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        padding: 6px 0 10px;
        border: 0;
        background: transparent;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .primary-nav a {
        width: auto;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--soft-2);
        font-size: 0.78rem;
    }

    .primary-nav a.active {
        border-color: var(--teal);
        background: var(--teal-soft);
    }

    .primary-nav a::after {
        display: none;
    }

    .pillar-matrix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pillar-cell {
        border-left: 0;
        border-top: 1px solid var(--line);
        min-height: 330px;
    }

    .pillar-cell:nth-child(-n + 2) {
        border-top: 0;
    }

    .pillar-cell:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .service-lanes {
        margin-left: 0;
    }

    .service-lanes article,
    .ai-layout,
    .resource-header,
    .team-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .top-strip {
        display: none;
    }

    .site-header {
        top: 0;
    }

    main section[id],
    .hero[id] {
        scroll-margin-top: 132px;
    }

    .nav-actions .btn {
        display: inline-flex;
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0.78rem;
    }

    .hero {
        min-height: 680px;
        background-position: 60% center;
    }

    .container.hero-inner {
        width: min(100% - 28px, 1180px);
    }

    .hero h1 {
        font-size: 3.15rem;
    }

    .hero-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof-item {
        padding: 16px;
    }

    .audience-band .container,
    .footer-grid,
    .pillar-matrix,
    .case-mosaic {
        grid-template-columns: 1fr;
    }

    .pillar-cell,
    .pillar-cell:nth-child(even),
    .pillar-cell:nth-child(-n + 2) {
        border-left: 0;
        border-top: 1px solid var(--line);
        min-height: auto;
    }

    .pillar-cell:first-child {
        border-top: 0;
    }

    .service-lanes article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .signal-board div {
        grid-template-columns: 1fr;
    }

    .case-mosaic {
        grid-template-areas: none;
    }

    .case-tile.primary,
    .case-tile:nth-child(2),
    .case-tile:nth-child(3),
    .case-tile.dark {
        grid-area: auto;
    }

    .team-stack article {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .team-stack img,
    .team-stack .portrait-placeholder {
        min-height: 168px;
    }

    .cookie-banner {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        padding: 14px;
    }

    .cookie-banner p {
        margin-bottom: 10px;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 0;
    }

    .cookie-actions .btn {
        min-height: 38px;
        padding: 9px 7px;
        font-size: 0.72rem;
        line-height: 1.12;
        text-align: center;
    }
}
