@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Source+Serif+4:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #002050;
  --blue: #0858a0;
  --cyan: #0080b8;
  --text: #1e3047;
  --muted: #45586c;
  --border: #d9e2eb;
  --light: #f2f7fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 1rem/1.6 Inter, Arial, sans-serif; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.16; }
h1 { font-size: clamp(2.55rem, 4.6vw, 4.45rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.2vw, 3.05rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.035em; }
h4 { font-size: 1.04rem; line-height: 1.4; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(1232px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: -80px; left: 12px; padding: 10px; background: white; z-index: 2; }
.skip:focus { top: 12px; }
.header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { flex: none; }
.brand img { width: 116px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 42px); }
nav a { color: var(--navy); font-size: .875rem; font-weight: 600; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 11px 17px; color: white; background: var(--navy); border-radius: 3px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--blue); text-decoration: none; }
.hero { background: var(--light); }
.hero-grid { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); padding-block: 56px; }
.intro p { max-width: 520px; margin-block: 22px 28px; color: var(--muted); font-size: 1.075rem; }
.hero-photo { min-width: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; border-radius: 3px; }
.section { padding-block: 64px; }
.section-heading { margin-bottom: 27px; }
.department-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.department { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 0; border: 1px solid var(--border); border-top: 3px solid var(--cyan); }
.department h3 { padding: 20px 22px 17px; }
.offerings { list-style: none; margin: 0; padding: 0 22px 9px; }
.offerings li { padding-block: 14px; border-top: 1px solid var(--border); }
.offerings p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.industries { background: var(--light); }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.industry-grid li { padding: 15px; background: white; border: 1px solid var(--border); color: var(--navy); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(200px, .65fr) 1fr; gap: 24px; align-items: start; }
.split p { max-width: 680px; }
.contact { background: var(--navy); color: white; }
.contact h2 { color: white; }
.contact a { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .department-grid { gap: 12px; }
  .department h3 { padding-inline: 15px; }
  .offerings { padding-inline: 15px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  nav { flex-wrap: wrap; gap: 7px 14px; }
  nav a { font-size: .8rem; }
  nav .button { padding: 6px 9px; }
  .brand img { width: 94px; }
  .hero-grid, .department-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 35px 23px; gap: 25px; }
  .section { padding-block: 40px; }
  .department { display: block; }
  .industry-grid li { font-size: .875rem; padding: 10px; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

nav a[aria-current="page"]:not(.button) { color: var(--blue); text-decoration: underline; }
.page-intro { background: linear-gradient(115deg, #edf5fb, #f8fafc); border-bottom: 1px solid var(--border); padding-block: clamp(44px, 7vw, 88px); }
.page-intro p { margin-top: 18px; color: var(--muted); max-width: 670px; font-size: 1.1rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.detail-card { padding: 24px; background: white; border: 1px solid var(--border); border-top: 3px solid var(--cyan); }
.detail-card p { margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }
.detail-card h3 a { text-decoration: none; }
.detail-card h3 a:hover { text-decoration: underline; }
.detail-card h3 a span { color: var(--blue); }
.practice-nav { flex-wrap: wrap; gap: 12px 28px; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.practice { margin-top: 36px; scroll-margin-top: 24px; }
.practice > p, .section > .split { margin-top: 14px; }
.inline-link { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 600; }
.light-button { margin-top: 15px; background: white; color: var(--navy); }
.light-button:hover { background: #cbe7fa; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px 15px; margin-bottom: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .detail-grid { grid-template-columns: 1fr; } .footer div { overflow-wrap: anywhere; } }

.experience-intro { background: linear-gradient(90deg, #002050 15%, #002050ed 42%, #00205089), url("assets/refinery.webp") center 53% / cover; }
.experience-intro h1, .experience-intro p { color: white; }
.experience-intro .button { margin-top: 20px; background: white; color: var(--navy); }
.experience-intro .button:hover { background: #dceffb; }
.portfolio-controls { margin-top: 22px; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.portfolio-filters button { border: 1px solid #a5bdd3; background: white; color: var(--navy); border-radius: 4px; padding: 8px 12px; font: inherit; font-size: .875rem; cursor: pointer; }
.portfolio-filters button[aria-pressed="true"] { color: white; background: var(--navy); border-color: var(--navy); }
.portfolio-controls label { display: block; font-weight: 600; }
.portfolio-controls input { display: block; width: min(100%, 420px); margin-block: 5px 9px; border: 1px solid #a5bdd3; border-radius: 4px; padding: 9px 12px; font: inherit; color: var(--navy); }
.portfolio-controls button:focus-visible, .portfolio-controls input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
#work-count { font-size: .875rem; color: var(--muted); }
#work-empty { margin-top: 16px; }
.detail-card { border-radius: 4px; box-shadow: 0 4px 18px #00205008; }
.detail-card .work-status { margin: 0 0 9px; color: var(--blue); font-size: .78rem; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .arrive { animation: arrive .48s ease-out both; }
  .detail-card { transition: box-shadow .2s ease; }
  .detail-card:hover, .detail-card:focus-within { box-shadow: 0 9px 25px #0020501b; }
  @keyframes arrive { from { opacity: .45; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}

:root {
  --cream: #faf8f0;
  --light: #f1eee5;
  --navy: #092644;
  --blue: #135c80;
  --cyan: #157da4;
  --text: #223144;
  --muted: #425267;
  --border: #dedbd0;
  --display: "Barlow Condensed", "Arial Narrow", Inter, sans-serif;
  --editorial: "Source Serif 4", Georgia, serif;
}
body { background: var(--cream); }
.header { background: var(--cream); }
nav a, .button { text-transform: uppercase; letter-spacing: .085em; }
.button { border: 1px solid transparent; border-radius: 0; }
.outline-button { color: var(--navy); background: transparent; border-color: var(--navy); }
.outline-button:hover { color: white; background: var(--navy); }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .96; letter-spacing: -.015em; }
h1 { font-size: clamp(3.3rem, 6.3vw, 6.35rem); }
h2 { font-size: clamp(2.45rem, 4vw, 4.2rem); }
.editorial-hero { background: var(--cream); border-bottom: 1px solid var(--border); }
.editorial-hero .hero-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 4vw, 64px); padding-block: clamp(44px, 7vw, 100px); }
.intro h1 em { font-style: normal; color: var(--blue); }
.intro p, .page-intro p, .feature-inner p, .about-feature p { font-family: var(--editorial); font-size: clamp(1.1rem, 1.65vw, 1.42rem); line-height: 1.53; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.editorial-hero .hero-photo img { aspect-ratio: 1.17; object-fit: cover; border-radius: 0; }
.section { padding-block: clamp(45px, 6vw, 86px); }
.practice-photo { position: relative; display: flex; align-items: end; min-height: 300px; padding: 25px; background: #132d46 center / cover; color: white; text-decoration: none; isolation: isolate; }
.practice-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#061626f5 4%,#061626c7 37%,#0616261c 88%); }
.practice-photo h3 { font: 700 clamp(1.6rem, 3vw, 2.35rem)/1 var(--display); text-transform: uppercase; color: white; letter-spacing: .01em; }
.practice-photo p { margin: 10px 0 15px; }
.practice-photo span { font-size: .85rem; font-weight: 700; text-underline-offset: 4px; }
.practice-photo:hover span { text-decoration: underline; }
.technology-photo { background-image: url("assets/refinery.webp"); }
.advisory-photo { background-image: url("assets/industry.webp"); }
.industry-photo { background-image: url("assets/industry.webp"); }
.team-photo { background-image: url("assets/energy.webp"); }
.portfolio-feature { color: white; background: linear-gradient(90deg,#071d35f5,#071d35c9 55%,#071d3550), url("assets/energy.webp") center 58% / cover; }
.feature-inner { padding-block: clamp(65px, 10vw, 136px); }
.feature-inner h2, .photo-intro h1, .photo-intro p { color: white; }
.feature-inner p { margin-top: 15px; max-width: 570px; }
.about-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,70px); align-items: center; }
.about-feature img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.about-feature p { margin-top: 15px; }
.photo-intro { position: relative; isolation: isolate; background-color: #132d46; background-size: cover; background-position: center 46%; padding-block: clamp(60px, 9vw, 115px); }
.photo-intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#071d35fa,#071d35e5 55%,#071d357e); }
.contact { background: #0b2844; }
.detail-card { border-radius: 0; }
@media(max-width: 900px) { .practices-home .detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .practice-photo { min-height: 260px; padding: 15px; } }
@media(max-width: 680px) { .editorial-hero .hero-grid, .practices-home .detail-grid, .about-feature { grid-template-columns: 1fr; } .editorial-hero .hero-photo img { aspect-ratio: 1.55; } .practice-photo { min-height: 235px; } .photo-intro::before { background: #071d35d9; } }

.brochure-link { margin-top: 17px; }
.enquiry-section { max-width: 770px; }
.enquiry-section form { margin-top: 18px; background: white; border: 1px solid var(--border); padding: clamp(18px, 5vw, 36px); }
.enquiry-section label { display: block; margin-bottom: 5px; font-weight: 600; }
.enquiry-section input, .enquiry-section select, .enquiry-section textarea { display: block; width: 100%; margin-bottom: 16px; border: 1px solid #a5b6c3; background: white; color: var(--navy); padding: 10px; font: inherit; }
.enquiry-section textarea { resize: vertical; }
.enquiry-section .button { cursor: pointer; }
.enquiry-section .button:disabled { opacity: .65; cursor: wait; }
.enquiry-section :focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.enquiry-note { margin-bottom: 14px; color: var(--muted); font-size: .875rem; }
#enquiry-status:not(:empty) { margin-top: 12px; }
#email-fallback[hidden] { display: none; }

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--border);
}
.service-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--light);
}
.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}
.service-body p { margin-bottom: 17px; }
.service-body .brochure-link { margin-top: auto; }

.practice-photo.advisory-photo { background-image: url("assets/tender-procurement-advisory.webp"); }
.practice-photo.industry-photo { background-image: url("assets/industrial-automation-logistics.webp"); }
