
:root {
  --navy-950: #07131e;
  --navy-900: #0a1d2a;
  --navy-800: #102c3a;
  --green-950: #003a28;
  --green-800: #07583f;
  --gold-500: #c8a24c;
  --gold-300: #e7cf88;
  --cream: #f5f2e9;
  --white: #ffffff;
  --ink: #14212a;
  --muted: #61717c;
  --line: rgba(255,255,255,.16);
  --shadow: 0 24px 70px rgba(0,0,0,.22);
  --radius: 24px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: #041018;
  overscroll-behavior-y: none;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: #041018;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
  background: var(--cream);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(7,19,30,.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0,0,0,.24);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  width: 225px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}
.brand img {
  width: 100%;
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--white);
  font-size: .92rem;
  font-weight: 700;
}
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--gold-500);
  transition: right .2s ease;
}
.site-nav a:hover::after { right: 0; }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(231,207,136,.75);
  border-radius: 999px;
}
.menu-toggle { display: none; }

.hero {
  min-height: 860px;
  height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero.webp");
  background-size: cover;
  background-position: center 51%;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,15,22,.93) 0%, rgba(4,21,27,.72) 44%, rgba(5,18,24,.20) 72%),
    linear-gradient(0deg, rgba(7,19,30,.72) 0%, transparent 35%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 70px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--green-800); }
.hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(3.4rem, 7.5vw, 7.6rem);
  line-height: .96;
  letter-spacing: -.045em;
}
.hero-lead {
  max-width: 710px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}
.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.hero-stats {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(var(--max), calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(7,19,30,.47);
  backdrop-filter: blur(14px);
}
.hero-stats div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong {
  display: block;
  color: var(--gold-300);
  font-size: 1.1rem;
}
.hero-stats span {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}

.section { padding: 108px 0; }
.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}
h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.intro-copy {
  font-size: 1.08rem;
  color: #334852;
}
.intro-copy p:first-child {
  margin-top: 2px;
  font-size: 1.35rem;
  color: var(--ink);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.trust-row span,
.chip-list span,
.network-list span {
  border: 1px solid rgba(10,45,58,.18);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: .84rem;
  font-weight: 700;
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(7,88,63,.28), transparent 30%),
    var(--navy-950);
}
.section-heading { margin-bottom: 55px; }
.split-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 80px;
  align-items: end;
}
.split-heading > p {
  margin: 0 0 8px;
  color: rgba(255,255,255,.64);
}
.projects .split-heading > p { color: var(--muted); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service-card {
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.065);
  border-color: rgba(231,207,136,.34);
}
.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.service-card p { color: rgba(255,255,255,.68); }
.service-card ul {
  padding-left: 18px;
  color: rgba(255,255,255,.83);
}

.image-band { background: var(--navy-950); }
.image-band-card {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}
.image-band-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,19,30,.1), rgba(7,19,30,.05) 50%, rgba(7,19,30,.75));
}
.image-band-card img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: center 42%;
}
.image-band-copy {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 70px;
  width: min(560px, calc(100% - 40px));
  color: var(--white);
}
.image-band-copy h2 { font-size: clamp(2.3rem, 4vw, 4.2rem); }

.sector-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}
.sector-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(18,38,48,.08);
}
.sector-image {
  height: 420px;
  overflow: hidden;
}
.sector-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sector-copy { padding: 34px; }
.sector-kicker {
  margin: 0 0 8px;
  color: var(--green-800);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sector-copy h3 {
  margin: 0 0 22px;
  font-family: "Source Serif 4", serif;
  font-size: 2rem;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.industrial-panel {
  position: relative;
  min-height: 100%;
  color: var(--white);
  background: var(--green-950);
}
.industrial-panel .sector-kicker { color: var(--gold-300); }
.industrial-panel .chip-list span { border-color: rgba(255,255,255,.23); }
.sector-description {
  margin-top: 30px;
  color: rgba(255,255,255,.7);
}
.technical-pattern {
  position: absolute;
  inset: auto -120px -90px auto;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(231,207,136,.25);
  border-radius: 50%;
}
.technical-pattern::before,
.technical-pattern::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(231,207,136,.18);
  border-radius: 50%;
}
.technical-pattern::before { inset: 55px; }
.technical-pattern::after { inset: 120px; }

.section-gold {
  background:
    linear-gradient(110deg, rgba(255,255,255,.12), transparent 35%),
    var(--gold-300);
}
.experience-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
}
.feature-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-top: 1px solid rgba(7,19,30,.19);
}
.feature-list article:last-child { border-bottom: 1px solid rgba(7,19,30,.19); }
.feature-list article > span {
  color: var(--green-800);
  font-weight: 800;
}
.feature-list h3 { margin: 0 0 7px; font-size: 1.15rem; }
.feature-list p { margin: 0; color: rgba(20,33,42,.72); }

.network-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.network-copy > p:not(.eyebrow) {
  color: rgba(255,255,255,.68);
  font-size: 1.05rem;
}
.network-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}
.network-list span { border-color: rgba(255,255,255,.2); }
.network-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.network-image img {
  width: 100%;
  height: 610px;
  object-fit: cover;
}
.network-image figcaption {
  padding: 14px 0 0;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: repeat(2, 340px);
  gap: 16px;
}
.project {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-900);
}
.project-large { grid-row: 1 / span 2; }
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project:hover img { transform: scale(1.025); }
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,19,30,.9), transparent 48%);
}
.project figcaption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: var(--white);
}
.project figcaption strong {
  display: block;
  font-size: 1.14rem;
}
.project figcaption span {
  color: rgba(255,255,255,.68);
  font-size: .88rem;
}
.confidentiality-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.contact {
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(7,88,63,.4), transparent 28%),
    var(--navy-950);
}
.contact-shell {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: start;
}
.contact-intro > p:not(.eyebrow) { color: rgba(255,255,255,.68); }
.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  font-weight: 700;
}
.contact-details a:first-child {
  color: var(--gold-300);
  font-size: 1.35rem;
}
.contact-details span { color: rgba(255,255,255,.55); }
.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.form-row .form-field {
  min-width: 0;
}
.form-row .form-field input {
  min-height: 52px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  outline: 0;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.contact-form select option { color: var(--ink); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(231,207,136,.12);
}

.telephone-group {
  display: grid;
  grid-template-columns: minmax(118px, .42fr) minmax(0, 1fr);
  gap: 10px;
}
.contact-form .country-code {
  min-width: 0;
  padding-left: 10px;
  padding-right: 8px;
}
.character-count {
  justify-self: end;
  color: rgba(255,255,255,.48);
  font-size: .75rem;
  font-weight: 500;
}

.form-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.48);
  font-size: .75rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.68);
  background: #041018;
}
.footer-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0;
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 42px;
}
.footer-brand img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1200 / 329;
  object-fit: contain;
  image-rendering: auto;
  margin-bottom: 18px;
}
.footer-brand p { max-width: 320px; }
.footer-column h2 {
  margin-bottom: 15px;
  color: var(--gold-300);
  font-family: "Manrope", sans-serif;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-column p,
.footer-column a { display: block; margin: 0 0 7px; }
.footer-bottom {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .brand { width: 190px; }
  .site-nav {
    position: fixed;
    inset: 86px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(7,19,30,.98);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 10px; }
  .nav-cta { margin-top: 7px; text-align: center; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    border: 0;
    padding: 10px;
    background: transparent;
  }
  .menu-toggle span:not(.sr-only) {
    width: 26px;
    height: 2px;
    background: var(--white);
  }
  .intro-grid,
  .experience-grid,
  .network-grid,
  .contact-shell,
  .split-heading {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .sector-layout { grid-template-columns: 1fr; }
  .industrial-panel { min-height: 450px; }
  .footer-shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { width: min(100% - 28px, var(--max)); height: 76px; }
  .brand { width: 165px; }
  .site-nav { inset: 76px 14px auto; }
  .hero { min-height: 760px; }
  .hero-content {
    width: calc(100% - 28px);
    padding-top: 30px;
  }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.9rem); }
  .hero-lead { font-size: 1rem; }
  .hero-stats {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .hero-stats div {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .section { padding: 76px 0; }
  .section-shell { width: calc(100% - 28px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 48px; }
  .image-band-card,
  .image-band-card img { min-height: 560px; height: 560px; }
  .image-band-copy { bottom: 38px; }
  .sector-image { height: 320px; }
  .network-image img { height: 480px; }
  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 520px 320px 320px;
  }
  .project-large { grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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

.project-gallery-expanded{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,320px)}
.project-gallery-expanded .project-feature{grid-column:span 2}
.project-gallery-expanded .project-tall{grid-row:span 2}
@media(max-width:980px){.service-grid{grid-template-columns:repeat(2,1fr)}.project-gallery-expanded{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(4,320px)}}
@media(max-width:720px){.service-grid{grid-template-columns:1fr}.service-card h3{margin-top:0}.project-gallery-expanded{grid-template-columns:1fr;grid-template-rows:none}.project-gallery-expanded .project,.project-gallery-expanded .project-feature,.project-gallery-expanded .project-tall{grid-column:auto;grid-row:auto;min-height:330px}}

.project-gallery-expanded{grid-template-columns:repeat(4,1fr);grid-auto-rows:320px}
.project-gallery-expanded .project-feature{grid-column:span 2}
.project-gallery-expanded .project-tall{grid-row:span 2}
.project-gallery-expanded .project img{width:100%;height:100%;object-fit:cover;object-position:center}
@media(max-width:980px){.project-gallery-expanded{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.project-gallery-expanded{grid-template-columns:1fr;grid-auto-rows:340px}.project-gallery-expanded .project-feature,.project-gallery-expanded .project-tall{grid-column:auto;grid-row:auto}}

/* Version 5.2 capabilities layout: two rows of three cards on desktop. */
@media (min-width: 981px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Prevent the first letter of the network caption being clipped. */
.network-image figcaption {
  padding-left: 8px;
}


/* Version 5 accessibility and contact-form enhancements */
:focus-visible { outline: 3px solid #f0b64d; outline-offset: 3px; }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] { border-color: #ff8a80; box-shadow: 0 0 0 2px rgba(255,138,128,.2); }
.consent-row { display:flex !important; flex-direction:row !important; align-items:flex-start; gap:.75rem; font-size:.9rem; line-height:1.5; }
.consent-row input { width:1.1rem; height:1.1rem; margin-top:.2rem; flex:0 0 auto; }
.consent-row a, .footer-bottom a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.honeypot { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; clip:rect(1px,1px,1px,1px) !important; white-space:nowrap !important; }
.form-status { min-height:1.5rem; font-weight:600; }
.form-status.success { color:#a9e8bc; }
.form-status.error { color:#ffb4ac; }
.button[disabled] { opacity:.65; cursor:wait; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
  .reveal { opacity:1 !important; transform:none !important; }
}

@media (max-width: 520px) {
  .telephone-group { grid-template-columns: 1fr; }
}


/* Issue 6.1 production mobile refinements */
body { overflow-x: hidden; }
button, .button, .site-nav a, input, select, textarea { touch-action: manipulation; }
.button, .nav-cta, .menu-toggle { min-width: 44px; min-height: 44px; }
.mobile-call-button {
  display: none;
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 90;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(231,207,136,.65);
  border-radius: 999px;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
  font-size: .88rem;
  font-weight: 800;
}

/* Custom 404 page uses the website's actual logo, typefaces and palette. */
.error-page { min-height: 100svh; display: flex; flex-direction: column; background: var(--navy-950); }
.error-header { position: fixed; }
.error-header-contact { min-height: 44px; padding-inline: 20px; }
.error-main { position: relative; flex: 1; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: var(--white); }
.error-background { position: absolute; inset: 0; background: url("assets/images/hero.webp") center 54% / cover no-repeat; transform: scale(1.015); }
.error-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,15,22,.96) 0%, rgba(4,21,27,.84) 48%, rgba(5,18,24,.32) 80%), linear-gradient(0deg, rgba(7,19,30,.7), transparent 42%); }
.error-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 145px 0 80px; }
.error-code { margin: 0; color: var(--gold-300); font-family: "Manrope", sans-serif; font-size: clamp(5rem, 15vw, 10rem); font-weight: 800; line-height: .82; letter-spacing: -.075em; }
.error-content h1 { max-width: 760px; margin: 18px 0 0; font-family: "Source Serif 4", serif; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .98; letter-spacing: -.04em; }
.error-content > p:not(.eyebrow):not(.error-code) { max-width: 620px; color: rgba(255,255,255,.78); font-size: clamp(1rem, 2vw, 1.18rem); }
.error-footer .footer-bottom { padding-bottom: max(28px, env(safe-area-inset-bottom)); }

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .hero { height: auto; min-height: max(720px, 100svh); }
  .hero-content { padding-top: 92px; padding-bottom: 190px; }
  .hero h1 { font-size: clamp(2.85rem, 13vw, 4.8rem); line-height: .98; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  h2 { font-size: clamp(2.15rem, 10.5vw, 3.45rem); }
  .intro-copy p:first-child { font-size: 1.15rem; }
  .service-card { padding: 22px; }
  .sector-copy { padding: 26px 22px; }
  .network-image img { height: min(480px, 120vw); }
  .project-gallery-expanded { grid-auto-rows: clamp(280px, 92vw, 390px); }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .contact-form textarea { min-height: 150px; resize: vertical; }
  .footer-shell { padding-bottom: 72px; }
  .mobile-call-button { display: inline-flex; }
  .error-main { min-height: 100svh; }
  .error-header-contact { padding-inline: 15px; font-size: .82rem; }
  .error-content { width: calc(100% - 28px); padding: 120px 0 125px; }
  .error-content .hero-actions { max-width: 420px; }
}

@media (max-width: 390px) {
  .header-inner { width: calc(100% - 22px); }
  .brand { width: 148px; }
  .hero-content, .section-shell { width: calc(100% - 24px); }
  .hero h1 { font-size: clamp(2.55rem, 13.5vw, 3.35rem); }
  .eyebrow { letter-spacing: .13em; }
  .contact-form { padding: 18px; }
  .telephone-group { grid-template-columns: 1fr; }
  .footer-shell, .footer-bottom { width: calc(100% - 24px); }
  .error-header-contact { display: none; }
}

@media (hover: none) {
  .button:hover, .service-card:hover { transform: none; }
  .project:hover img { transform: none; }
}

/* Issue 7.1: ensure mobile browser overscroll reveals the footer colour, not a light page canvas. */
html, body {
  background-color: #041018;
}

@media (max-width: 720px) {
  body {
    min-height: 100svh;
  }
  main {
    background: var(--cream);
  }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
