
:root{
  --navy:#0b1724;
  --navy-2:#102536;
  --orange:#f06432;
  --orange-2:#ff7b45;
  --cream:#f6f3ed;
  --paper:#fbfaf7;
  --ink:#16212c;
  --muted:#6e7780;
  --line:rgba(22,33,44,.13);
  --white:#fff;
  --radius:24px;
  --shadow:0 20px 60px rgba(11,23,36,.12);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"DM Sans",sans-serif;color:var(--ink);background:var(--paper);line-height:1.65}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}
.container{width:min(1180px,calc(100% - 44px));margin:auto}
.section{padding:112px 0}
.section-dark{background:var(--navy);color:#fff;padding:112px 0}
.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:800;color:#d9dee2;margin-bottom:18px}
.eyebrow.dark{color:var(--orange)}
h1,h2,h3{font-family:"Manrope",sans-serif;line-height:1.04;letter-spacing:-.035em}
h1{font-size:clamp(48px,7vw,92px)}
h2{font-size:clamp(38px,5vw,64px)}
h2 span,h1 em{color:var(--orange);font-style:normal}
p{color:var(--muted)}
.section-dark p{color:#bac4cc}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:15px 22px;border-radius:999px;font-weight:800;font-size:14px;transition:.25s ease;border:1px solid transparent}
.btn span{font-size:18px;line-height:1}
.btn-primary{background:var(--orange);color:#fff}
.btn-primary:hover{background:var(--orange-2);transform:translateY(-2px)}
.btn-ghost{border-color:rgba(255,255,255,.35);color:#fff;background:rgba(255,255,255,.07);backdrop-filter:blur(8px)}
.btn-ghost:hover{background:#fff;color:var(--navy)}
.btn-outline{border-color:rgba(255,255,255,.3);color:#fff;margin-top:30px}
.btn-outline:hover{background:#fff;color:var(--navy)}
.btn-outline-dark{border-color:var(--line);color:var(--ink)}
.btn-outline-dark:hover{background:var(--navy);color:#fff}

/* Header */
.site-header{position:fixed;z-index:50;top:0;left:0;width:100%;padding:15px 0;transition:.3s;background:linear-gradient(180deg,rgba(5,12,18,.72),transparent)}
.site-header.scrolled{background:rgba(11,23,36,.96);backdrop-filter:blur(14px);padding:10px 0}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:block;background:#fff;border-radius:50%;width:72px;height:72px;overflow:hidden;box-shadow:0 6px 22px rgba(0,0,0,.18)}
.brand img{width:100%;height:100%;object-fit:cover}
.main-nav{display:flex;align-items:center;gap:26px;color:#fff;font-size:13px;font-weight:700}
.main-nav>a:not(.nav-cta){opacity:.88}
.main-nav>a:not(.nav-cta):hover{opacity:1;color:#ffb08f}
.nav-cta{background:var(--orange);padding:11px 17px;border-radius:999px}
.menu-toggle{display:none;background:none;border:0;color:#fff}
.menu-toggle span{display:block;width:25px;height:2px;background:#fff;margin:5px 0}

/* Hero */
.hero{min-height:820px;position:relative;color:#fff;display:flex;align-items:center;overflow:hidden;background:var(--navy)}
.hero-media,.hero-overlay{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-overlay{background:linear-gradient(90deg,rgba(4,11,17,.88) 0%,rgba(4,11,17,.57) 45%,rgba(4,11,17,.18) 100%),linear-gradient(0deg,rgba(4,11,17,.55),transparent 55%)}
.hero-content{position:relative;z-index:2;padding-top:100px;max-width:1180px}
.hero-content h1{max-width:900px}
.hero-content p{max-width:610px;color:#e4e8eb;font-size:18px;margin:24px 0 30px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-scroll{position:absolute;z-index:2;bottom:28px;right:4%;font-size:10px;letter-spacing:.18em;color:#dfe4e8}
.hero-scroll span{margin-left:14px;color:var(--orange);font-size:20px}

/* Intro */
.split-intro{display:grid;grid-template-columns:1.15fr .85fr;gap:100px;align-items:start}
.split-intro h2{max-width:650px}
.intro-copy{padding-top:48px}
.intro-copy p{font-size:17px;margin-bottom:18px}
.text-link{display:inline-flex;gap:10px;align-items:center;margin-top:16px;font-weight:800;color:var(--orange)}
.text-link span{font-size:22px;transition:.2s}
.text-link:hover span{transform:translateX(5px)}
.text-link.light{color:#fff}

/* Project highlight */
.project-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:90px;align-items:center}
.project-copy h2{font-size:clamp(52px,6vw,82px)}
.project-copy>p{font-size:17px;max-width:510px;margin:24px 0}
.project-facts{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid rgba(255,255,255,.16);border-bottom:1px solid rgba(255,255,255,.16);max-width:510px}
.project-facts div{padding:18px 0;display:flex;flex-direction:column;gap:2px}
.project-facts div:nth-child(odd){border-right:1px solid rgba(255,255,255,.16)}
.project-facts strong{font:800 20px "Manrope";color:var(--orange)}
.project-facts span{font-size:12px;color:#bac4cc}
.project-visual{position:relative}
.project-visual>img{width:100%;height:620px;object-fit:cover;border-radius:4px}
.floating-card{position:absolute;bottom:25px;left:-28px;background:#fff;color:var(--navy);padding:20px 24px;min-width:185px;box-shadow:var(--shadow)}
.floating-card span,.floating-card small{display:block;font-size:9px;letter-spacing:.18em;font-weight:800;color:#7a848c}
.floating-card strong{display:block;font:800 20px "Manrope";letter-spacing:.05em;margin:2px 0 7px}

/* Services */
.section-heading{display:grid;grid-template-columns:1fr .65fr;gap:80px;align-items:end;margin-bottom:50px}
.section-heading>p{font-size:16px}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service-card{min-height:360px;background:#fff;border:1px solid var(--line);padding:30px;display:flex;flex-direction:column;box-shadow:0 8px 30px rgba(11,23,36,.03)}
.service-number{color:var(--orange);font:800 13px "Manrope";margin-bottom:auto}
.service-card h3{font-size:32px;margin-bottom:12px}
.service-card p{margin-bottom:24px}
.service-card a{font-weight:800;color:var(--navy);margin-top:auto}
.accent-card{background:var(--orange);color:#fff}
.accent-card p,.accent-card a{color:#fff}
.accent-card .service-number{color:#fff}
.image-card{padding:0;position:relative;overflow:hidden;background:var(--navy);color:#fff}
.image-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.65}
.image-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(11,23,36,.9),transparent 70%)}
.image-card-content{position:absolute;z-index:2;bottom:25px;left:25px;right:25px}
.image-card-content span{color:var(--orange);font-weight:800}
.image-card-content h3{margin:8px 0}
.image-card-content p{color:#d8dee2}

/* Gallery */
.gallery{background:var(--cream)}
.section-heading.compact{grid-template-columns:1fr auto;align-items:center;margin-bottom:35px}
.gallery-grid{display:grid;grid-template-columns:1.35fr .8fr .8fr;grid-auto-rows:230px;gap:14px}
.gallery-grid figure{position:relative;overflow:hidden;margin:0;border-radius:6px;background:var(--navy);isolation:isolate;box-shadow:0 8px 24px rgba(11,23,36,.08)}
.gallery-grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s ease,filter .6s ease}
.gallery-grid figure:hover img{transform:scale(1.04);filter:brightness(.78)}
.gallery-caption{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:42px 18px 16px;background:linear-gradient(to top,rgba(11,23,36,.94) 0%,rgba(11,23,36,.72) 42%,rgba(11,23,36,0) 100%);border:0;color:#fff;pointer-events:none}
.gallery-caption strong{display:block;font-size:14px;line-height:1.35;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.gallery-caption span{display:block;margin-top:5px;font-size:11px;line-height:1.45;color:rgba(255,255,255,.86);max-width:95%;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.gallery-large{grid-row:span 2}

/* People */
.people-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:90px;align-items:center}
.people-image img{width:100%;height:600px;object-fit:cover;object-position:center;border-radius:3px}
.people-copy h2{max-width:650px}
.people-copy p{max-width:570px;font-size:17px;margin:25px 0}

/* CTA */
.cta-band{padding:65px 0;background:var(--orange)}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}
.cta-inner .eyebrow{color:#fff}
.cta-inner h2{font-size:clamp(32px,4vw,52px);color:#fff}
.cta-band .btn-primary{background:var(--navy)}
.cta-band .btn-primary:hover{background:#152b3e}

/* Inner pages */
.inner-hero{padding:185px 0 95px;background:var(--cream)}
.inner-hero h1{max-width:850px;color:var(--navy)}
.inner-hero p{font-size:18px;max-width:620px;margin-top:25px}
.about-layout{display:grid;grid-template-columns:1fr .65fr;gap:110px}
.about-main h2{margin-bottom:25px}
.about-main p{font-size:17px;margin:0 0 18px;max-width:730px}
.about-side{border-top:1px solid var(--line)}
.side-stat{padding:26px 0;border-bottom:1px solid var(--line);display:flex;align-items:baseline;gap:18px}
.side-stat strong{font:800 42px "Manrope";color:var(--orange)}
.side-stat span{font-size:13px;color:var(--muted)}
.image-story{position:relative;height:650px;overflow:hidden}
.image-story>img{width:100%;height:100%;object-fit:cover;filter:saturate(.9)}
.image-story-card{position:absolute;left:7%;bottom:7%;background:var(--navy);color:#fff;padding:35px 40px;min-width:300px}
.image-story-card h2{font-size:42px}
.values-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:100px}
.value-list article{display:grid;grid-template-columns:55px 1fr;gap:20px;padding:30px 0;border-top:1px solid var(--line)}
.value-list span{color:var(--orange);font-weight:800}
.value-list h3{font-size:25px;margin-bottom:8px}
.leadership h2{margin-bottom:50px}
.leadership-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.leadership-grid figure{background:#172b3b}
.leadership-grid img{width:100%;height:520px;object-fit:cover}
.leadership-grid figcaption{padding:20px}
.leadership-grid figcaption strong,.leadership-grid figcaption span{display:block}
.leadership-grid figcaption span{font-size:12px;color:#aab5bd;margin-top:3px}

/* Project */
.project-hero{height:760px;position:relative;display:flex;align-items:end;color:#fff;overflow:hidden}
.project-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.project-hero-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,12,18,.86),rgba(5,12,18,.05) 70%)}
.project-hero-content{position:relative;padding-bottom:80px}
.project-hero-content h1{font-size:clamp(60px,8vw,110px)}
.project-hero-content p{color:#e5e9ec;font-size:18px;margin-top:18px}
.project-intro{display:grid;grid-template-columns:1fr 1fr;gap:100px}
.project-intro>div:last-child{padding-top:50px}
.project-intro p{font-size:17px;margin-bottom:18px}
.light-heading h2{color:#fff}
.unit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:50px}
.unit-card{min-height:280px;border:1px solid rgba(255,255,255,.15);padding:28px;display:flex;flex-direction:column;transition:.25s}
.unit-card:hover{transform:translateY(-5px);border-color:var(--orange)}
.unit-card>span{color:var(--orange);font-weight:800}
.unit-card h3{font-size:42px;margin-top:auto}
.unit-card p{margin:8px 0 25px}
.unit-card a{font-weight:800}
.unit-card.featured{background:#fff;color:var(--navy)}
.unit-card.featured p{color:var(--muted)}
.commercial-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:90px;align-items:center}
.commercial-image img{width:100%;height:520px;object-fit:cover}
.commercial-layout h2{margin-bottom:22px}
.commercial-layout p{font-size:17px;margin-bottom:30px}
.masonry{columns:3 300px;column-gap:12px}
.masonry img{width:100%;margin:0 0 12px;break-inside:avoid}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Contact */
.contact-hero{padding-bottom:85px}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:90px;align-items:start}
.contact-details h2{margin-bottom:35px}
.contact-item{padding:22px 0;border-top:1px solid var(--line)}
.contact-item span{display:block;font-size:10px;letter-spacing:.18em;font-weight:800;color:var(--orange);margin-bottom:5px}
.contact-item a{font:700 22px "Manrope"}
.contact-item p{font-size:15px}
.social-row{display:flex;gap:16px;flex-wrap:wrap;margin-top:24px}
.social-row a{font-weight:800}
.form-card{background:#fff;border:1px solid var(--line);padding:40px;box-shadow:var(--shadow)}
.form-card h2{font-size:36px;margin-bottom:30px}
form label{display:block;font-size:12px;font-weight:800;margin-bottom:16px}
input,textarea,select{width:100%;margin-top:8px;border:1px solid var(--line);background:#fbfbfa;padding:14px 15px;outline:none;border-radius:2px;color:var(--ink)}
input:focus,textarea:focus,select:focus{border-color:var(--orange)}
textarea{resize:vertical}
.form-note{font-size:11px;margin-top:12px}
.map-section{height:420px}
.map-section iframe{border:0;width:100%;height:100%}

/* Footer */
.footer{background:#07111b;color:#fff;padding:70px 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr .8fr 1.1fr .7fr;gap:55px;padding-bottom:60px}
.footer-logo{width:74px;height:74px;object-fit:cover;border-radius:50%;background:#fff}
.footer-copy{color:#9ca9b2;max-width:280px;margin-top:18px;font-size:13px}
.footer h3{font-size:14px;color:#fff;margin-bottom:18px;letter-spacing:.03em}
.footer-grid a,.footer-grid span{display:block;color:#9ca9b2;font-size:13px;margin:8px 0}
.footer-grid a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:20px 0;display:flex;justify-content:space-between;gap:20px;color:#74818b;font-size:11px}

/* Responsive */
@media(max-width:900px){
  .main-nav{gap:15px}
  .main-nav>a:not(.nav-cta){display:none}
  .menu-toggle{display:block}
  .main-nav.open{position:absolute;top:82px;left:22px;right:22px;display:flex;flex-direction:column;align-items:stretch;background:var(--navy);padding:15px;border-radius:16px;box-shadow:var(--shadow)}
  .main-nav.open>a:not(.nav-cta){display:block;padding:12px}
  .nav-cta{text-align:center}
  .split-intro,.project-grid,.people-grid,.about-layout,.values-grid,.project-intro,.commercial-layout,.contact-grid{grid-template-columns:1fr;gap:45px}
  .intro-copy,.project-intro>div:last-child{padding-top:0}
  .project-visual{order:-1}
  .service-grid{grid-template-columns:1fr 1fr}
  .gallery-grid{grid-template-columns:1fr 1fr;grid-auto-rows:220px}
  .gallery-large{grid-row:span 1;grid-column:span 2}
  .people-image img{height:500px}
  .section-heading{grid-template-columns:1fr;gap:15px}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .container{width:min(100% - 30px,1180px)}
  .section,.section-dark{padding:78px 0}
  .site-header{padding:10px 0}
  .brand{width:58px;height:58px}
  .hero{min-height:720px}
  .hero-content{padding-top:80px}
  .hero-content p{font-size:16px}
  .hero-actions .btn{width:100%}
  .hero-scroll{display:none}
  .project-visual>img{height:410px}
  .floating-card{left:12px;bottom:12px}
  .service-grid,.unit-grid,.leadership-grid{grid-template-columns:1fr}
  .service-card{min-height:290px}
  .gallery-grid{grid-template-columns:1fr;grid-auto-rows:240px}
  .gallery-large{grid-column:auto}
  .people-image img{height:440px}
  .image-story{height:520px}
  .image-story-card{left:15px;right:15px;bottom:15px;min-width:0}
  .image-story-card h2{font-size:36px}
  .inner-hero{padding:145px 0 70px}
  .inner-hero h1{font-size:50px}
  .project-hero{height:650px}
  .project-hero-content{padding-bottom:55px}
  .project-hero-content h1{font-size:62px}
  .commercial-image img{height:380px}
  .form-card{padding:24px}
  .map-section{height:330px}
  .footer-grid{grid-template-columns:1fr;gap:35px}
  .footer-bottom{flex-direction:column}
  .cta-inner{align-items:flex-start;flex-direction:column}
  .cta-inner .btn{width:100%}
}

.gallery-item{margin:0 0 12px;break-inside:avoid;background:#fff}
.gallery-item img{display:block;width:100%;margin:0}
.gallery-item figcaption{padding:12px 14px 14px;border:1px solid var(--line);border-top:0;background:#fff}
.gallery-item figcaption strong{display:block;color:var(--ink);font-size:14px;line-height:1.35}
.gallery-item figcaption span{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:4px}



/* Final consistency pass: shared typography, navigation contrast, motion and responsive polish */
.site-header-solid{background:rgba(11,23,36,.97);backdrop-filter:blur(14px)}
.site-header-solid.scrolled{background:rgba(11,23,36,.98)}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}
.reveal.is-visible{opacity:1;transform:none}
.project-gallery .section-heading{margin-bottom:35px}
.project-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:250px;gap:14px}
.project-gallery-grid figure{position:relative;overflow:hidden;margin:0;border-radius:8px;background:var(--navy);isolation:isolate;box-shadow:0 8px 24px rgba(11,23,36,.08)}
.project-gallery-grid figure:nth-child(3n+1){grid-row:span 2}
.project-gallery-grid img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease,filter .6s ease}
.project-gallery-grid figure:hover img{transform:scale(1.04);filter:brightness(.78)}
.project-gallery-grid .gallery-caption{position:absolute;left:0;right:0;bottom:0;padding:42px 18px 16px;background:linear-gradient(to top,rgba(11,23,36,.94) 0%,rgba(11,23,36,.72) 42%,rgba(11,23,36,0) 100%);color:#fff;z-index:2}
.notice-success{padding:14px 16px;border-radius:10px;background:#e9f8ef;color:#126b3d;border:1px solid #ccefd9;margin-bottom:0}
@media(max-width:900px){.project-gallery-grid{grid-template-columns:1fr 1fr;grid-auto-rows:220px}.project-gallery-grid figure:nth-child(3n+1){grid-row:span 1}}
@media(max-width:600px){.main-nav.open{top:70px}.inner-hero h1{font-size:clamp(42px,13vw,50px)}.project-hero-content h1{font-size:clamp(44px,14vw,62px)}.project-gallery-grid{grid-template-columns:1fr;grid-auto-rows:250px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.reveal{opacity:1;transform:none}}


.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.gallery-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 12, 20, 0.88) 0%,
        rgba(5, 12, 20, 0.35) 38%,
        rgba(5, 12, 20, 0) 70%
    );
    pointer-events: none;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 55px 22px 22px;
    color: #fff;
}

.gallery-caption h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.gallery-caption p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.gallery-item:hover .gallery-image-wrap img {
    transform: scale(1.03);
}

.gallery-image-wrap img {
    transition: transform 0.5s ease;
}

@media (max-width: 600px) {
    .gallery-caption {
        padding: 40px 15px 15px;
    }

    .gallery-caption h3 {
        font-size: 16px;
    }

    .gallery-caption p {
        font-size: 12px;
    }
}


/* =========================================================
   PREMIUM GALLERY CAPTIONS
   ========================================================= */

.gallery-grid {
    align-items: start;
}

.gallery-item {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 31, 48, 0.10);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 31, 48, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 31, 48, 0.13);
    border-color: rgba(241, 91, 45, 0.25);
}

.gallery-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f2f2f0;
}

.gallery-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image-wrap img {
    transform: scale(1.035);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 55%,
        rgba(15, 31, 48, 0.18) 100%
    );
    pointer-events: none;
}

/* Caption area */

.gallery-caption {
    position: relative;
    display: block;
    margin: 0;
    padding: 18px 20px 20px;
    background: #ffffff;
    color: #0f1f30;
    min-height: 92px;
    box-sizing: border-box;
}

/* Gallery title */

.gallery-caption h3 {
    margin: 0 0 7px;
    padding: 0;
    color: #0f1f30;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

/* Gallery alt text / description */

.gallery-caption p {
    margin: 0;
    padding: 0;
    color: #66717d;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 400;
    overflow-wrap: anywhere;
}

/* When only alt text exists */

.gallery-caption p:first-child:last-child {
    color: #596572;
}

/* Better spacing inside the main gallery */

.gallery.section .gallery-grid {
    gap: 24px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .gallery.section .gallery-grid {
        gap: 18px;
    }

    .gallery-caption {
        padding: 16px 17px 18px;
        min-height: 88px;
    }

    .gallery-caption h3 {
        font-size: 16px;
    }

    .gallery-caption p {
        font-size: 12.5px;
    }

    .gallery-image-wrap img {
        min-height: 200px;
    }
}

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

@media (max-width: 600px) {

    .gallery.section .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-item {
        border-radius: 15px;
    }

    .gallery-image-wrap img {
        min-height: 220px;
        max-height: 360px;
    }

    .gallery-caption {
        padding: 15px 16px 17px;
        min-height: auto;
    }

    .gallery-caption h3 {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .gallery-caption p {
        font-size: 13px;
        line-height: 1.55;
    }
}


/* =========================================================
   FINAL GALLERY CAPTION FIX
   Matches the existing gallery HTML exactly:
   <figure>
     <img ...>
     <figcaption class="gallery-caption">
       <strong>Title</strong>
       <span>Alt text</span>
     </figcaption>
   </figure>
   ========================================================= */

/* Main public gallery: turn every image into a clean premium card. */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 24px !important;
  align-items: start !important;
}

/* Card */
.gallery-grid > figure {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(22,33,44,.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(11,23,36,.08) !important;
  isolation: isolate !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease !important;
}

.gallery-grid > figure:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 42px rgba(11,23,36,.13) !important;
  border-color: rgba(240,100,50,.28) !important;
}

/* Image area */
.gallery-grid > figure > img {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 270px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #f1f2f3 !important;
  transition: transform .5s ease, filter .5s ease !important;
}

.gallery-grid > figure:hover > img {
  transform: scale(1.035) !important;
  filter: brightness(.96) !important;
}

/* Caption: IMPORTANT - no longer absolute/over the image. */
.gallery-grid > figure > .gallery-caption {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: 3 !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 94px !important;
  margin: 0 !important;
  padding: 17px 19px 19px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 1px solid rgba(22,33,44,.07) !important;
  color: var(--ink) !important;
  pointer-events: auto !important;
  text-align: left !important;
}

/* Small orange accent above the title */
.gallery-grid > figure > .gallery-caption::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: var(--orange);
}

/* Title */
.gallery-grid > figure > .gallery-caption strong {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink) !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -.015em !important;
  text-shadow: none !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* Alt text / visible description */
.gallery-grid > figure > .gallery-caption span {
  display: block !important;
  width: 100% !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: var(--muted) !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .gallery-grid > figure > img {
    height: 235px !important;
  }

  .gallery-grid > figure > .gallery-caption {
    min-height: 92px !important;
    padding: 16px 17px 18px !important;
  }

  .gallery-grid > figure > .gallery-caption strong {
    font-size: 15px !important;
  }

  .gallery-grid > figure > .gallery-caption span {
    font-size: 12.5px !important;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 18px !important;
  }

  .gallery-grid > figure {
    border-radius: 15px !important;
  }

  .gallery-grid > figure > img {
    width: 100% !important;
    height: auto !important;
    min-height: 220px !important;
    max-height: 380px !important;
    object-fit: cover !important;
  }

  .gallery-grid > figure > .gallery-caption {
    min-height: auto !important;
    padding: 15px 16px 17px !important;
  }

  .gallery-grid > figure > .gallery-caption strong {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  .gallery-grid > figure > .gallery-caption span {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
}


/* =========================================================
   FINAL SITE-WIDE RESPONSIVE POLISH
   Desktop styles remain unchanged. These rules only improve
   tablet/mobile sizing, spacing, alignment and readability.
   ========================================================= */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 1180px;
}

/* Better touch targets without changing desktop appearance */
@media (max-width: 900px) {

  .container {
    width: min(100% - 36px, 1180px);
  }

  /* Header / navigation */
  .site-header {
    padding: 9px 0;
  }

  .nav-wrap {
    min-height: 58px;
    gap: 14px;
  }

  .brand {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  .main-nav {
    gap: 10px;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    padding: 9px;
    cursor: pointer;
    flex: 0 0 44px;
  }

  .menu-toggle span {
    width: 25px;
    margin: 5px auto;
  }

  .main-nav.open {
    top: 70px;
    left: 18px;
    right: 18px;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.08);
  }

  .main-nav.open > a:not(.nav-cta) {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .main-nav.open > a:not(.nav-cta):hover {
    background: rgba(255,255,255,.07);
  }

  .main-nav.open .nav-cta {
    margin-top: 5px;
    padding: 13px 14px;
  }

  /* General typography */
  h1 {
    font-size: clamp(42px, 8vw, 72px);
  }

  h2 {
    font-size: clamp(34px, 6vw, 54px);
  }

  .section,
  .section-dark {
    padding: 88px 0;
  }

  /* Home hero */
  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero-content h1 {
    max-width: 760px;
  }

  .hero-content p {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    min-height: 48px;
  }

  /* Two-column sections collapse cleanly */
  .split-intro,
  .project-grid,
  .people-grid,
  .about-layout,
  .values-grid,
  .project-intro,
  .commercial-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro-copy,
  .project-intro > div:last-child {
    padding-top: 0;
  }

  .project-visual {
    order: -1;
  }

  .project-visual > img {
    height: 520px;
  }

  .floating-card {
    left: 18px;
    bottom: 18px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
  }

  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .section-heading.compact .text-link {
    margin-top: 0;
  }

  /* Services */
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-card {
    min-height: 330px;
    padding: 25px;
  }

  /* People */
  .people-image img {
    height: 500px;
  }

  /* Inner pages */
  .inner-hero {
    padding: 155px 0 80px;
  }

  .inner-hero h1 {
    font-size: clamp(46px, 8vw, 72px);
  }

  .inner-hero p {
    font-size: 17px;
    line-height: 1.65;
  }

  .image-story {
    height: 560px;
  }

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

  .leadership-grid img {
    height: 420px;
  }

  /* Project page */
  .project-hero {
    height: 680px;
  }

  .project-hero-content {
    padding-bottom: 65px;
  }

  .project-hero-content h1 {
    font-size: clamp(52px, 9vw, 86px);
  }

  .unit-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .unit-card {
    min-height: 260px;
    padding: 24px;
  }

  .unit-card h3 {
    font-size: 36px;
  }

  .commercial-image img {
    height: 460px;
  }

  /* Contact */
  .contact-grid {
    gap: 40px;
  }

  .form-card {
    padding: 32px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
    min-height: 48px;
  }

  textarea {
    min-height: 150px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}


/* =========================================================
   PHONE — 600px AND BELOW
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 30px);
  }

  /* Header */
  .site-header {
    padding: 7px 0;
  }

  .nav-wrap {
    min-height: 52px;
  }

  .brand {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .nav-cta {
    padding: 9px 12px;
    font-size: 11px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .main-nav.open {
    top: 62px;
    left: 15px;
    right: 15px;
  }

  /* Typography */
  h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.06;
  }

  h3 {
    line-height: 1.12;
  }

  p {
    line-height: 1.65;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: .16em;
    margin-bottom: 13px;
  }

  /* Sections */
  .section,
  .section-dark {
    padding: 68px 0;
  }

  /* Hero */
  .hero {
    min-height: 690px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4,11,17,.88), rgba(4,11,17,.52)),
      linear-gradient(0deg, rgba(4,11,17,.72), transparent 65%);
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero-content h1 {
    max-width: 100%;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
    margin: 18px 0 24px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 49px;
  }

  /* Home intro */
  .split-intro,
  .project-grid,
  .people-grid,
  .about-layout,
  .values-grid,
  .project-intro,
  .commercial-layout,
  .contact-grid {
    gap: 34px;
  }

  .intro-copy p,
  .project-copy > p,
  .people-copy p,
  .project-intro p,
  .commercial-layout p,
  .about-main p {
    font-size: 15px;
  }

  /* Project highlight */
  .project-visual > img {
    height: 390px;
    border-radius: 10px;
  }

  .floating-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
    padding: 15px 17px;
  }

  .floating-card strong {
    font-size: 18px;
  }

  /* Services */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    min-height: 280px;
    padding: 24px;
    border-radius: 14px;
  }

  .service-card h3 {
    font-size: 29px;
  }

  /* Main gallery */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .gallery-grid > figure {
    border-radius: 15px !important;
  }

  .gallery-grid > figure > img {
    height: 250px !important;
    min-height: 0 !important;
    max-height: 380px !important;
  }

  .gallery-grid > figure > .gallery-caption {
    padding: 15px 16px 17px !important;
    min-height: auto !important;
  }

  .gallery-grid > figure > .gallery-caption strong {
    font-size: 16px !important;
  }

  .gallery-grid > figure > .gallery-caption span {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  /* People */
  .people-image img {
    height: 390px;
    border-radius: 10px;
  }

  /* CTA */
  .cta-band {
    padding: 52px 0;
  }

  .cta-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .cta-inner h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .cta-inner .btn {
    width: 100%;
    min-height: 49px;
  }

  /* Inner pages */
  .inner-hero {
    padding: 125px 0 62px;
  }

  .inner-hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .inner-hero p {
    font-size: 15px;
    margin-top: 18px;
  }

  .image-story {
    height: 470px;
    border-radius: 10px;
  }

  .image-story-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
    padding: 24px;
  }

  .image-story-card h2 {
    font-size: 32px;
  }

  .values-grid {
    gap: 25px;
  }

  .value-list article {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 22px 0;
  }

  .value-list h3 {
    font-size: 22px;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .leadership-grid img {
    height: 390px;
  }

  /* Project page */
  .project-hero {
    height: 590px;
  }

  .project-hero-content {
    padding-bottom: 45px;
  }

  .project-hero-content h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  .project-hero-content p {
    font-size: 15px;
    line-height: 1.6;
  }

  .unit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .unit-card {
    min-height: 220px;
    padding: 23px;
  }

  .unit-card h3 {
    font-size: 34px;
  }

  .commercial-image img {
    height: 340px;
    border-radius: 10px;
  }

  .masonry {
    columns: 1;
  }

  /* Contact */
  .contact-details h2 {
    margin-bottom: 25px;
  }

  .contact-item {
    padding: 18px 0;
  }

  .contact-item a {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .form-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .form-card h2 {
    font-size: 30px;
    margin-bottom: 24px;
  }

  /* Map */
  .map-section {
    height: 300px;
  }

  /* Footer */
  .footer {
    padding-top: 52px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 17px 0;
  }

  /* Buttons and links */
  .btn {
    min-height: 46px;
    padding: 12px 18px;
  }

  .text-link {
    min-height: 42px;
  }

  /* Prevent long words/URLs from breaking the mobile layout */
  p,
  h1,
  h2,
  h3,
  a,
  span,
  strong {
    overflow-wrap: anywhere;
  }
}


/* =========================================================
   VERY SMALL PHONES — 390px AND BELOW
   ========================================================= */

@media (max-width: 390px) {

  .container {
    width: calc(100% - 24px);
  }

  .brand {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .nav-cta {
    padding: 8px 10px;
    font-size: 10px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 62px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .section,
  .section-dark {
    padding: 58px 0;
  }

  .project-visual > img {
    height: 330px;
  }

  .people-image img {
    height: 340px;
  }

  .gallery-grid > figure > img {
    height: 220px !important;
  }

  .inner-hero {
    padding-top: 115px;
  }

  .project-hero {
    height: 540px;
  }

  .form-card {
    padding: 19px 15px;
  }
}
