:root {
  --blue: #2b499f;
  --blue-deep: #173574;
  --blue-soft: #eef2fb;
  --ink: #101827;
  --muted: #626b7a;
  --line: #dfe3ea;
  --surface: #f5f5f3;
  --white: #ffffff;
  --navy: #11182a;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 70px rgba(18,34,72,.14);
  --max: 1320px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.55; }
body.modal-open, body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[data-mobile-nav] { display: none; }
[data-mobile-nav][hidden] { display: none !important; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.section { padding: 104px 0; }
.section--soft { background: var(--surface); }
.section--blue { background: var(--blue); color: white; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: .77rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section--blue .eyebrow { color: rgba(255,255,255,.72); }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { line-height: 1.06; letter-spacing: -.04em; }
h1 { font-size: clamp(3.3rem, 6vw, 6.25rem); }
h2 { font-size: clamp(2.35rem, 4.1vw, 4.35rem); }
h3 { font-size: 1.4rem; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); color: var(--muted); max-width: 760px; }
.section--blue .lead { color: rgba(255,255,255,.8); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 52px; margin-bottom: 46px; }
.section-head h2 { margin-bottom: 0; max-width: 760px; }
.section-head p { max-width: 500px; margin-bottom: 4px; color: var(--muted); }
.section--blue .section-head p { color: rgba(255,255,255,.76); }
.text-link { color: var(--blue); font-weight: 760; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 760; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: white; background: var(--blue); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--light { background: white; color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.98); border-top: 4px solid #314556; box-shadow: 0 1px 0 rgba(20,33,60,.08); backdrop-filter: blur(16px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 30px; }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; height: 56px; }
.logo img { width: auto; height: 56px; max-width: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { font-size: .92rem; font-weight: 700; position: relative; }
.site-nav a::after { content: ''; position: absolute; height: 2px; left: 0; right: 100%; bottom: -7px; background: var(--blue); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.header-cta { margin-left: 2px; min-height: 46px; padding: 0 22px; }
.menu-button { display: none; background: transparent; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.menu-button span { position: absolute; width: 24px; height: 2px; background: currentColor; left: 10px; transition: .2s ease; }
.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 25px; }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0; background: white; z-index: 60; padding: 42px max(28px, calc((100vw - var(--max))/2 + 24px)); }

/* Home hero */
.hero { min-height: calc(100svh - var(--header-h)); margin-top: var(--header-h); position: relative; color: white; display: grid; align-items: end; overflow: hidden; background: #172039; }
.hero video, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,35,.72) 0%, rgba(8,16,35,.44) 43%, rgba(8,16,35,.18) 75%, rgba(8,16,35,.25) 100%), linear-gradient(180deg, rgba(8,16,35,.08) 0%, rgba(8,16,35,.15) 45%, rgba(8,16,35,.52) 100%); }
.hero__content { position: relative; z-index: 2; padding: 120px 0 86px; }
.hero__content h1 { max-width: 820px; margin-bottom: 24px; text-wrap: balance; }
.hero__content > p:not(.hero__kicker) { max-width: 680px; font-size: clamp(1.08rem, 1.45vw, 1.28rem); color: rgba(255,255,255,.88); margin-bottom: 28px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.hero__kicker::before { content: ''; width: 48px; height: 2px; background: white; }
.hero__scroll { position: absolute; right: 24px; bottom: 34px; z-index: 3; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; writing-mode: vertical-rl; opacity: .72; }

/* Home content */
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 74px; align-items: center; }
.intro-grid__media { min-height: 600px; border-radius: var(--radius) 0 var(--radius) var(--radius); overflow: hidden; position: relative; }
.intro-grid__media img { height: 100%; object-fit: cover; position: absolute; inset: 0; }
.intro-grid__copy h2 { margin-bottom: 26px; }
.intro-grid__copy .lead { margin-bottom: 28px; }
.quick-services { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 30px 0 32px; }
.quick-service { padding: 16px 18px; background: var(--blue-soft); border-radius: 14px; font-weight: 720; }

/* Project widgets */
.project-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 22px; }
.project-card { grid-column: span 4; min-width: 0; }
.project-card[hidden] { display: none; }
.project-card__button { position: relative; display: block; padding: 0; width: 100%; border: 0; background: #dfe3ea; text-align: left; cursor: pointer; overflow: hidden; border-radius: 22px; box-shadow: 0 0 0 rgba(18,34,72,0); transition: transform .28s ease, box-shadow .28s ease; }
.project-card__button:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card__media { aspect-ratio: 1.05 / 1; overflow: hidden; position: relative; background: #e6e8ed; }
.project-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,36,.03) 20%, rgba(10,18,36,.22) 58%, rgba(10,18,36,.82) 100%); transition: background .28s ease; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.project-card__button:hover .project-card__media img { transform: scale(1.045); }
.project-card__sector { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.project-card__arrow { position: absolute; z-index: 2; right: 18px; top: 18px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(17,24,39,.58); color: white; font-size: 1.15rem; backdrop-filter: blur(8px); transition: transform .2s ease, background .2s ease; }
.project-card__button:hover .project-card__arrow { transform: translate(3px,-3px); background: var(--blue); }
.project-card__content { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 28px 26px 24px; color: white; pointer-events: none; }
.project-card__content h3 { margin-bottom: 5px; font-size: clamp(1.55rem,2vw,2rem); }
.project-card__location { color: rgba(255,255,255,.76); font-size: .86rem; font-weight: 650; margin-bottom: 0; }
.project-card__content > p { max-height: 0; opacity: 0; overflow: hidden; margin: 0; color: rgba(255,255,255,.8); font-size: .9rem; transform: translateY(8px); transition: max-height .32s ease, opacity .32s ease, transform .32s ease, margin .32s ease; }
.project-card__button:hover .project-card__content > p { max-height: 110px; opacity: 1; transform: translateY(0); margin-top: 12px; }
[data-featured-projects] .project-card:nth-child(6n+1),
[data-featured-projects] .project-card:nth-child(6n+4) { grid-column: span 7; }
[data-featured-projects] .project-card:nth-child(6n+2),
[data-featured-projects] .project-card:nth-child(6n+3),
[data-featured-projects] .project-card:nth-child(6n+5),
[data-featured-projects] .project-card:nth-child(6n+6) { grid-column: span 5; }
[data-featured-projects] .project-card__media { aspect-ratio: 1.45 / 1; }
[data-featured-projects] .project-card:nth-child(6n+2) .project-card__media,
[data-featured-projects] .project-card:nth-child(6n+3) .project-card__media,
[data-featured-projects] .project-card:nth-child(6n+5) .project-card__media,
[data-featured-projects] .project-card:nth-child(6n+6) .project-card__media { aspect-ratio: 1 / 1; }

.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.process-card { min-height: 300px; padding: 32px; border-radius: var(--radius-sm); background: white; color: var(--ink); position: relative; overflow: hidden; }
.process-card h3 { position: relative; margin-top: 0; font-size: 1.85rem; }
.process-card p { position: relative; color: var(--muted); }

.sector-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.sector-card { min-height: 240px; padding: 28px; border-radius: var(--radius-sm); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; transition: background .2s ease, color .2s ease, transform .2s ease; }
.sector-card:hover { background: var(--blue); color: white; transform: translateY(-4px); }
.sector-card p { color: var(--muted); margin-bottom: 0; }
.sector-card:hover p { color: rgba(255,255,255,.76); }

.testimonial { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.testimonial__media { border-radius: var(--radius) var(--radius) 0 var(--radius); overflow: hidden; min-height: 520px; }
.testimonial__media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.testimonial__rotator { position: relative; display: flex; align-items: center; width: 100%; min-height: 0; }
.testimonial__content { width: 100%; opacity: 0; transition: opacity .5s ease; }
.testimonial__content.is-visible { opacity: 1; }
.testimonial blockquote { margin: 0; font-size: clamp(1.55rem, 2.35vw, 2.55rem); line-height: 1.28; letter-spacing: -.025em; }
.testimonial cite { display: flex; flex-direction: column; gap: 3px; margin-top: 28px; color: rgba(255,255,255,.72); font-size: .92rem; font-style: normal; }
.testimonial cite strong { color: white; font-size: .98rem; }
.testimonial cite span:empty { display: none; }

.cta-panel { border-radius: 24px; background: var(--blue); color: white; padding: 44px 50px; display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.cta-panel h2 { max-width: 620px; margin-bottom: 0; font-size: clamp(2.1rem,3.2vw,3.45rem); }

/* Inner pages */
.page-hero { padding: 168px 0 86px; background: var(--surface); }
.page-hero h1 { font-size: clamp(3rem,5.5vw,5.65rem); max-width: 950px; margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 0; }
.image-break { height: min(58vw, 680px); overflow: hidden; }
.image-break img { width:100%; height:100%; object-fit:cover; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.content-card { padding: 34px; border-radius: var(--radius-sm); background: var(--surface); }
.content-card h3 { margin-bottom: 14px; }
.team-grid, .services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.team-card, .service-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 30px; min-height: 260px; background: white; }
.team-card p, .service-card p { color: var(--muted); }
.service-card h3 { margin-top: 0; margin-bottom: 14px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 16px; font-weight: 720; cursor: pointer; }
.filter-chip.active, .filter-chip:hover { background: var(--blue); color: white; border-color: var(--blue); }
.project-modal { position: fixed; inset: 0; z-index: 100; background: rgba(9,17,37,.68); backdrop-filter: blur(10px); display: none; padding: 28px; overflow: auto; }
.project-modal.open { display: grid; place-items: start center; }
.project-modal__dialog { width: min(100%, 1040px); background: white; margin: 40px 0; border-radius: 26px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.project-modal__close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); font-size: 1.4rem; cursor: pointer; }
.project-modal__hero { height: min(58vw, 560px); }
.project-modal__hero img { width:100%; height:100%; object-fit:cover; }
.project-modal__body { padding: 48px; }
.project-modal__body h2 { font-size: clamp(2.4rem,5vw,4.6rem); margin-bottom: 6px; }
.project-modal__location { color: var(--blue); font-weight: 700; }
.project-modal__meta { color: var(--muted); font-size: .94rem; margin: -2px 0 22px; }
.project-modal__products { margin-top: 28px; }
.project-modal__products h3 { font-size: 1.15rem; margin-bottom: 10px; }
.project-modal__products ul { margin: 0; padding-left: 20px; color: var(--muted); }
.project-modal__gallery { display:grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 34px; }
.project-modal__gallery img { aspect-ratio: 4/3; object-fit:cover; border-radius: 14px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.contact-details { background: var(--blue); color:white; border-radius: var(--radius); padding: 42px; }
.contact-details a { display:block; font-size:1.15rem; margin-bottom: 10px; }
.contact-details p { color:rgba(255,255,255,.75); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-field { display:flex; flex-direction:column; gap:8px; }
.form-field--full { grid-column:1/-1; }
.form-field label { font-weight:720; font-size:.9rem; }
.form-field input, .form-field textarea { width:100%; border:1px solid var(--line); border-radius:12px; padding:14px 16px; background:white; }
.form-field textarea { min-height:150px; resize:vertical; }

/* Footer */
.site-footer { padding: 62px 0 28px; background: var(--navy); color: white; }
.footer-grid { display:grid; grid-template-columns: 1.55fr 1fr 1fr; gap:56px; padding-bottom:48px; }
.footer-logo-wrap { display: inline-flex; align-items: center; justify-content: center; background: white; padding: 12px; border-radius: 18px; margin-bottom: 24px; }
.footer-logo { width: 105px; height: auto; display: block; filter: none !important; }
.footer-copy { color:rgba(255,255,255,.64); max-width:410px; }
.footer-links { display:grid; gap:10px; }
.footer-links a { color:rgba(255,255,255,.74); }
.footer-links a:hover { color:white; }
.footer-label { font-weight:800; margin-bottom:16px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding-top:22px; display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.5); font-size:.82rem; }

@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .header-cta { padding-inline: 18px; }
  .project-card { grid-column: span 6; }
  [data-featured-projects] .project-card { grid-column: span 6 !important; }
  [data-featured-projects] .project-card__media { aspect-ratio: 1.15 / 1 !important; }
}

@media (max-width: 920px) {
  :root { --header-h: 78px; }

  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav, .header-cta { display:none; }

  .menu-button {
    display:block;
    position:relative;
    z-index:1002;
    margin-left:auto;
  }

  body.nav-open .menu-button span:first-child {
    top:21px;
    transform:rotate(45deg);
  }

  body.nav-open .menu-button span:last-child {
    top:21px;
    transform:rotate(-45deg);
  }

  [data-mobile-nav] {
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:100%;
    height:calc(100dvh - var(--header-h) - 4px);
    background:#fff;
    z-index:1000;
    padding:28px 34px max(40px, env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  body.nav-open [data-mobile-nav]:not([hidden]) {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }

  [data-mobile-nav] a {
    display:block;
    width:100%;
    padding:15px 0;
    border-bottom:1px solid var(--line);
    color:var(--ink);
    font-size:clamp(1.55rem, 7vw, 2rem);
    line-height:1.1;
    font-weight:780;
  }

  [data-mobile-nav] a:first-child {
    border-top:1px solid var(--line);
  }

  [data-mobile-nav] a.active {
    color:var(--blue);
  }

  [data-mobile-nav] .mobile-nav__quote {
    margin-top:28px;
    padding:15px 22px;
    border:0;
    border-radius:999px;
    background:var(--blue);
    color:#fff;
    text-align:center;
    font-size:1rem;
  }

  .logo, .logo img { height: 60px; }
  .sector-grid { grid-template-columns:repeat(2,1fr); }
  .team-grid, .services-grid { grid-template-columns:repeat(2,1fr); }
  .intro-grid, .testimonial, .split, .contact-grid { grid-template-columns:1fr; }
  .testimonial__media, .testimonial__media img { min-height: 460px; }
  .intro-grid__media { min-height:520px; order:-1; }
  .process-grid { grid-template-columns:1fr; }
  .process-card { min-height:220px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > :first-child { grid-column:1/-1; }
}

@media (max-width: 680px) {
  :root { --header-h: 72px; }
  .container { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:76px 0; }
  .header-inner { height: var(--header-h); }
  .logo, .logo img { height: 54px; }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero__content { padding:110px 0 62px; }
  .hero__content h1 { font-size:clamp(3rem,14vw,4.75rem); max-width:100%; }
  .hero__scroll { display:none; }
  .section-head { display:block; }
  .section-head p { margin-top:18px; }
  .quick-services, .sector-grid, .team-grid, .services-grid, .form-grid { grid-template-columns:1fr; }
  .project-card, [data-featured-projects] .project-card { grid-column:span 12 !important; }
  .project-card__media, [data-featured-projects] .project-card__media { aspect-ratio: 1 / 1 !important; }
  .project-card__content > p { display:none; }
  .cta-panel { padding:38px 28px; display:block; }
  .cta-panel .btn-row { margin-top:30px; }
  .page-hero { padding:132px 0 66px; }
  .project-modal { padding:10px; }
  .project-modal__dialog { margin:20px 0; border-radius:18px; }
  .project-modal__body { padding:28px 22px; }
  .project-modal__gallery { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > :first-child { grid-column:auto; }
  .testimonial blockquote { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .footer-bottom { flex-direction:column; }
}

/* Direct website enquiry form ------------------------------------------ */
.form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.form-status{min-height:1.5em;margin:14px 0 0;font-size:.92rem;font-weight:650}.form-status[data-state="sending"]{color:var(--muted)}.form-status[data-state="success"]{color:#176b3a}.form-status[data-state="error"]{color:#a72525}.form-field .btn:disabled{opacity:.65;cursor:wait}
