:root {
    --bg: #0b1119;
    --bg-2: #111a25;
    --soft: #f2f4f7;
    --white: #ffffff;
    --text: #17202b;
    --muted: #66717f;
    --line: rgba(17, 26, 37, 0.12);
    --line-dark: rgba(255, 255, 255, 0.12);
    --red: #ea1f28;
    --red-dark: #c81821;
    --max: 1240px;
    --header: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 4.7vw, 4.8rem);
    line-height: 1.02;
    max-width: 900px;
}

h3 {
    font-size: 1.35rem;
}

p {
    line-height: 1.75;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.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: fixed;
    left: 20px;
    top: -60px;
    z-index: 200;
    padding: 12px 16px;
    color: #fff;
    background: var(--red);
    border-radius: 8px;
    transition: top 160ms ease;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(to bottom, rgba(4,8,13,.88), rgba(4,8,13,.44));
    backdrop-filter: blur(16px);
    transition: background 200ms ease, height 200ms ease;
}

.site-header.is-scrolled {
    height: 72px;
    background: rgba(8, 13, 20, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand img {
    width: 230px;
    height: auto;
}

.brand span {
    padding-left: 16px;
    color: rgba(255,255,255,.62);
    border-left: 1px solid rgba(255,255,255,.22);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    position: relative;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 650;
}

.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 2px;
    background: var(--red);
    transition: right 180ms ease;
}

.site-nav a:hover::after {
    right: 0;
}

.site-nav .nav-cta {
    padding: 12px 17px;
    color: #fff;
    background: var(--red);
    border-radius: 9px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    position: relative;
    min-height: 820px;
    height: 100svh;
    max-height: 980px;
    color: #fff;
    background: var(--bg);
    overflow: hidden;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 750ms ease, visibility 750ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.025);
    transition: transform 7s ease;
}

.hero-slide.is-active > img {
    transform: scale(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 10, 17, .95) 0%, rgba(5, 10, 17, .76) 38%, rgba(5, 10, 17, .24) 72%, rgba(5, 10, 17, .32) 100%),
        linear-gradient(0deg, rgba(5, 10, 17, .82), transparent 42%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header);
    padding-bottom: 110px;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    max-width: 880px;
    margin-bottom: 28px;
    font-size: clamp(3.3rem, 7vw, 7.4rem);
    line-height: .94;
    letter-spacing: -.066em;
}

.hero h1 span {
    color: rgba(255,255,255,.46);
}

.hero-intro {
    max-width: 650px;
    margin-bottom: 34px;
    color: rgba(255,255,255,.72);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 9px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    color: #fff;
    background: var(--red);
    box-shadow: 0 16px 34px rgba(234,31,40,.25);
}

.button-primary:hover {
    background: #f02831;
}

.button-ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.06);
}

.button-dark {
    color: #fff;
    background: var(--bg);
}

.slide-caption {
    position: absolute;
    right: max(24px, calc((100vw - var(--max)) / 2));
    bottom: 92px;
    width: 260px;
    padding: 18px 0 0 20px;
    border-left: 2px solid var(--red);
    text-align: left;
}

.slide-caption span,
.slide-caption small {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.slide-caption strong {
    display: block;
    margin: 7px 0;
    font-size: 1.1rem;
}

.slide-caption small {
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 33px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.slider-arrow {
    width: 42px;
    height: 42px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(8,13,20,.45);
    cursor: pointer;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.slider-dot.is-active {
    width: 30px;
    background: var(--red);
}

.hero-index {
    position: absolute;
    right: 40px;
    top: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.62);
    font-size: .72rem;
    letter-spacing: .15em;
    transform: translateY(-50%);
}

.hero-index i {
    width: 1px;
    height: 82px;
    background: rgba(255,255,255,.28);
}

.section {
    padding: 120px 0;
}

.section-dark {
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(234,31,40,.08), transparent 26rem),
        var(--bg);
}

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

.intro-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(50px, 9vw, 120px);
    align-items: start;
}

.intro-copy {
    padding-top: 52px;
}

.intro-copy .lead {
    color: var(--text);
    font-size: 1.28rem;
    line-height: 1.62;
}

.intro-copy > p:not(.lead) {
    color: var(--muted);
}

.principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 36px;
}

.principles span {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 750;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: end;
    margin-bottom: 62px;
}

.section-heading.compact {
    grid-template-columns: 1fr;
}

.section-heading > p {
    margin: 0;
    color: var(--muted);
}

.section-dark .section-heading > p,
.section-dark .capability-card p,
.section-dark .process-card p {
    color: rgba(255,255,255,.56);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-dark);
    border-left: 1px solid var(--line-dark);
}

.capability-card {
    min-height: 285px;
    padding: 34px;
    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    transition: background 180ms ease, transform 180ms ease;
}

.capability-card:hover {
    background: rgba(255,255,255,.045);
}

.capability-card > span {
    display: block;
    margin-bottom: 52px;
    color: var(--red);
    font-size: .78rem;
    font-weight: 800;
}

.capability-card h3 {
    margin-bottom: 18px;
}

.capability-card p {
    margin-bottom: 0;
    font-size: .91rem;
}

.sectors-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(60px, 9vw, 130px);
}

.sector-copy p:last-child {
    max-width: 550px;
    margin-top: 28px;
    color: var(--muted);
}

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

.sector-list > div {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.sector-list span {
    color: var(--red);
    font-size: .76rem;
    font-weight: 800;
}

.sector-list strong {
    font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--bg);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4,8,14,.9), transparent 62%);
}

.project-meta {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    color: #fff;
}

.project-meta span {
    color: #ff9297;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.project-meta h3 {
    margin: 8px 0 0;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 105px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #cbd0d6;
}

.gallery-item:nth-child(1) {
    grid-column: span 3;
    grid-row: span 5;
}

.gallery-item:nth-child(2) {
    grid-column: span 3;
    grid-row: span 5;
}

.gallery-item:nth-child(3) {
    grid-column: span 6;
    grid-row: span 3;
}

.gallery-item:nth-child(4) {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5,10,17,.78), transparent 55%);
}

.gallery-item figcaption {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
}

.gallery-item figcaption span {
    display: block;
    margin-bottom: 6px;
    color: #ff9ba0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-dark);
}

.process-card {
    padding: 38px 28px 10px;
    border-right: 1px solid var(--line-dark);
}

.process-card:first-child {
    border-left: 1px solid var(--line-dark);
}

.process-card > span {
    color: var(--red);
    font-size: 2.7rem;
    font-weight: 850;
    letter-spacing: -.06em;
}

.process-card h3 {
    margin: 36px 0 16px;
}

.cta {
    color: #fff;
    background:
        linear-gradient(100deg, rgba(5,10,17,.96), rgba(5,10,17,.73)),
        url("../images/hero/civil-works.webp") center / cover no-repeat;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 60px;
}

.cta h2 {
    max-width: 840px;
}

.cta p:not(.section-label) {
    max-width: 690px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.63);
}

.site-footer {
    padding: 48px 0;
    color: rgba(255,255,255,.64);
    background: #070b11;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    gap: 40px;
    align-items: center;
}

.footer-brand img {
    width: 210px;
}

.footer-brand p {
    margin: 12px 0 0;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand):not(.footer-copy) {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-grid span {
    color: rgba(255,255,255,.34);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-grid a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .86rem;
}

.footer-copy {
    font-size: .78rem;
    text-align: right;
}

@media (max-width: 1020px) {
    .brand img {
        width: 190px;
    }

    .brand span {
        display: none;
    }

    .site-nav {
        gap: 18px;
    }

    .site-nav a {
        font-size: .8rem;
    }

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

    .project-card {
        min-height: 430px;
    }

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

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

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2) {
        grid-column: span 6;
        grid-row: span 5;
    }

    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: span 6;
        grid-row: span 3;
    }

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

    .footer-copy {
        text-align: left;
    }
}

@media (max-width: 820px) {
    :root {
        --header: 72px;
    }

    .menu-toggle {
        display: block;
        z-index: 4;
    }

    .menu-toggle[aria-expanded="true"] > span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 40px;
        background: rgba(7,11,17,.985);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: 180ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        font-size: 1.5rem;
    }

    .site-nav .nav-cta {
        margin-top: 10px;
        font-size: 1rem;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        padding-bottom: 165px;
    }

    .slide-caption {
        left: 20px;
        right: auto;
        bottom: 94px;
        width: calc(100% - 40px);
    }

    .hero-index {
        display: none;
    }

    .intro-grid,
    .sectors-grid,
    .section-heading,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .intro-copy {
        padding-top: 0;
    }

    .capability-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 520px;
    }

    .cta-actions {
        margin-top: 10px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .section {
        padding: 84px 0;
    }

    .hero {
        min-height: 700px;
        height: 100svh;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .hero-intro {
        font-size: .98rem;
    }

    .button {
        width: 100%;
    }

    .hero-controls {
        justify-content: flex-end;
    }

    .slider-dots {
        display: none;
    }

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

    .capability-card {
        min-height: 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        min-height: 360px;
    }

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

    .process-card,
    .process-card:first-child {
        border-left: 1px solid var(--line-dark);
    }

    .project-card {
        min-height: 430px;
    }

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

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