:root {
    --navy: #071923;
    --navy-2: #0d2835;
    --navy-3: #153947;
    --orange: #ef8d24;
    --orange-light: #ffb45d;
    --cream: #f7f3ec;
    --sand: #e8ddd0;
    --white: #fff;
    --ink: #17242b;
    --muted: #66757c;
    --line: rgba(7, 25, 35, .12);
    --shadow: 0 25px 70px rgba(7, 25, 35, .14);
    --radius: 22px;
    --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { max-width: 100%; margin: 0; font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; color: var(--ink); background: var(--white); overflow-x: clip; }
body.nav-open, body.lightbox-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--orange); color: var(--white); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 120px 0; }
.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; top: -100px; inset-inline-start: 24px; z-index: 9999; background: var(--white); color: var(--navy); padding: 12px 18px; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }

.site-header { position: fixed; z-index: 100; top: 0; inset-inline: 0; height: 96px; color: var(--white); transition: height .3s ease, background .3s ease, box-shadow .3s ease; }
.site-header::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.15); }
.site-header.is-scrolled, .inner-page .site-header { height: 82px; background: rgba(7,25,35,.95); box-shadow: 0 12px 40px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { position: relative; z-index: 2; width: 178px; height: 70px; padding: 7px 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.95); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-inline: auto; }
.main-nav a { position: relative; padding: 31px 0 26px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.82); transition: color .25s ease; }
.main-nav a::after { content: ""; position: absolute; bottom: 19px; inset-inline-start: 50%; width: 0; height: 2px; background: var(--orange); transform: translateX(50%); transition: width .25s ease; }
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 24px; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--navy); background: var(--orange); padding: 12px 18px; border-radius: 8px; transition: transform .2s ease, background .2s ease; white-space: nowrap; }
.nav-cta:hover { background: var(--orange-light); transform: translateY(-2px); }
.nav-cta svg, .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1); }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; width: 24px; background: var(--white); margin: 5px auto; transition: .25s ease; }

.hero { position: relative; min-height: 840px; height: 100vh; max-height: 980px; display: flex; align-items: center; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,25,35,.2) 0%, rgba(7,25,35,.82) 52%, rgba(7,25,35,.97) 100%), url('../images/hero-road.webp') center/cover no-repeat; transform: scale(1.04); animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,25,35,.15), transparent 45%, rgba(7,25,35,.55)); }
.hero-grid { position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 90px 90px; mask-image: linear-gradient(to left, #000, transparent 65%); }
.hero-content { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 110px; }
.hero-copy { max-width: 770px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 42px; height: 2px; background: var(--orange); }
.hero h1 { margin: 24px 0 22px; max-width: 740px; font-size: clamp(47px, 6vw, 82px); line-height: 1.18; letter-spacing: -.045em; font-weight: 900; text-wrap: balance; }
.hero-copy > p { max-width: 660px; margin: 0 0 38px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 14px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 23px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 12px 30px rgba(239,141,36,.25); }
.btn-primary:hover { background: var(--orange-light); box-shadow: 0 16px 35px rgba(239,141,36,.34); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--white); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--line); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.hero-badge { width: 196px; min-height: 150px; display: flex; align-items: center; gap: 14px; padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(7,25,35,.38); backdrop-filter: blur(16px); }
.hero-badge strong { color: var(--orange); font-size: 36px; font-weight: 900; line-height: 1; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-badge span { padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.8; }
.scroll-hint { position: absolute; z-index: 2; bottom: 38px; inset-inline-start: 50%; transform: translateX(50%); display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.scroll-hint span { position: relative; width: 22px; height: 36px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; }
.scroll-hint span::after { content: ""; position: absolute; top: 7px; inset-inline-start: 9px; width: 3px; height: 7px; border-radius: 3px; background: var(--orange); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 50% { transform: translateY(10px); opacity: .3; } }

.stats-bar { position: relative; z-index: 3; margin-top: -1px; background: var(--orange); color: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 31px 35px; display: flex; align-items: center; gap: 16px; border-inline-end: 1px solid rgba(7,25,35,.18); }
.stat:first-child { border-inline-end: 0; }
.stat strong { font-size: 36px; font-weight: 900; line-height: 1; }
.stat span { max-width: 150px; font-size: 12px; font-weight: 700; line-height: 1.5; opacity: .75; }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 110px; }
.about-visual { position: relative; min-height: 620px; }
.image-frame { overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame-main { position: absolute; top: 0; inset-inline-end: 0; width: 82%; height: 510px; border-radius: 8px 90px 8px 8px; }
.image-frame-float { position: absolute; bottom: 0; inset-inline-start: 0; width: 52%; height: 270px; border: 9px solid var(--white); border-radius: 8px; }
.experience-card { position: absolute; z-index: 2; bottom: 44px; inset-inline-end: 18px; width: 175px; min-height: 145px; padding: 24px; background: var(--orange); color: var(--navy); display: flex; align-items: center; gap: 12px; border-radius: 8px; box-shadow: 0 18px 40px rgba(7,25,35,.18); }
.experience-card strong { font-size: 40px; font-weight: 900; }
.experience-card span { font-size: 11px; font-weight: 800; line-height: 1.7; }
.section-kicker { margin-bottom: 17px; }
.section-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-kicker.light { color: var(--orange-light); }
.section-copy h2, .section-heading h2, .process-copy h2, .contact-copy h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(34px, 4.5vw, 57px); line-height: 1.25; font-weight: 900; letter-spacing: -.035em; }
.section-copy > p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 2; }
.founder-line { margin: 30px 0 25px; padding: 18px 0; display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.founder-mark { width: 55px; height: 55px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--navy); color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.founder-line div { display: flex; flex-direction: column; gap: 4px; }
.founder-line small { color: var(--muted); font-size: 11px; }
.founder-line strong { color: var(--navy); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 14px; font-weight: 800; }
.text-link span { color: var(--orange); font-size: 20px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-5px); }

.services-section { background: var(--cream); }
.section-heading { margin-bottom: 55px; }
.section-heading.centered { max-width: 790px; margin-inline: auto; text-align: center; }
.section-heading.centered .section-kicker { justify-content: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading p, .heading-row > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 330px; padding: 35px; overflow: hidden; border: 1px solid rgba(7,25,35,.08); border-radius: var(--radius); background: var(--white); transition: transform .3s ease, box-shadow .3s ease, color .3s ease, background .3s ease; }
.service-card::after { content: ""; position: absolute; bottom: -80px; inset-inline-end: -80px; width: 180px; height: 180px; border: 34px solid rgba(239,141,36,.08); border-radius: 50%; transition: transform .35s ease; }
.service-card:hover { transform: translateY(-8px); color: var(--white); background: var(--navy); box-shadow: 0 30px 60px rgba(7,25,35,.16); }
.service-card:hover::after { transform: scale(1.3); }
.service-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; background: rgba(239,141,36,.13); color: var(--orange); }
.service-icon svg { width: 32px; height: 32px; }
.service-number { position: absolute; top: 34px; inset-inline-end: 35px; color: rgba(7,25,35,.16); font-size: 22px; font-weight: 900; }
.service-card:hover .service-number { color: rgba(255,255,255,.18); }
.service-card h3 { margin: 32px 0 12px; font-size: 21px; font-weight: 900; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; transition: color .3s ease; }
.service-card:hover p { color: rgba(255,255,255,.66); }

.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.heading-row h2 { margin-bottom: 0; }
.projects-section { background: var(--white); }
.projects-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.project-card { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 330px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.project-card:first-child { grid-row: span 2; grid-template-columns: 1fr; min-height: 686px; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-image { position: relative; overflow: hidden; min-height: 270px; }
.project-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,25,35,.35)); opacity: .7; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-image img { transform: scale(1.06); }
.project-card:first-child .project-image { min-height: 370px; }
.project-arrow { position: absolute; z-index: 2; top: 20px; inset-inline-end: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: 21px; }
.project-content { position: relative; padding: 28px; display: flex; flex-direction: column; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--orange); font-size: 10px; font-weight: 800; }
.project-meta span + span { color: var(--muted); }
.project-content h3 { margin: 14px 0 10px; color: var(--navy); font-size: 24px; line-height: 1.45; font-weight: 900; }
.project-content h3 a:hover { color: var(--orange); }
.project-content p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.project-value { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.project-value small { color: var(--muted); font-size: 10px; }
.project-value strong { color: var(--navy); font-size: 13px; }

.process-section { position: relative; padding: 120px 0; color: var(--white); background: var(--navy); overflow: hidden; }
.process-section::before { content: "CTC"; position: absolute; bottom: -120px; inset-inline-start: -30px; color: rgba(255,255,255,.025); font-size: 360px; font-weight: 900; line-height: 1; direction: ltr; }
.process-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.process-copy h2, .contact-copy h2 { color: var(--white); }
.process-copy p { margin: 0; color: rgba(255,255,255,.58); line-height: 2; }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; align-items: center; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.process-list li:first-child { border-top: 1px solid rgba(255,255,255,.1); }
.process-list li > span { color: var(--orange); font-size: 14px; font-weight: 800; }
.process-list div { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.process-list strong { font-size: 18px; }
.process-list small { max-width: 280px; color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.8; }

.equipment-section { overflow: hidden; background: #f9f7f2; }
.equipment-section .heading-row > p { max-width: 480px; }
.equipment-track-wrap { width: 100%; height: 260px; overflow: hidden; contain: layout paint size; }
.equipment-track { display: flex; gap: 18px; width: max-content; animation: equipmentMove 42s linear infinite; }
.equipment-track:hover { animation-play-state: paused; }
@keyframes equipmentMove { to { transform: translateX(calc(50% + 9px)); } }
.equipment-card { position: relative; width: 330px; height: 260px; margin: 0; overflow: hidden; border-radius: 16px; background: var(--navy); }
.equipment-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.equipment-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(7,25,35,.85)); }
.equipment-card:hover img { transform: scale(1.06); }
.equipment-card figcaption { position: absolute; z-index: 2; bottom: 20px; inset-inline: 22px; color: var(--white); font-size: 15px; font-weight: 800; }

.contact-section { color: var(--white); background: linear-gradient(115deg, rgba(7,25,35,.97), rgba(7,25,35,.9)), url('../images/projects/link1-water-line.webp') center/cover fixed; }
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.contact-copy > p { color: rgba(255,255,255,.6); line-height: 2; }
.contact-cards { margin-top: 35px; display: grid; gap: 15px; }
.contact-cards div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 6px; }
.contact-cards span { color: var(--orange-light); font-size: 10px; font-weight: 700; }
.contact-cards strong { font-size: 14px; font-weight: 700; }
.contact-form { position: relative; padding: 42px; color: var(--ink); background: var(--white); border-radius: var(--radius); box-shadow: 0 40px 80px rgba(0,0,0,.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 18px; color: var(--navy); font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; color: var(--ink); outline: 0; font-size: 13px; resize: vertical; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,141,36,.1); }
.contact-form [dir="ltr"] { text-align: right; }
.captcha-box { margin: 4px 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #f7f4ee; }
.captcha-box legend { padding: 0 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
.captcha-box > div { display: grid; grid-template-columns: auto 1fr 120px; gap: 14px; align-items: center; }
.captcha-box strong { min-width: 92px; color: var(--orange-deep); font-size: 20px; letter-spacing: .06em; text-align: center; }
.captcha-box label { margin: 0; }
.captcha-box input { margin: 0; text-align: center; }
.captcha-box small { display: block; margin-top: 9px; color: #746f68; font-size: 10px; }
.btn-submit { width: 100%; border: 0; }
.form-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden; }

.site-footer { color: rgba(255,255,255,.7); background: #041118; }
.footer-main { padding: 75px 0 55px; display: grid; grid-template-columns: 1.3fr .7fr .9fr 1.1fr; gap: 60px; }
.footer-brand img { width: 180px; height: 75px; padding: 8px; object-fit: contain; border-radius: 10px; background: var(--white); }
.footer-brand p { margin: 20px 0 0; max-width: 290px; color: rgba(255,255,255,.48); font-size: 12px; line-height: 2; }
.site-footer h3 { margin: 4px 0 20px; color: var(--white); font-size: 15px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a, .footer-bottom a { transition: color .2s ease; font-size: 12px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--orange); }
.footer-contact li { display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
.footer-contact span { color: var(--orange); font-size: 9px; font-weight: 700; }
.footer-cta { padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); }
.footer-cta p { font-size: 11px; line-height: 1.8; }
.footer-cta .btn { min-height: 42px; margin-top: 8px; padding: 9px 18px; font-size: 12px; }
.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; }
.footer-bottom p { margin: 0; }
.whatsapp-float { position: fixed; z-index: 50; bottom: 24px; inset-inline-start: 24px; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: #25d366; box-shadow: 0 12px 30px rgba(0,0,0,.24); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); }
.whatsapp-float svg { width: 28px; fill: currentColor; }

.toast { position: fixed; z-index: 300; top: 105px; inset-inline-start: 50%; transform: translateX(50%); max-width: min(520px, calc(100% - 36px)); padding: 15px 22px; border-radius: 10px; color: var(--white); background: var(--navy); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; animation: toastIn .35s ease both; }
.toast-success { background: #0c7553; }
.toast-error { background: #a63c35; }
@keyframes toastIn { from { opacity: 0; transform: translate(50%, -15px); } }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }

.page-hero { padding: 190px 0 90px; color: var(--white); background: linear-gradient(110deg, rgba(7,25,35,.97), rgba(7,25,35,.78)), url('../images/projects/capital-roadworks.webp') center/cover; }
.breadcrumbs { margin-bottom: 35px; display: flex; flex-wrap: wrap; gap: 9px; color: rgba(255,255,255,.48); font-size: 11px; }
.breadcrumbs a:hover { color: var(--orange); }
.page-hero h1 { margin: 4px 0 15px; font-size: clamp(48px, 8vw, 88px); font-weight: 900; letter-spacing: -.05em; }
.page-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.64); font-size: 16px; line-height: 2; }
.project-archive { background: var(--cream); }
.filter-bar { margin-bottom: 42px; padding-bottom: 15px; display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); }
.filter-bar button { padding: 10px 17px; border: 1px solid transparent; border-radius: 100px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.filter-bar button:hover, .filter-bar button.active { color: var(--white); background: var(--navy); }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.archive-card { overflow: hidden; border-radius: 18px; background: var(--white); box-shadow: 0 8px 30px rgba(7,25,35,.06); transition: transform .3s ease, box-shadow .3s ease; }
.archive-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.archive-card.is-hidden { display: none; }
.archive-image { position: relative; display: block; height: 340px; overflow: hidden; }
.archive-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.archive-card:hover .archive-image img { transform: scale(1.05); }
.archive-image > span { position: absolute; top: 20px; inset-inline-start: 20px; padding: 7px 12px; border-radius: 100px; color: var(--navy); background: var(--orange); font-size: 10px; font-weight: 800; }
.archive-content { padding: 28px 30px 30px; }
.archive-content > small { color: var(--orange); font-size: 10px; font-weight: 800; }
.archive-content h2 { margin: 10px 0 9px; color: var(--navy); font-size: 27px; line-height: 1.4; }
.archive-content h2 a:hover { color: var(--orange); }
.archive-content p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.archive-content > div { padding-top: 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.archive-content > div strong { color: var(--navy); font-size: 13px; }
.archive-content > div a { color: var(--orange); font-size: 12px; font-weight: 800; }

.project-hero { position: relative; min-height: 690px; padding: 180px 0 90px; display: flex; align-items: flex-end; color: var(--white); background: var(--navy); overflow: hidden; }
.project-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,25,35,.2), rgba(7,25,35,.72) 60%, rgba(7,25,35,.92)), var(--project-image) center/cover no-repeat; }
.project-hero .container { position: relative; z-index: 1; }
.project-hero-copy > span { color: var(--orange-light); font-size: 13px; font-weight: 800; }
.project-hero h1 { max-width: 860px; margin: 13px 0 10px; font-size: clamp(48px, 7vw, 82px); line-height: 1.2; font-weight: 900; letter-spacing: -.045em; }
.project-hero-copy p { margin: 0; color: rgba(255,255,255,.68); font-size: 15px; }
.project-facts-wrap { background: var(--orange); }
.project-facts { display: grid; grid-template-columns: .7fr 1.4fr 1.2fr .55fr; }
.project-facts > div { padding: 28px 26px; border-inline-end: 1px solid rgba(7,25,35,.15); display: flex; flex-direction: column; gap: 6px; }
.project-facts > div:first-child { border-inline-end: 0; }
.project-facts span { font-size: 9px; font-weight: 700; opacity: .65; }
.project-facts strong { color: var(--navy); font-size: 12px; line-height: 1.75; }
.project-overview-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 110px; align-items: start; }
.project-overview h2 { margin: 0 0 24px; color: var(--navy); font-size: 44px; line-height: 1.35; font-weight: 900; }
.project-overview p { margin: 0; color: var(--muted); font-size: 16px; line-height: 2.15; }
.supervisor-note { margin-top: 28px; padding: 18px 22px; border-inline-start: 3px solid var(--orange); background: var(--cream); display: flex; flex-direction: column; gap: 5px; }
.supervisor-note span { color: var(--muted); font-size: 10px; }
.supervisor-note strong { font-size: 13px; }
.scope-card { padding: 34px; border-radius: 18px; color: var(--white); background: var(--navy); box-shadow: var(--shadow); }
.scope-card > span { color: var(--orange); font-size: 11px; font-weight: 800; }
.scope-card ul { list-style: none; margin: 22px 0 0; padding: 0; }
.scope-card li { position: relative; padding: 13px 25px 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); font-size: 13px; }
.scope-card li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--orange); font-weight: 900; }
.project-gallery-section { padding-top: 0; }
.project-gallery-section .heading-row > p { max-width: 440px; }
.masonry-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 170px; gap: 14px; }
.gallery-item { position: relative; grid-column: span 4; grid-row: span 2; padding: 0; border: 0; overflow: hidden; border-radius: 14px; background: var(--navy); }
.gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 8; }
.gallery-item:nth-child(3n) { grid-row: span 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.gallery-item:hover img { transform: scale(1.06); opacity: .72; }
.gallery-item span { position: absolute; bottom: 18px; inset-inline-start: 18px; opacity: 0; transform: translateY(8px); color: var(--white); font-size: 11px; font-weight: 700; transition: .25s ease; }
.gallery-item:hover span { opacity: 1; transform: translateY(0); }
.project-cta { padding: 75px 0; color: var(--white); background: var(--navy); }
.project-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.project-cta span { color: var(--orange); font-size: 12px; font-weight: 700; }
.project-cta h2 { margin: 7px 0 0; font-size: 36px; }
.lightbox { position: fixed; z-index: 1000; inset: 0; padding: 60px; display: none; place-items: center; background: rgba(3,12,17,.96); }
.lightbox.is-open { display: grid; }
.lightbox > button { position: absolute; top: 20px; inset-inline-end: 24px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--white); background: transparent; font-size: 30px; }
.lightbox figure { margin: 0; max-width: 1100px; max-height: 85vh; }
.lightbox img { max-height: 78vh; width: auto; margin: auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.65); text-align: center; font-size: 12px; }
.empty-state { min-height: 80vh; padding: 190px 0 100px; text-align: center; background: var(--cream); }
.empty-state span { color: var(--orange); font-size: 100px; font-weight: 900; opacity: .3; }
.empty-state h1 { margin: -20px 0 10px; font-size: 44px; }
.empty-state p { color: var(--muted); }

@media (max-width: 1120px) {
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 12px; }
    .nav-cta { display: none; }
    .split-layout { gap: 65px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card:first-child { min-height: auto; grid-row: auto; grid-template-columns: .95fr 1.05fr; }
    .project-card:first-child .project-image { min-height: 300px; }
    .footer-main { grid-template-columns: 1.2fr .8fr 1fr; }
    .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .section { padding: 85px 0; }
    .site-header, .site-header.is-scrolled, .inner-page .site-header { height: 76px; }
    .brand { width: 145px; height: 58px; }
    .nav-toggle { z-index: 3; display: block; margin-inline-start: auto; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .main-nav { position: fixed; inset: 0; padding: 120px 32px 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; background: var(--navy); transform: translateX(-100%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
    .nav-open .main-nav { transform: translateX(0); opacity: 1; pointer-events: auto; }
    .main-nav a { width: 100%; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
    .main-nav a::after { display: none; }
    .hero { min-height: 760px; height: 100svh; }
    .hero-content { align-items: center; }
    .hero-copy { max-width: 670px; }
    .hero-badge { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid rgba(7,25,35,.15); }
    .split-layout, .process-layout, .contact-layout, .project-overview-grid { grid-template-columns: 1fr; }
    .split-layout { gap: 70px; }
    .about-visual { max-width: 620px; width: 100%; margin: auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-layout { gap: 55px; }
    .contact-layout { gap: 55px; }
    .footer-main { grid-template-columns: repeat(2, 1fr); }
    .footer-cta { grid-column: auto; }
    .archive-grid { grid-template-columns: 1fr; }
    .project-facts { grid-template-columns: repeat(2, 1fr); }
    .project-facts > div { border-bottom: 1px solid rgba(7,25,35,.15); }
    .project-overview-grid { gap: 45px; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 70px 0; }
    .hero { min-height: 720px; }
    .hero-bg { background-position: 37% center; }
    .hero h1 { font-size: 44px; line-height: 1.25; }
    .hero-copy > p { font-size: 15px; line-height: 1.9; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .scroll-hint { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { padding: 23px 15px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .stat strong { font-size: 30px; }
    .stat span { font-size: 10px; }
    .about-visual { min-height: 450px; }
    .image-frame-main { width: 88%; height: 380px; border-radius: 8px 55px 8px 8px; }
    .image-frame-float { width: 58%; height: 185px; border-width: 6px; }
    .experience-card { bottom: 24px; inset-inline-end: 0; width: 150px; min-height: 115px; padding: 18px; }
    .experience-card strong { font-size: 31px; }
    .section-copy h2, .section-heading h2, .process-copy h2, .contact-copy h2 { font-size: 36px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 285px; }
    .heading-row { align-items: flex-start; flex-direction: column; gap: 22px; }
    .project-card, .project-card:first-child { grid-template-columns: 1fr; }
    .project-image, .project-card:first-child .project-image { min-height: 250px; }
    .process-list li { grid-template-columns: 45px 1fr; }
    .process-list div { align-items: flex-start; flex-direction: column; gap: 7px; }
    .equipment-card { width: 270px; height: 220px; }
    .equipment-track-wrap { height: 220px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 27px 20px; }
    .captcha-box > div { grid-template-columns: 1fr; gap: 8px; }
    .captcha-box strong { text-align: right; }
    .captcha-box input { max-width: 140px; }
    .footer-main { grid-template-columns: 1fr; gap: 38px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
    .page-hero { padding: 145px 0 70px; }
    .page-hero h1 { font-size: 53px; }
    .archive-image { height: 260px; }
    .archive-content { padding: 24px 20px; }
    .archive-content h2 { font-size: 23px; }
    .project-hero { min-height: 580px; padding-bottom: 65px; }
    .project-hero h1 { font-size: 45px; }
    .project-facts { grid-template-columns: 1fr; }
    .project-facts > div { padding: 20px 8px; }
    .project-overview h2 { font-size: 35px; }
    .masonry-gallery { grid-template-columns: 1fr; grid-auto-rows: 270px; }
    .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(6), .gallery-item:nth-child(3n) { grid-column: 1; grid-row: auto; }
    .project-cta .container { align-items: flex-start; flex-direction: column; }
    .project-cta h2 { font-size: 29px; }
    .lightbox { padding: 50px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
