:root {
    --primary: #0b4fd1;
    --primary-dark: #062a8a;
    --cyan: #2cc6f5;
    --grad: linear-gradient(250deg, #2cc6f5 0%, #0b4fd1 55%, #062a8a 100%);
    --grad-hover: linear-gradient(250deg, #0b4fd1 0%, #062a8a 100%);
    --navy: #0a1633;
    --navy-2: #101f45;
    --ink: #101828;
    --text: #454f5e;
    --gray: #f1f5fc;
    --white: #ffffff;
    --line: #e3e8f2;
    --danger: #c0262d;
    --success: #0f7a3e;
    --radius: 10px;
    --shadow: 0 14px 40px rgba(10, 22, 51, 0.09);
    --shadow-hover: 0 22px 50px rgba(10, 22, 51, 0.16);
    --head: "Livvic", "Segoe UI", sans-serif;
    --body: "Roboto", "Segoe UI", sans-serif;
    --nav-h: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
    font-family: var(--head);
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 700;
}

h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.center { text-align: center; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    background: var(--primary); color: var(--white); padding: .5rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 14px 32px;
    border: 0;
    border-radius: 30px;
    font-family: var(--head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .3s, color .3s, box-shadow .3s, transform .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.btn-primary, .btn-accent {
    color: var(--white);
    background: var(--grad);
    background-size: 160% 100%;
    background-position: 100% 0;
    box-shadow: 0 10px 24px rgba(11, 79, 209, .28);
}
.btn-primary:hover, .btn-accent:hover {
    color: var(--white);
    background-position: 0 0;
}

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

.btn-outline, .btn-ghost {
    color: var(--primary);
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--primary);
}
.btn-outline:hover, .btn-ghost:hover { color: var(--white); background: var(--primary); }

.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .8);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
}
.brand img, .header-brand img, .footer-logo {
    /* The logo PNG has wide transparent margins; crop to the artwork. */
    aspect-ratio: 2.3;
    object-fit: cover;
    object-position: 50% 58%;
}
.brand img { height: 90px; width: auto; }

.topbar-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 36px;
}
.topbar-info li { display: flex; align-items: center; gap: 12px; }
.topbar-info span:not(.info-icon) {
    display: block;
    font-family: var(--head);
    font-weight: 600;
    color: var(--white);
    font-size: .95rem;
    line-height: 1.3;
}
.topbar-info a, .topbar-info strong {
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    font-weight: 400;
}
.topbar-info a:hover { color: var(--cyan); }

.info-icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--cyan);
    background: rgba(44, 198, 245, .12);
}
.info-icon svg { width: 20px; height: 20px; }

/* ---------- Main nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--grad);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(6, 42, 138, .3); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--nav-h);
}

.header-brand {
    display: none;
    flex: none;
}
.header-brand img { height: 64px; width: auto; padding-top: 8px; }
.site-header.is-scrolled .header-brand { display: block; }

.site-nav { flex: 1; }
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.site-nav a {
    display: block;
    padding: 20px 14px;
    color: var(--white);
    font-family: var(--head);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-side { display: flex; align-items: center; gap: 20px; }
.header-social, .footer-social {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 8px;
}
.header-social a {
    display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, .14);
}
.header-social a:hover { background: var(--white); color: var(--primary); }
.header-social svg, .footer-social svg { width: 15px; height: 15px; }
.header-cta { padding: 11px 24px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 0; border-radius: 6px;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    padding: 12px 10px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(6, 20, 60, .94) 0%, rgba(6, 30, 100, .78) 50%, rgba(11, 79, 209, .35) 100%),
        url("../img/slide4.jpg") center / cover no-repeat;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .85fr;
    gap: 60px;
    align-items: center;
}
.hero-kicker {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(44, 198, 245, .18);
    color: var(--cyan);
    font-family: var(--head);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 22px;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 20px;
}
.hero .lede {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
    margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }

.hero-play {
    display: inline-flex; align-items: center; gap: 14px;
    color: var(--white); font-family: var(--head); font-weight: 600;
}
.hero-play:hover { color: var(--cyan); }
.hero-play-icon {
    position: relative;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--white); color: var(--primary);
}
.hero-play-icon::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .6);
    animation: pulse 2s ease-out infinite;
}
.hero-play-icon svg { width: 22px; height: 22px; margin-left: 3px; }

@keyframes pulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.7); opacity: 0; }
}

.hero-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
    color: var(--text);
}
.hero-form h2 { font-size: 1.45rem; margin-bottom: 6px; }
.hero-form p { font-size: .95rem; margin-bottom: 20px; }
.hero-form input, .hero-form select { margin-bottom: 14px; }

/* ---------- Forms ---------- */
input, select, textarea {
    width: 100%;
    font: inherit;
    font-size: .98rem;
    color: var(--ink);
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f6f8fc;
    transition: border-color .25s, background .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(11, 79, 209, .12);
}
textarea { resize: vertical; min-height: 140px; }
[aria-invalid="true"] { border-color: var(--danger); }

label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-row { margin-bottom: 18px; }
.field-error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; }
.form-status { padding: 12px 16px; border-radius: 6px; background: var(--gray); font-size: .95rem; }
.form-status-error { background: #fdecec; color: var(--danger); }
.form-status-success { background: #e6f6ec; color: var(--success); }
.form-hint { font-size: .9rem; margin-bottom: 8px; }
.recaptcha-row { overflow-x: auto; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-gray { background: var(--gray); }

.section-title { max-width: 680px; margin-bottom: 56px; }
.section-title.center { margin-left: auto; margin-right: auto; }

.sub-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}
.sub-title::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--grad);
}
.sub-title.light { color: var(--cyan); }
.sub-title.light::before { background: var(--cyan); }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-media { position: relative; padding: 0 30px 50px 0; }
.about-img-main {
    /* Transparent cut-out artwork: show it whole, no crop or rounding. */
    width: 100%; height: auto;
}
.about-img-sub {
    position: absolute; right: 0; bottom: 0;
    width: 40%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius);
    border: 8px solid var(--white);
    box-shadow: var(--shadow);
}
.about-badge {
    position: absolute; left: -16px; bottom: 30px;
    display: flex; align-items: center; gap: 12px;
    padding: 18px 24px;
    border-radius: var(--radius);
    background: var(--grad);
    color: var(--white);
    box-shadow: var(--shadow);
}
.about-badge strong { font-family: var(--head); font-size: 2.6rem; line-height: 1; }
.about-badge span { font-family: var(--head); font-weight: 600; line-height: 1.3; }
.about-lead { font-size: 1.12rem; color: var(--ink); font-weight: 500; }

.check-list {
    list-style: none; margin: 24px 0 34px; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.check-list li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--grad);
}
.check-list li::after {
    content: "";
    position: absolute; left: 7px; top: 7px;
    width: 5px; height: 9px;
    border: solid var(--white); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    position: relative;
    padding: 44px 34px 38px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}
.service-card::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity .35s;
}
.service-card > * { position: relative; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { opacity: 1; }
.service-card:hover h3, .service-card:hover p, .service-card:hover .service-more { color: var(--white); }
.service-card:hover .service-icon { background: var(--white); color: var(--primary); }

.service-icon {
    display: grid; place-items: center;
    width: 72px; height: 72px; margin-bottom: 26px;
    border-radius: 50%;
    color: var(--white);
    background: var(--grad);
    transition: background .35s, color .35s;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3, .service-card p { transition: color .35s; }
.service-more {
    font-family: var(--head); font-weight: 600; color: var(--primary);
    display: inline-flex; align-items: center; gap: 6px;
}
.service-more::after { content: "→"; transition: transform .3s; }
.service-more:hover::after { transform: translateX(4px); }

/* ---------- Call band ---------- */
.call-band {
    background:
        radial-gradient(circle at 85% 20%, rgba(44, 198, 245, .25), transparent 45%),
        linear-gradient(120deg, var(--navy) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, .82);
    padding: 100px 0 0;
}
.call-band h2 { color: var(--white); }
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.call-grid > div { padding-bottom: 100px; }
.call-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; }
.call-phone {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: var(--white);
}
.call-phone:hover { color: var(--cyan); }
.call-media { margin: 0; }
.call-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
.call-band-simple { padding: 90px 0; }
.narrow-cta { max-width: 720px; text-align: center; }
.narrow-cta p { margin-bottom: 28px; }

/* ---------- Counters ---------- */
.counters { position: relative; margin-top: -1px; padding: 0 0 20px; background: linear-gradient(var(--primary-dark) 50%, var(--white) 50%); }
.counter-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 16px;
}
.counter { text-align: center; padding: 0 12px; border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter strong, .counter-suffix {
    font-family: var(--head); font-size: 3rem; line-height: 1; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter p { margin: 10px 0 0; font-family: var(--head); font-weight: 600; color: var(--ink); }

/* ---------- Process ---------- */
.process-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    counter-reset: none;
}
.process-grid li {
    position: relative;
    text-align: center;
    padding: 40px 26px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: border-color .3s, box-shadow .3s;
}
.process-grid li:hover { border-color: transparent; box-shadow: var(--shadow); }
.process-num {
    display: inline-grid; place-items: center;
    width: 78px; height: 78px; margin-bottom: 22px;
    border-radius: 50%;
    font-family: var(--head); font-size: 1.6rem; font-weight: 700;
    color: var(--primary);
    background: var(--gray);
    box-shadow: inset 0 0 0 2px rgba(11, 79, 209, .15);
    transition: background .3s, color .3s;
}
.process-grid li:hover .process-num { background: var(--grad); color: var(--white); }
.process-grid p { margin: 0; }

/* ---------- Projects ---------- */
.projects { background: var(--navy); }
.projects h2 { color: var(--white); }
.project-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-bottom: 50px;
}
.project-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 3.6;
}
.project-card img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    transition: transform .6s;
}
.project-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, rgba(6, 20, 60, .92));
}
.project-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    padding: 24px;
    transition: transform .4s;
}
.project-body span { color: var(--cyan); font-weight: 500; font-size: .9rem; }
.project-body h3 { color: var(--white); margin: 4px 0 0; }
.project-card:hover img { transform: scale(1.08); }
.project-card:hover .project-body { transform: translateY(-8px); }

/* ---------- Testimonial ---------- */
.testimonial-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 60px 44px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.quote-mark {
    position: absolute; top: -28px; left: 60px;
    width: 64px; height: 64px; padding: 14px;
    border-radius: 50%; color: var(--white); background: var(--grad);
}
.testimonial-card blockquote { margin: 0 0 28px; }
.testimonial-card blockquote p { font-size: 1.15rem; font-style: italic; color: var(--ink); margin: 0; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 16px; }
.testimonial-card figcaption img {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--cyan);
}
.testimonial-card strong { display: block; font-family: var(--head); color: var(--ink); font-size: 1.1rem; }
.testimonial-card figcaption span { font-size: .92rem; }

/* ---------- CTA cards ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cta-card {
    padding: 50px 44px;
    border-radius: var(--radius);
    background: var(--gray);
}
.cta-card-dark { background: var(--grad); color: rgba(255, 255, 255, .88); }
.cta-card-dark h3 { color: var(--white); }
.cta-card h3 { font-size: 1.7rem; }
.cta-card p { margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .info-icon { width: 56px; height: 56px; color: var(--white); background: var(--grad); }
.contact-list span:not(.info-icon) { display: block; font-size: .9rem; }
.contact-list a, .contact-list strong { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.contact-list a:hover { color: var(--primary); }
.contact-note { font-size: .92rem; }
.contact-form {
    background: var(--white);
    padding: 44px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding: 100px 0;
    text-align: center;
    background:
        linear-gradient(120deg, rgba(10, 22, 51, .92), rgba(11, 79, 209, .8)),
        url("../img/pexels-photo-416346.jpeg") center / cover no-repeat;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.breadcrumb { margin: 0; color: rgba(255, 255, 255, .8); font-family: var(--head); font-weight: 600; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { margin: 0 8px; }
.page-hero .eyebrow { color: var(--cyan); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.page-hero .lede { color: rgba(255, 255, 255, .85); }

/* ---------- Work page ---------- */
.page-hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(44, 198, 245, .18);
    color: var(--cyan);
    font-family: var(--head);
    font-weight: 600;
    font-size: .9rem;
}
.work-stats { position: relative; margin-top: -60px; z-index: 2; }

.work-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin: -20px 0 50px;
}
.work-filter {
    padding: 10px 24px;
    border: 0; border-radius: 30px;
    font-family: var(--head); font-weight: 600; font-size: .95rem;
    color: var(--ink); background: var(--gray);
    cursor: pointer;
    transition: color .3s, background .3s, box-shadow .3s;
}
.work-filter:hover { color: var(--primary); }
.work-filter.is-active {
    color: var(--white);
    background: var(--grad);
    box-shadow: 0 10px 24px rgba(11, 79, 209, .25);
}

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.work-item {
    display: flex; flex-direction: column;
    border-radius: var(--radius); overflow: hidden;
    background: var(--white); box-shadow: var(--shadow);
    transition: transform .35s, box-shadow .35s;
}
.work-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.work-item[hidden] { display: none; }

.work-media { position: relative; overflow: hidden; }
.work-media img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
    transition: transform .6s;
}
.work-item:hover .work-media img { transform: scale(1.06); }
.work-badge {
    position: absolute; top: 18px; left: 18px; z-index: 1;
    padding: 5px 14px; border-radius: 30px;
    font-family: var(--head); font-weight: 600; font-size: .85rem;
    color: var(--white); background: var(--grad);
}
.work-overlay {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(6, 20, 60, .72);
    opacity: 0;
    transition: opacity .35s;
}
.work-item:hover .work-overlay, .work-overlay:focus-visible { opacity: 1; }
.work-overlay-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 30px;
    font-family: var(--head); font-weight: 600;
    color: var(--primary); background: var(--white);
    transform: translateY(14px);
    transition: transform .35s;
}
.work-overlay-btn svg { width: 16px; height: 16px; }
.work-item:hover .work-overlay-btn, .work-overlay:focus-visible .work-overlay-btn { transform: none; }

.work-body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.work-body h3 { margin: 0 0 2px; }
.work-domain { color: var(--primary); font-weight: 500; font-size: .92rem; margin-bottom: 12px; }
.work-body p { color: var(--text); }
.work-tags {
    list-style: none; margin: 4px 0 22px; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.work-tags li {
    padding: 4px 12px; border-radius: 6px;
    font-size: .85rem; font-weight: 500;
    color: var(--primary); background: rgba(11, 79, 209, .08);
}
.work-body .service-more { margin-top: auto; }

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn-outline-light { color: var(--white); background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn-outline-light:hover { color: var(--primary); background: var(--white); }

/* ---------- Login ---------- */
.login-page { background: var(--gray); }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.login-intro .eyebrow { color: var(--primary); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.login-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.login-card {
    background: var(--white); padding: 44px 40px;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.remember { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 400; }
.remember input { width: auto; }
.login-help { margin: 18px 0 0; text-align: center; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 85% 30%, rgba(44, 198, 245, .16), transparent 42%),
        radial-gradient(circle at 10% 100%, rgba(11, 79, 209, .35), transparent 45%),
        var(--navy);
    color: rgba(255, 255, 255, .7);
    padding-top: 90px;
}
/* Line-drawn globe on the right. */
.site-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -120px;
    top: 50%;
    width: 640px;
    height: 640px;
    transform: translateY(-50%);
    background: url("../img/footer-globe.svg") center / contain no-repeat;
    opacity: .14;
    pointer-events: none;
}
/* Dot grid in the top-left corner. */
.site-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 24px;
    top: 30px;
    width: 220px;
    height: 160px;
    background-image: radial-gradient(rgba(44, 198, 245, .35) 1.5px, transparent 1.6px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(135deg, #000 30%, transparent 85%);
    mask-image: linear-gradient(135deg, #000 30%, transparent 85%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 70px;
}
.footer-logo { height: 80px; width: auto; margin: 0 0 18px; }
.footer-social { margin-top: 22px; }
.footer-social a {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, .08);
}
.footer-social a:hover { background: var(--grad); color: var(--white); }
.footer-heading {
    position: relative;
    color: var(--white);
    font-size: 1.25rem;
    padding-bottom: 14px;
    margin-bottom: 24px;
}
.footer-heading::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; border-radius: 2px; background: var(--grad);
}
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-links a::before { content: "›"; margin-right: 8px; color: var(--cyan); }
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-contact span { display: block; color: var(--white); font-family: var(--head); font-weight: 600; }
.footer-contact a { color: rgba(255, 255, 255, .7); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-base-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: .95rem;
}
.footer-base p { margin: 0; }
.footer-base ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.footer-base a { color: rgba(255, 255, 255, .7); }
.footer-base a:hover { color: var(--cyan); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 60;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--white); background: var(--grad);
    box-shadow: 0 10px 24px rgba(11, 79, 209, .35);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--white); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal (driven by js/site.js) ---------- */
.js-anim .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: var(--reveal-delay, 0s);
}
.js-anim .reveal-left { transform: translateX(-40px); }
.js-anim .reveal-right { transform: translateX(40px); }
.js-anim .reveal-scale { transform: translateY(24px) scale(.96); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .topbar-info li:first-child { display: none; }
    .header-social { display: none; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .section { padding: 80px 0; }
    .topbar { display: none; }
    .header-brand { display: block; }
    .nav-toggle { display: flex; }
    .header-side { display: none; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--navy);
        max-height: 0; overflow: hidden;
        transition: max-height .35s ease;
    }
    .site-nav.is-open { max-height: 480px; box-shadow: 0 16px 30px rgba(0, 0, 0, .25); }
    .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
    .site-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .site-nav a::after { display: none; }
    .site-nav a[aria-current="page"] { color: var(--cyan); }

    .hero { padding: 80px 0; }
    .hero-grid, .about-grid, .call-grid, .contact-grid, .login-layout, .cta-grid { grid-template-columns: 1fr; gap: 44px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .counter-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
    .counter:nth-child(2) { border-right: 0; }
    .work-stats { margin-top: -40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .call-grid > div { padding-bottom: 0; }
}

@media (max-width: 600px) {
    .service-grid, .process-grid, .project-grid, .work-grid, .footer-grid, .check-list, .form-grid { grid-template-columns: 1fr; }
    .counter-grid { grid-template-columns: 1fr 1fr; padding: 30px 8px; row-gap: 26px; }
    .counter { border-right: 0; padding: 0 6px; }
    .counter strong, .counter-suffix { font-size: 2.3rem; }
    .counter p { font-size: .9rem; }
    .about-media { padding: 0 0 60px; }
    .about-img-sub { width: 45%; border-width: 5px; }
    .site-footer::before { width: 420px; height: 420px; right: -160px; top: 38%; }
    .about-badge { left: 0; bottom: 10px; padding: 14px 18px; }
    .about-badge strong { font-size: 2rem; }
    .hero-form, .contact-form, .login-card { padding: 30px 22px; }
    .testimonial-card { padding: 50px 24px 32px; }
    .quote-mark { left: 24px; }
    .cta-card { padding: 36px 26px; }
    .project-card { aspect-ratio: 4 / 3.4; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js-anim .reveal, .js-anim .reveal.is-visible { opacity: 1; transform: none; }
}

.testimonial-avatar {
    flex: none;
    width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--head); font-weight: 700; font-size: 1.3rem;
    color: var(--white); background: var(--grad);
}

.page-hero:has(+ .work-stats) { padding-bottom: 150px; }
