:root {
    --bg: #ffffff;
    --bg-subtle: #f5f7f8;
    --ink: #10161b;
    --ink-muted: #5b6670;
    --ink-faint: #8a939b;
    --accent: #00707f;
    --accent-dark: #00464f;
    --accent-soft: #e4f0f1;
    --line: #e3e7e9;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container { width: 90%; max-width: 1180px; margin: 0 auto; }

a { color: inherit; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 34px; width: auto; }
.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: #051D49;
}
.logo-sub {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
}
.logo-sub .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--ink-muted);
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff !important;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dark); }

/* (mobile nav rules live in the 'Navigation' section at the end of this file) */

/* ---------- Buttons ---------- */
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s ease;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
}
.btn:hover { border-color: var(--ink-faint); }
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 200px 0 140px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 30%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0) 80%);
    z-index: 1;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}
.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 3.1rem;
    line-height: 1.12;
    margin-bottom: 22px;
    max-width: 15ch;
}
.hero p {
    max-width: 46ch;
    color: var(--ink-muted);
    font-size: 1.08rem;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* slight zoom crops out any black letterbox bars baked into the video file */
    transform: scale(1.12);
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero { padding: 150px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.3rem; max-width: none; }
    .hero::before {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.35) 100%);
    }
}

/* ---------- Sections ---------- */
section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-header {
    font-size: 2rem;
    margin-bottom: 16px;
    max-width: 20ch;
}
.section-lede {
    color: var(--ink-muted);
    max-width: 56ch;
    margin-bottom: 56px;
    font-size: 1.05rem;
}

/* ---------- Deliverables ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 32px; }
.portfolio-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
/* Updated to apply to videos inside the portfolio card as well */
.portfolio-card img, .portfolio-card video { 
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
    display: block; 
}
.portfolio-content { padding: 28px; }
.portfolio-content h3 { font-size: 1.15rem; margin-bottom: 10px; }
.portfolio-content p { color: var(--ink-muted); font-size: 0.96rem; margin-bottom: 18px; }
.metric-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ---------- Services ---------- */
.service-list { display: flex; flex-direction: column; }
.service-row {
    display: grid;
    grid-template-columns: 56px 1fr 2fr;
    gap: 24px;
    align-items: baseline;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}
.service-list .service-row:last-child { border-bottom: 1px solid var(--line); }
.service-id { font-family: var(--font-mono); color: var(--ink-faint); font-size: 0.95rem; }
.service-row h3 { font-size: 1.08rem; }
.service-row p { color: var(--ink-muted); font-size: 0.96rem; }

@media (max-width: 700px) {
    .service-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Advantage ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--bg-subtle); padding: 32px; border-radius: 10px; }
.card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.card p { color: var(--ink-muted); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 40px; background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 50px; }
.trust-grid h3 { font-size: 1.02rem; margin-bottom: 12px; }
.trust-grid p { color: var(--ink-muted); font-size: 0.95rem; }

/* Scrolling accreditation strip */
.logo-strip {
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 36px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
    display: flex;
    width: max-content;
    animation: logo-scroll 35s linear infinite;
}
.logo-strip:hover .logo-track { animation-play-state: paused; }
.logo-set {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 64px;
    padding-right: 64px; /* equals gap so the loop is seamless */
}
.logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}
.logo-item img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
}
.logo-text-label { font-size: 0.85rem; font-weight: 500; color: var(--ink-muted); }
@keyframes logo-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; }
    .logo-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.copyright {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--ink-faint);
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Navigation: mobile menu + active page ---------- */
.nav-links a.active {
    color: var(--ink);
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 6px 5% 22px;
        box-shadow: 0 14px 24px rgba(16, 22, 27, 0.08);
    }
    header.nav-open .nav-links { display: flex; }
    .nav-links a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
    .nav-links a.active { border-bottom: 1px solid var(--line); padding-bottom: 14px; box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
    .nav-links a.nav-cta { margin-top: 18px; padding: 13px 20px; text-align: center; border-bottom: none; }
}

/* ---------- Sub-page hero (with subtle network graphic) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 180px 0 80px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(100deg, #ffffff 40%, #eaf4f5 100%);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1562 1600%22%3E%3Cg stroke=%22%2380c5d1%22 stroke-width=%2216%22 stroke-linecap=%22round%22%3E%3Cline x1=%22278%22 y1=%2260%22 x2=%22497%22 y2=%22378%22/%3E%3Cline x1=%22278%22 y1=%2260%22 x2=%2260%22 y2=%221200%22/%3E%3Cline x1=%22497%22 y1=%22378%22 x2=%22932%22 y2=%22245%22/%3E%3Cline x1=%22932%22 y1=%22245%22 x2=%221303%22 y2=%22110%22/%3E%3Cline x1=%22932%22 y1=%22245%22 x2=%221200%22 y2=%22663%22/%3E%3Cline x1=%221303%22 y1=%22110%22 x2=%221200%22 y2=%22663%22/%3E%3Cline x1=%22497%22 y1=%22378%22 x2=%22411%22 y2=%22900%22/%3E%3Cline x1=%22411%22 y1=%22900%22 x2=%22798%22 y2=%221067%22/%3E%3Cline x1=%22411%22 y1=%22900%22 x2=%2260%22 y2=%221200%22/%3E%3Cline x1=%22798%22 y1=%221067%22 x2=%221200%22 y2=%22663%22/%3E%3Cline x1=%221200%22 y1=%22663%22 x2=%221503%22 y2=%22849%22/%3E%3Cline x1=%221503%22 y1=%22849%22 x2=%221420%22 y2=%221302%22/%3E%3Cline x1=%221420%22 y1=%221302%22 x2=%221034%22 y2=%221537%22/%3E%3Cline x1=%22798%22 y1=%221067%22 x2=%221034%22 y2=%221537%22/%3E%3C/g%3E%3Cg fill=%22%23ffffff%22 stroke=%22%2380c5d1%22 stroke-width=%2214%22%3E%3Ccircle cx=%22278%22 cy=%2260%22 r=%2241%22/%3E%3Ccircle cx=%22497%22 cy=%22378%22 r=%2241%22/%3E%3Ccircle cx=%22932%22 cy=%22245%22 r=%2258%22/%3E%3Ccircle cx=%221303%22 cy=%22110%22 r=%2241%22/%3E%3Ccircle cx=%221200%22 cy=%22663%22 r=%2258%22/%3E%3Ccircle cx=%221503%22 cy=%22849%22 r=%2241%22/%3E%3Ccircle cx=%22411%22 cy=%22900%22 r=%2241%22/%3E%3Ccircle cx=%22798%22 cy=%221067%22 r=%2241%22/%3E%3Ccircle cx=%2260%22 cy=%221200%22 r=%2241%22/%3E%3Ccircle cx=%221420%22 cy=%221302%22 r=%2241%22/%3E%3Ccircle cx=%221034%22 cy=%221537%22 r=%2241%22/%3E%3C/g%3E%3C/svg%3E") right 4% center / min(560px, 46%) auto no-repeat;
    opacity: 0.7;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.6rem; line-height: 1.14; margin-bottom: 18px; max-width: 20ch; }
.page-hero p { max-width: 54ch; color: var(--ink-muted); font-size: 1.06rem; }
.aside-note { margin-top: 18px; font-size: 0.92rem; }
.aside-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.aside-note a:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .page-hero { padding: 140px 0 60px; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero::before { opacity: 0.25; background-size: 90% auto; background-position: center right -10%; }
}

/* ---------- Case studies ---------- */
.case-card { border: 1px solid var(--line); border-radius: 12px; padding: 40px; margin-bottom: 32px; }
.case-sector { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }
.case-card h2 { font-size: 1.4rem; margin-bottom: 24px; max-width: 32ch; }
.case-block { margin-bottom: 20px; }
.case-block:last-child { margin-bottom: 0; }
.case-block h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.case-block p { color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- Installations ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; gap: 28px; } }
.feature ul { margin-top: 18px; padding-left: 0; list-style: none; }
.feature li { color: var(--ink-muted); padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.feature li:before { content: ''; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 8px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink); color: #fff; padding: 90px 0; text-align: center; }
.cta-band h2 { color: #fff; max-width: none; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 46ch; margin: 0 auto 30px; }
.cta-band .btn-group { justify-content: center; margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-side { display: grid; gap: 24px; }
.contact-card { background: var(--bg-subtle); border-radius: 12px; padding: 36px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p { color: var(--ink-muted); font-size: 0.96rem; margin-bottom: 20px; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 1.02rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-link .label { color: var(--ink-muted); font-weight: 500; font-size: 0.85rem; display: block; margin-bottom: 2px; }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 112, 127, 0.15);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { cursor: pointer; font-family: inherit; }
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent-dark); font-weight: 600; }
.form-status.err { color: #a33; font-weight: 600; }

