:root {
  --ink: #07162d;
  --ink-2: #0c2445;
  --blue: #1d3995;
  --red: #f01d2f;
  --paper: #f4f4f0;
  --white: #fff;
  --line: rgba(7, 22, 45, 0.16);
  --max: 1280px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.section { padding: clamp(88px, 10vw, 154px) 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 1000; background: var(--red); }

h1, h2, h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 600; line-height: .93; letter-spacing: -.025em; text-transform: uppercase; }
h1 { color: white; font-size: clamp(64px, 9vw, 142px); max-width: 1000px; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px rgba(255,255,255,.78); }
h2 { font-size: clamp(52px, 6.3vw, 92px); }
h3 { font-size: clamp(34px, 3vw, 48px); }
p { margin: 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow > span { width: 30px; height: 2px; background: var(--red); }
.eyebrow.light { color: rgba(255,255,255,.72); }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 24px; border: 0; background: var(--red); color: white; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .25s, transform .25s; }
.button:hover { background: #ca0f21; transform: translateY(-2px); }
.button span { font-size: 18px; }
.button-small { min-height: 46px; padding-inline: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 22px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { font-size: 16px; }
.text-link.light { color: white; }

.site-header { position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 92px; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; padding: 0 var(--pad); color: white; border-bottom: 1px solid rgba(255,255,255,.18); transition: height .3s, background .3s, box-shadow .3s; }
.site-header.scrolled { height: 76px; background: rgba(7,22,45,.96); box-shadow: 0 8px 30px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.brand { position: relative; width: 112px; height: 62px; display: flex; align-items: center; color: white; }
.brand img { position: static; width: 108px; height: auto; padding: 0; object-fit: contain; }
.desktop-nav { justify-self: center; display: flex; gap: clamp(22px, 3vw, 48px); }
.desktop-nav a { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; top: calc(100% + 7px); left: 0; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.desktop-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.phone-link { display: flex; flex-direction: column; font-family: "Barlow Condensed", sans-serif; font-size: 21px; font-weight: 600; line-height: 1.1; }
.phone-link span { margin-bottom: 5px; font: 700 9px "Manrope", sans-serif; letter-spacing: .16em; opacity: .55; text-transform: uppercase; }
.menu-button, .mobile-menu { display: none; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-media { --hero-image: url("public/assets/hero.jpg"); position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(3,14,30,.97) 0%, rgba(3,14,30,.82) 43%, rgba(3,14,30,.22) 100%), var(--hero-image); background-position: center, center 28%; background-size: auto, cover; background-repeat: no-repeat; transform: scale(1.03); animation: hero-in 1.5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-in { from { transform: scale(1.12); opacity: .4; } }
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, black, transparent 68%); }
.hero-content { position: relative; z-index: 2; padding-top: 120px; }
.hero-brand-plaque { width: clamp(275px, 28vw, 400px); margin-bottom: 40px; }
.hero-brand-plaque img { width: 100%; height: auto; filter: brightness(1.55) saturate(1.2) drop-shadow(0 3px 12px rgba(0,0,0,.5)); }
.hero-content p { max-width: 625px; margin: 36px 0 42px; color: rgba(255,255,255,.76); font-size: clamp(17px, 1.35vw, 20px); }
.hero-actions { display: flex; align-items: center; gap: 40px; }
.hero-rail { position: absolute; z-index: 2; right: -137px; bottom: 50%; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.52); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transform: rotate(90deg); }
.hero-rail i { width: 30px; height: 1px; background: rgba(255,255,255,.35); }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 10vw, 150px); }
.intro-copy { padding-top: 45px; }
.lead { max-width: 600px; margin-bottom: 22px; font: 600 clamp(25px, 2.3vw, 34px)/1.25 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.intro-copy > p:not(.lead) { max-width: 630px; color: #566172; }
.buildings { overflow: hidden; background: var(--ink); color: white; }
.section-heading { display: grid; grid-template-columns: 1fr 320px; align-items: end; gap: 50px; margin-bottom: 70px; }
.section-heading > p { padding-bottom: 6px; color: rgba(255,255,255,.6); }
.project-list { display: grid; gap: 24px; }
.project-card { position: relative; min-height: 480px; display: grid; grid-template-columns: 1.18fr .82fr; overflow: hidden; background: var(--ink-2); }
.project-card:nth-child(even) { grid-template-columns: .82fr 1.18fr; }
.project-card:nth-child(even) .project-image { order: 2; }
.project-image { min-height: 480px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .4s; }
.project-card:hover .project-image img { transform: scale(1.045); filter: saturate(1); }
.project-content { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 20px 32px; padding: clamp(32px, 5vw, 70px); }
.project-number { color: var(--red); font: 600 clamp(48px, 5vw, 72px)/.8 "Barlow Condensed", sans-serif; letter-spacing: -.03em; }
.project-content > div { align-self: center; }
.project-content h3 { margin-bottom: 22px; }
.project-content p { max-width: 380px; color: rgba(255,255,255,.57); font-size: 14px; }
.circle-button { grid-column: 2; justify-self: end; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: transparent; color: white; font-size: 22px; cursor: pointer; transition: border .25s, background .25s, transform .25s; }
.circle-button:hover { border-color: var(--red); background: var(--red); transform: rotate(45deg); }

.facebook-section { overflow: hidden; background: var(--paper); }
.facebook-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); align-items: center; gap: clamp(60px, 10vw, 150px); }
.facebook-copy h2 { max-width: 680px; font-size: clamp(48px, 5.4vw, 78px); }
.facebook-copy .button { margin-top: 42px; }
.facebook-feed { position: relative; min-height: 650px; overflow: hidden; border-top: 5px solid var(--red); background: white; box-shadow: 0 24px 70px rgba(7,22,45,.16); }
.facebook-feed::before { content: "Facebook"; position: absolute; right: -7px; top: 0; z-index: 0; color: rgba(29,57,149,.05); font: 600 150px/.8 "Barlow Condensed", sans-serif; text-transform: uppercase; transform: rotate(90deg) translateX(100%); transform-origin: right top; }
.facebook-feed iframe { position: relative; z-index: 1; display: block; width: 100%; max-width: 500px; height: 650px; border: 0; }

.contact { position: relative; overflow: hidden; background: #0a1a31; color: white; }
.contact-bg { position: absolute; inset: 0; opacity: .08; background: url("public/assets/contact.jpg") center/cover; filter: grayscale(1); }
.contact::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 80px 80px; opacity: .18; }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 10vw, 140px); }
.contact-intro > p { max-width: 470px; margin: 34px 0 50px; color: rgba(255,255,255,.65); }
.contact-details { display: grid; gap: 20px; }
.contact-details a { font-family: "Barlow Condensed", sans-serif; font-size: clamp(20px, 2vw, 28px); font-weight: 600; }
.contact-details small { display: block; margin-bottom: 5px; color: rgba(255,255,255,.45); font: 700 9px "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-self: start; padding: clamp(32px, 4.5vw, 60px); background: white; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid #cbd0d8; border-radius: 0; outline: none; background: transparent; color: var(--ink); padding: 10px 0 13px; transition: border .2s; }
.field textarea { min-height: 105px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.form-footer p { max-width: 260px; color: #7b8492; font-size: 10px; }

.site-footer { padding: 70px 0 22px; background: #040d1c; color: white; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; align-items: start; padding-bottom: 64px; }
.footer-brand { width: 210px; height: 118px; display: grid; place-items: center; background: white; overflow: hidden; }
.footer-brand img { width: 180px; }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
.footer-main small { margin-bottom: 18px; color: rgba(255,255,255,.38); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-main address { color: rgba(255,255,255,.72); font-style: normal; }
.footer-main a:not(.footer-brand) { margin-bottom: 7px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.detail-modal { width: min(560px, calc(100% - 40px)); padding: 60px; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.detail-modal::backdrop { background: rgba(2,8,18,.76); backdrop-filter: blur(7px); }
.detail-modal h2 { margin-bottom: 24px; font-size: 56px; }
.detail-modal p { margin-bottom: 34px; color: #5f6978; }
.modal-close { position: absolute; top: 18px; right: 22px; border: 0; background: none; font-size: 32px; cursor: pointer; }

/* Building detail pages */
.service-page { background: var(--paper); }
.service-header { position: fixed; }
.service-header .desktop-nav { gap: clamp(16px, 2vw, 30px); }
.service-header .desktop-nav a { font-size: 10px; }
.service-hero { position: relative; min-height: 690px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: white; }
.service-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,14,30,.94), rgba(3,14,30,.55) 64%, rgba(3,14,30,.25)), var(--service-image) center/cover; }
.service-hero::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 80px 80px; }
.service-hero-content { position: relative; z-index: 2; padding-bottom: clamp(70px, 8vw, 110px); }
.service-hero h1 { max-width: 1060px; font-size: clamp(64px, 8.6vw, 128px); }
.breadcrumbs { position: absolute; bottom: calc(100% + 80px); display: flex; gap: 10px; color: rgba(255,255,255,.56); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumbs a:hover { color: white; }
.service-overview { background: var(--paper); }
.service-overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 150px); }
.service-overview h2 { max-width: 620px; font-size: clamp(48px, 5.4vw, 78px); }
.service-body { padding-top: 40px; }
.service-body .lead { margin-bottom: 30px; }
.service-body > p:not(.lead) { margin-top: 20px; color: #566172; }
.service-uses { background: var(--ink); color: white; }
.service-section-head { display: grid; grid-template-columns: .4fr 1fr; align-items: start; margin-bottom: 70px; }
.service-section-head .eyebrow { margin-top: 8px; }
.service-section-head h2 { max-width: 850px; }
.uses-list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); list-style: none; }
.uses-list li { display: flex; align-items: center; gap: 28px; min-height: 92px; padding: 20px 30px 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.86); font: 500 clamp(20px, 2vw, 28px) "Barlow Condensed", sans-serif; text-transform: uppercase; }
.uses-list li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.16); }
.uses-list li:nth-child(even) { padding-left: 30px; }
.uses-list span { color: var(--red); font: 700 10px "Manrope", sans-serif; letter-spacing: .14em; }
.service-videos { background: var(--paper); }
.service-video-head { display: grid; grid-template-columns: .4fr 1fr; align-items: start; margin-bottom: 60px; }
.service-video-head .eyebrow { margin-top: 8px; }
.service-video-head h2 { max-width: 850px; }
.video-grid { display: grid; gap: 24px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); box-shadow: 0 24px 70px rgba(7,22,45,.18); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.service-gallery { background: #e8e8e3; }
.service-gallery-head { display: grid; grid-template-columns: 1fr 320px; align-items: end; gap: 50px; margin-bottom: 65px; }
.service-gallery-head > p { color: #66707e; }
.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(3, 240px); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; background: var(--ink); cursor: pointer; }
.gallery-item:first-child { grid-row: 1 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.035); opacity: .82; }
.service-cta { padding: clamp(80px, 9vw, 130px) 0; background: var(--blue); color: white; }
.service-cta .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.service-cta p { max-width: 480px; margin-bottom: 32px; color: rgba(255,255,255,.68); }
.service-footer { padding-top: 70px; }
.lightbox { width: min(1180px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0 70px; border: 0; overflow: visible; background: transparent; }
.lightbox::backdrop { background: rgba(2,8,18,.9); backdrop-filter: blur(8px); }
.lightbox figure { position: relative; margin: 0; }
.lightbox img { width: 100%; max-height: calc(100vh - 50px); object-fit: contain; }
.lightbox figcaption { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; background: rgba(7,22,45,.82); color: white; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.lightbox button { border: 0; cursor: pointer; }
.lightbox-close { position: fixed; top: 20px; right: 20px; z-index: 2; width: 42px; height: 42px; background: white; color: var(--ink); font-size: 26px; }
.lightbox-arrow { position: fixed; top: 50%; z-index: 2; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 50%; background: rgba(7,22,45,.72); color: white; font-size: 23px; transform: translateY(-50%); transition: background .2s, border-color .2s; }
.lightbox-arrow:hover { border-color: var(--red) !important; background: var(--red); }
.lightbox-prev { left: 5px; }
.lightbox-next { right: 5px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 130px 1fr auto; }
  .desktop-nav { display: none; }
  .header-actions .phone-link { display: none; }
  .menu-button { position: relative; z-index: 102; width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; margin-left: 16px; border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; }
  .menu-button span { width: 21px; height: 2px; background: white; transition: transform .25s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu { position: fixed; top: 0; left: 0; z-index: 101; width: 100vw; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding-top: 70px; background: #07162d; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; }
  .mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .brand, .header-actions { position: relative; z-index: 102; }
  .mobile-menu a { font: 600 clamp(36px, 6vw, 60px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
  .mobile-menu a:last-child { margin-top: 28px; color: var(--red); font-size: 24px; }
  .contact-grid { gap: 50px; }
  .service-overview-grid { gap: 60px; }
  .service-cta .wrap { gap: 50px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .site-header { height: 74px; grid-template-columns: 1fr auto; }
  .site-header.scrolled { height: 68px; }
  .brand { width: 105px; height: 54px; }
  .brand img { width: 100px; padding: 0; }
  .hero-brand-plaque { width: min(300px, 82vw); margin-bottom: 34px; }
  .header-actions { display: none; }
  .hero { min-height: 800px; }
  .hero-content { padding-top: 90px; }
  .hero-content p { margin-top: 28px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 26px; }
  .hero-rail { display: none; }
  .intro-grid, .section-heading, .facebook-layout, .contact-grid { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 420px; }
  .project-card, .project-card:nth-child(even) { min-height: 0; grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-image { order: 0; }
  .project-image { min-height: 270px; height: 55vw; max-height: 390px; }
  .project-content { min-height: 320px; padding: 32px; }
  .project-content p { font-size: 13px; }
  .facebook-layout { gap: 50px; }
  .facebook-feed { width: min(500px, 100%); min-height: 620px; }
  .facebook-feed iframe { height: 620px; }
  .enquiry-form { grid-template-columns: 1fr; padding: 32px 22px; }
  .field { grid-column: 1; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; gap: 42px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom span:nth-child(2) { display: none; }
  .detail-modal { padding: 52px 28px 34px; }
  .detail-modal h2 { font-size: 46px; }
  .service-hero { min-height: 620px; }
  .service-hero h1 { font-size: clamp(58px, 17vw, 84px); }
  .breadcrumbs { bottom: calc(100% + 50px); }
  .service-overview-grid, .service-section-head, .service-video-head, .service-gallery-head, .service-cta .wrap { grid-template-columns: 1fr; }
  .service-body { padding-top: 0; }
  .uses-list { grid-template-columns: 1fr; }
  .uses-list li:nth-child(odd) { border-right: 0; }
  .uses-list li:nth-child(even) { padding-left: 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 280px); }
  .gallery-item:first-child { grid-row: auto; }
  .service-cta .wrap { gap: 40px; }
  .lightbox { width: calc(100% - 16px); padding: 0 42px; }
  .lightbox-arrow { width: 38px; height: 38px; font-size: 18px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-close { top: 12px; right: 12px; }
}

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