/* =========================================================
   BASE
========================================================= */

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

:root {
    --black: #050505;
    --black-2: #080808;
    --black-3: #0d0d0d;
    --card: #101010;

    --white: #ffffff;
    --text: #f3f3f3;
    --muted: #9d9d9d;
    --muted-2: #727272;

    --blue: #348cff;
    --blue-light: #6bb2ff;
    --blue-soft: rgba(52, 140, 255, .10);

    --border: rgba(255,255,255,.09);
    --border-blue: rgba(52,140,255,.28);

    --radius: 24px;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

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

.container {
    width: min(92%, var(--container));
    margin: auto;
}

section {
    padding: 110px 0;
}

.section-top {
    max-width: 800px;
    margin-bottom: 55px;
}

.label {
    color: var(--blue-light);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.7px;
    text-transform: uppercase;

    margin-bottom: 13px;
}

h1,
h2,
h3 {
    line-height: 1.05;
}

h2 {
    font-size: clamp(35px, 5vw, 59px);
    letter-spacing: -2.5px;
    font-weight: 650;
}

.section-description {
    color: var(--muted);
    font-size: 17px;
    margin-top: 20px;
    max-width: 760px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 49px;

    padding: 0 23px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 650;

    border: 1px solid transparent;

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

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

.btn-white {
    background: white;
    color: black;
}

.btn-white:hover {
    background: #e4e4e4;
}

.btn-dark {
    background: rgba(255,255,255,.04);
    border-color: var(--border);
}

.btn-dark:hover {
    background: rgba(255,255,255,.08);
}

.form-notice {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
}

.form-notice.success {
    color: #b8f5c7;
    background: rgba(55, 191, 94, .12);
    border: 1px solid rgba(55, 191, 94, .35);
}

.form-notice.error {
    color: #ffd1d1;
    background: rgba(220, 70, 70, .12);
    border: 1px solid rgba(220, 70, 70, .35);
}

.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;

    background: rgba(5,5,5,.72);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;
}

.logo {
    display: inline-flex;
    align-items: center;
    width: 132px;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;

    gap: 30px;

    font-size: 14px;
    color: #b5b5b5;
}

.nav-menu a {
    transition: color .2s ease;
}

.nav-menu a:hover {
    color: white;
}

.nav-dropdown {
    position: relative;
}

/* Mantiene el hover activo al mover el cursor hacia el menú desplegable. */
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -17px;
    width: 240px;
    height: 20px;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 10px;
    height: 7px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 19px);
    left: -17px;
    z-index: 1001;
    display: none;
    width: 240px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0c0c0c;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .3);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
}

.nav-dropdown.is-open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 13px;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,.06);
}

.mobile-button {
    width: 42px;
    height: 42px;

    display: none;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: rgba(255,255,255,.03);
    color: white;

    cursor: pointer;
}

.mobile-button svg {
    width: 20px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 150px;
    padding-bottom: 90px;

    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 850px;
    height: 850px;

    top: -320px;
    right: -260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(52,140,255,.18),
            rgba(52,140,255,.05) 38%,
            transparent 70%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.022) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.022) 1px,
            transparent 1px
        );

    background-size: 68px 68px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

    pointer-events: none;
}

.hero-content {
    max-width: 1080px;

    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 8px 14px;

    border-radius: 999px;

    border: 1px solid var(--border);

    background: rgba(255,255,255,.03);

    font-size: 13px;
    color: #b5b5b5;

    margin-bottom: 27px;
}

.hero-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--blue);

    box-shadow: 0 0 18px var(--blue);
}

.hero h1 {
    max-width: 1100px;

    font-size: clamp(53px, 7.5vw, 102px);

    letter-spacing: -5px;

    font-weight: 650;
}

.hero h1 span {
    color: #747474;
}

.hero-description {
    max-width: 790px;

    margin-top: 30px;

    color: var(--muted);

    font-size: clamp(17px, 2vw, 21px);
}

.hero-buttons {
    margin-top: 37px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.hero-services {
    margin-top: 60px;

    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.hero-services span {
    padding: 8px 13px;

    border-radius: 999px;

    border: 1px solid rgba(255,255,255,.07);

    color: #888;

    font-size: 12px;

    background: rgba(255,255,255,.025);
}


/* =========================================================
   ABOUT
========================================================= */

.about-grid {
    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 80px;

    align-items: center;
}

.about-number {
    font-size: clamp(100px, 18vw, 220px);

    line-height: .8;

    font-weight: 700;

    letter-spacing: -12px;

    color: #111;
}

.about-text {
    color: var(--muted);

    font-size: 17px;
}

.about-text + .about-text {
    margin-top: 18px;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 15px;
}

.service {
    padding: 30px;

    min-height: 285px;

    display: flex;
    flex-direction: column;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.service:hover {
    transform: translateY(-5px);

    background: #121212;

    border-color: var(--border-blue);
}

.service-icon {
    width: 49px;
    height: 49px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: var(--blue-light);

    background: var(--blue-soft);

    border: 1px solid rgba(52,140,255,.15);

    margin-bottom: auto;
}

.service-icon svg {
    width: 23px;
    height: 23px;
}

.service h3 {
    font-size: 20px;

    letter-spacing: -.5px;

    margin-top: 55px;
    margin-bottom: 10px;
}

.service p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   CERTIFICATIONS
========================================================= */

.certifications {
    background: var(--black-2);
}

.carousel-wrapper {
    position: relative;
}

.carousel {
    display: flex;

    gap: 15px;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    padding-bottom: 5px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.cert-card {
    min-width: calc(33.333% - 10px);

    scroll-snap-align: start;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    background: var(--card);
}

.cert-image {
    aspect-ratio: 4 / 3;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0b0b0b;

    overflow: hidden;
}

.cert-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cert-info {
    padding: 22px;
}

.cert-info h3 {
    font-size: 17px;
    margin-bottom: 5px;
}

.cert-info p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   PROCESS
========================================================= */

.process-grid {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    border-top: 1px solid var(--border);
}

.process {
    padding: 28px 28px 20px 0;

    border-right: 1px solid var(--border);
}

.process:last-child {
    border-right: none;
}

.process-number {
    color: var(--blue-light);
    font-size: 12px;

    margin-bottom: 70px;
}

.process h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.process p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   TOOLS
========================================================= */

.tools {
    background: #080808;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.tool {
    padding: 14px 18px;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: rgba(255,255,255,.025);

    color: #c8c8c8;

    font-size: 14px;

    transition: .2s ease;
}

.tool:hover {
    border-color: var(--border-blue);
    background: var(--blue-soft);
}


/* =========================================================
   PROJECTS
========================================================= */

.project-card {
    min-width: calc(43% - 8px);

    scroll-snap-align: start;

    border: 1px solid var(--border);

    border-radius: 26px;

    overflow: hidden;

    background: var(--card);
}

.project-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #111;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.025);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 21px;

    letter-spacing: -.6px;

    margin-bottom: 9px;
}

.project-info p {
    color: var(--muted);
    font-size: 14px;
}

.project-link {
    display: inline-flex;

    margin-top: 20px;

    color: var(--blue-light);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   CAROUSEL CONTROLS
========================================================= */

.carousel-controls {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-bottom: 17px;
}

.carousel-button {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid var(--border);

    background: rgba(255,255,255,.03);

    color: white;

    cursor: pointer;

    transition: .2s ease;
}

.carousel-button:hover {
    background: white;
    color: black;
}

.carousel-button svg {
    width: 18px;
}


/* =========================================================
   FAQ
========================================================= */

.faq-layout {
    display: grid;

    grid-template-columns: .7fr 1.3fr;

    gap: 70px;
}

.faq-intro {
    max-width: 400px;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;

    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background: none;

    border: none;

    color: white;

    text-align: left;

    cursor: pointer;

    font-size: 16px;
    font-weight: 550;
}

.faq-icon {
    font-size: 24px;
    color: var(--muted);

    transition: transform .3s ease;
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition: max-height .35s ease;
}

.faq-answer p {
    max-width: 720px;

    color: var(--muted);

    font-size: 14px;

    padding-bottom: 25px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: var(--black-2);
}

.contact-grid {
    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 70px;
}

.contact-copy {
    position: sticky;
    top: 120px;

    align-self: start;
}

.contact-copy p {
    color: var(--muted);

    margin-top: 23px;

    max-width: 520px;
}

.contact-details {
    margin-top: 35px;

    display: grid;

    gap: 9px;

    color: #c2c2c2;

    font-size: 14px;
}

.contact-form {
    padding: 35px;

    border-radius: 27px;

    border: 1px solid var(--border);

    background: #0b0b0b;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 13px;
}

.form-group {
    margin-bottom: 13px;
}

.form-group label {
    display: block;

    color: #aaa;

    font-size: 12px;

    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: #070707;

    color: white;

    outline: none;

    padding: 14px 15px;

    transition: border .2s ease;
}

.form-group input {
    min-height: 49px;
}

.form-group textarea {
    min-height: 145px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(52,140,255,.55);
}

.captcha-row {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}

.captcha {
    color: #aaa;

    font-size: 14px;
}

.captcha-input {
    max-width: 80px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 70px 0 30px;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.3fr .7fr .7fr;

    gap: 50px;

    padding-bottom: 55px;
}

.footer-brand {
    max-width: 520px;
}

.footer-brand .logo {
    margin-bottom: 17px;
    width: 172px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
}

.footer-column h4 {
    font-size: 13px;
    margin-bottom: 16px;
}

.footer-column {
    color: var(--muted);
    font-size: 13px;
}

.footer-column a {
    display: block;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 25px;

    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;

    gap: 20px;

    color: #656565;

    font-size: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1000px) {

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

    .about-grid,
    .contact-grid,
    .faq-layout {
        grid-template-columns: 1fr;
    }

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

    .process {
        border-bottom: 1px solid var(--border);
    }

    .contact-copy {
        position: static;
    }

    .cert-card {
        min-width: calc(50% - 8px);
    }

    .project-card {
        min-width: 70%;
    }

}

@media (max-width: 780px) {

    section {
        padding: 80px 0;
    }

    .header .btn {
        display: none;
    }

    .nav-menu {
        position: fixed;

        top: 76px;
        left: 0;

        width: 100%;

        padding: 25px;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        background: rgba(5,5,5,.97);

        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-dropdown,
    .nav-dropdown-menu {
        width: 100%;
    }

    .nav-dropdown::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        margin-top: 10px;
        padding-left: 9px;
        border-radius: 8px;
        box-shadow: none;
    }

    .mobile-button {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 140px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .process {
        border-right: none;
    }

    .process-number {
        margin-bottom: 35px;
    }

    .cert-card {
        min-width: 85%;
    }

    .project-card {
        min-width: 88%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .about-number {
        font-size: 130px;
    }

}


/* =========================================================
   CONTENT VISUAL SYSTEM — KORE REFERENCE
========================================================= */

main .container {
    width: min(92%, 1100px);
}

main section {
    padding: 72px 0;
}

main .label {
    color: #53e4e3;
    font-size: 9px;
    letter-spacing: 2.4px;
    margin-bottom: 15px;
}

main h2 {
    font-size: clamp(27px, 4vw, 43px);
    letter-spacing: -1.8px;
    font-weight: 700;
}

main .section-top {
    max-width: 760px;
    margin-bottom: 33px;
}

main .section-description,
main .about-text,
main .service p,
main .process p,
main .project-info p,
main .faq-answer p,
main .contact-copy p {
    color: #a2a2a2;
    font-size: 13px;
    line-height: 1.7;
}

/* Hero */
main .hero {
    min-height: 430px;
    padding: 135px 0 55px;
    overflow: visible;
}

main .hero::before,
main .hero::after {
    display: none;
}

main .hero-content {
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

main .hero-copy {
    max-width: 510px;
}

main .hero h1 {
    font-size: clamp(38px, 5.2vw, 64px);
    letter-spacing: -3.4px;
    font-weight: 700;
}

main .hero-art {
    width: clamp(210px, 31vw, 370px);
    flex: 0 1 370px;
}

main .hero-art img {
    width: 100%;
    height: auto;
}

/* Cards and service area */
main .services-grid {
    gap: 17px;
}

main .service {
    min-height: 260px;
    padding: 26px 22px;
    border-radius: 18px;
    background: #050505;
    border-color: #174bcb;
}

main .service:nth-child(2n) { border-color: #e50093; }
main .service:nth-child(3n) { border-color: #7537e8; }

main .service:hover {
    transform: translateY(-4px);
    background: #101010;
}

main .service-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #1d6cff;
}

main .service:nth-child(2n) .service-icon { color: #f000a7; }
main .service:nth-child(3n) .service-icon { color: #8647ff; }
main .service-icon svg { width: 30px; height: 30px; }

main .service h3 {
    margin-top: 37px;
    margin-bottom: 12px;
    font-size: 19px;
    letter-spacing: -1px;
}

/* The reference leaves certifications as an authority statement until images are supplied. */
main .certifications {
    background: transparent;
    min-height: 330px;
}

main .certifications .carousel-wrapper { display: none; }

/* Process */
main .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    border: 0;
}

main .process {
    min-height: 230px;
    padding: 25px 20px;
    border: 0;
    border-radius: 12px;
    background: #1a1a1a;
}

main .process-number {
    color: #53e4e3;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 45px;
}

main .process h3 { font-size: 17px; }

/* Tools, projects and FAQ */
main .tools { background: transparent; }
main .tools-container { gap: 18px 26px; }
main .tool {
    padding: 0;
    border: 0;
    background: transparent;
    color: #e6e6e6;
    font-size: 17px;
    font-weight: 700;
}

main .carousel-controls { display: none; }

main #projectsCarousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    overflow: visible;
}

main .project-card {
    min-width: 0;
    border: 0;
    border-radius: 5px;
    background: #111;
}

main .project-image { aspect-ratio: 4 / 5; }
main .project-info { padding: 14px; }
main .project-info h3 { font-size: 15px; }
main .project-info p,
main .project-link { display: none; }

main .faq-layout {
    display: block;
}

main .faq-intro { max-width: none; margin-bottom: 27px; }
main .faq-list { border-top: 0; }
main .faq-item {
    margin-bottom: 10px;
    border: 1px solid #323232;
    border-radius: 6px;
}

main .faq-question {
    min-height: 48px;
    padding: 0 15px;
    font-size: 13px;
}

main .faq-icon { color: #53e4e3; font-size: 18px; }
main .faq-answer p { padding: 0 15px 16px; }

/* Contact */
main .contact { background: transparent; }
main .contact-grid { grid-template-columns: 1fr; gap: 30px; }
main .contact-copy { position: static; }
main .contact-details { display: none; }
main .contact-form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

main .form-group label { font-size: 10px; }
main .form-group input,
main .form-group textarea {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 12px;
}

main .form-group textarea { min-height: 120px; }
main .btn { min-height: 40px; font-size: 12px; }

main .service-detail {
    min-height: 68vh;
    padding-top: 180px;
}

main .service-detail h1 {
    max-width: 720px;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -3px;
    line-height: 1;
}

main .service-detail .btn { margin-top: 28px; }

/* Infrastructure service page */
.infrastructure-hero,
.service-closing {
    padding-top: 170px;
    background: radial-gradient(circle at top right, rgba(52, 140, 255, .16), transparent 42%);
}

.infrastructure-hero h1,
.service-closing h2 {
    max-width: 880px;
    font-size: clamp(42px, 6vw, 74px);
    letter-spacing: -3px;
}

.infrastructure-hero p {
    max-width: 740px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 18px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--muted-2);
    font-size: 13px;
}

.breadcrumbs a:hover,
.related-services a { color: var(--blue-light); }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.service-copy { max-width: 920px; }
.service-copy h2 { margin: 56px 0 18px; font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -2px; }
.service-copy h2:first-child { margin-top: 0; }
.service-copy h3 { margin: 28px 0 12px; font-size: 23px; }
.service-copy p { color: var(--muted); font-size: 17px; }
.service-copy p + p { margin-top: 16px; }
.service-copy ul { display: grid; gap: 9px; margin: 23px 0; padding-left: 21px; color: var(--muted); }
.service-section-alt { background: var(--black-2); border-block: 1px solid var(--border); }
.service-columns,
.technology-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.service-columns > div,
.technology-grid > div { padding: 23px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.02); }
.service-columns h3,
.technology-grid h3 { margin-top: 0; }
.service-columns p,
.technology-grid p { font-size: 14px; }
.service-faq { max-width: 920px; }
.related-services { margin-top: 38px !important; font-size: 14px !important; }

@media (max-width: 620px) {
    .infrastructure-hero,
    .service-closing { padding-top: 125px; }
    .infrastructure-hero p,
    .service-copy p { font-size: 16px; }
    .service-columns,
    .technology-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    main section { padding: 52px 0; }
    main .hero { min-height: 340px; padding-top: 118px; }
    main .hero-content { gap: 20px; }
    main .hero h1 { font-size: 32px; letter-spacing: -2px; }
    main .hero-art { width: 145px; flex-basis: 145px; }
    main .services-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    main .service { min-height: 230px; padding: 19px 15px; }
    main .service h3 { margin-top: 25px; font-size: 16px; }
    main .service p { font-size: 11px; }
    main .process-grid { grid-template-columns: 1fr; }
    main .process { min-height: 0; }
    main .process-number { margin-bottom: 25px; }
    main #projectsCarousel { grid-template-columns: repeat(2, 1fr); }
}

/* About page */
.about-hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    padding-top: 145px;
}

.about-hero h1 {
    max-width: 780px;
    font-size: clamp(40px, 5.2vw, 70px);
    letter-spacing: -3.5px;
}

.about-hero p {
    max-width: 800px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 15px;
}

.about-pillars,
.team-section,
.about-faq {
    padding: 80px 0;
}

.pillars-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar { text-align: center; }

.pillar-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border: 2px dotted currentColor;
    border-radius: 50%;
    font-size: 29px;
}

.pillar h3 {
    max-width: 180px;
    margin: 0 auto 12px;
    font-size: 18px;
    text-transform: capitalize;
}

.pillar p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.pillar-blue { color: #347dff; }
.pillar-pink { color: #f226c1; }
.pillar-purple { color: #9667ff; }

.team-photo {
    position: relative;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(83,228,227,.2), transparent 45%),
        linear-gradient(35deg, rgba(166,92,255,.18), transparent 55%),
        #171717;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .3s ease, transform .3s ease;
}

.team-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    background: rgba(30, 30, 30, .64);
    color: white;
    opacity: 0;
    text-align: center;
    transition: opacity .3s ease;
}

.team-overlay h3 {
    margin: 0 0 7px;
    font-size: clamp(20px, 2.2vw, 29px);
    line-height: 1.05;
}

.team-overlay h4 {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.2;
    text-transform: capitalize;
}

.team-overlay p {
    font-size: 14px;
    line-height: 1.55;
}

.team-member:hover .team-overlay,
.team-member:focus .team-overlay {
    opacity: 1;
}

.team-member:hover .team-photo img,
.team-member:focus .team-photo img {
    filter: brightness(.55);
    transform: scale(1.03);
}

.team-member:focus {
    outline: 2px solid #53e4e3;
    outline-offset: 4px;
}

.team-member h3 {
    margin-top: 10px;
    font-size: 15px;
    text-align: center;
}

.about-faq .faq-list { max-width: 900px; }

@media (max-width: 620px) {
    .about-hero { min-height: 360px; padding-top: 120px; }
    .about-hero h1 { font-size: 35px; letter-spacing: -2.2px; }
    .about-hero p { font-size: 13px; }
    .about-pillars,
    .team-section,
    .about-faq { padding: 55px 0; }
    .pillars-grid { gap: 36px; }
    .pillars-grid,
    .team-grid { grid-template-columns: 1fr; }
    .team-grid { max-width: 300px; margin: auto; }
    .team-overlay { padding: 18px; }
    .team-overlay p { font-size: 13px; }
}

/* Project carousel: preserve the full vertical previews. */
main .carousel-controls {
    display: flex;
}

main #projectsCarousel {
    display: flex !important;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    scrollbar-width: none;
    padding-bottom: 6px;
}

main #projectsCarousel::-webkit-scrollbar {
    display: none;
}

main #projectsCarousel .project-card {
    min-width: calc(25% - 12px) !important;
    scroll-snap-align: start;
}

main #projectsCarousel .project-image {
    aspect-ratio: 400 / 711;
    background: #111;
}

main #projectsCarousel .project-image img {
    object-fit: contain !important;
}

@media (max-width: 780px) {
    main #projectsCarousel .project-card {
        min-width: calc(50% - 8px) !important;
    }
}

@media (max-width: 480px) {
    main #projectsCarousel .project-card {
        min-width: 78% !important;
    }
}
