:root {
  --red: #d90624;
  --red-dark: #b30520;
  --ink: #141414;
  --ink-soft: #5c5c5c;
  --bg: #f5f4f1;
  --paper: #ffffff;
  --dark: #111111;
  --dark-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.08);
  --line-light: #e5e0d6;
  --container: 1220px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.topbar {
  background: var(--red);
  color: #fff;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.topbar-inner p {
  margin: 0;
}

.topbar-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar a:hover {
  opacity: 0.78;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow 180ms ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 80px;
}

.brand img {
  width: 172px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-links a {
  color: #5a5a5a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.35rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 140ms ease, background 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.nav-cta {
  min-height: 40px;
  padding: 0.6rem 1.25rem;
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #0d0d0d;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: brightness(0.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.55) 42%,
    rgba(10, 10, 10, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 5.5rem 0;
}

.hero-copy {
  max-width: 540px;
  color: #fff;
  text-align: right;
}

.eyebrow,
.kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 0.32rem 0.8rem;
  background: var(--red);
  color: #fff;
}

.hero h1,
.section-h,
.page-title,
.capability-service h3,
.project-card h3,
.capability-card h3,
.quote-form h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.4rem, 7.5vw, 6.2rem);
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-lead {
  max-width: 32rem;
  margin: 1.4rem 0 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

.dark-hero {
  background: var(--dark);
  color: #fff;
}

.page-hero-inner {
  max-width: 850px;
  padding: 6rem 0;
}

.page-title {
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.page-hero p {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
}

.dark-hero p {
  color: rgba(255, 255, 255, 0.68);
}

.section-h {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.section-head {
  margin-bottom: 3rem;
}

.section-head > p {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.centered {
  text-align: center;
}

.centered > p,
.centered .section-head > p {
  margin-left: auto;
  margin-right: auto;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.3rem;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.text-link {
  display: inline-flex;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--red-dark);
}

.about-section {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  gap: 4rem;
  align-items: center;
}

.about-body p,
.check-row p,
.project-card p,
.project-story p,
.contact-info p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-light);
}

.stat-cell {
  min-height: 150px;
  padding: 1.6rem;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--bg);
}

.stat-cell:nth-child(2n) {
  border-right: 0;
}

.stat-cell:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat-n {
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.stat-l {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-section,
.contact-section,
.footer {
  background: var(--dark);
  color: #fff;
}

.services-section .kicker,
.contact-section .kicker {
  color: rgba(255, 255, 255, 0.45);
}

.services-capability {
  display: grid;
  gap: 1.15rem;
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: 1.3rem;
}

.services-intro-copy {
  display: grid;
  gap: 0.7rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--red);
}

.services-intro-copy span,
.capability-service-head small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-intro-copy p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.65;
}

.services-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.services-gallery-item {
  position: relative;
  min-height: clamp(220px, 18vw, 260px);
  margin: 0;
  overflow: hidden;
  background: var(--dark-2);
}

.services-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.08) 56%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.22));
  pointer-events: none;
}

.services-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: grayscale(0.08) brightness(0.78) contrast(1.08);
}

.services-gallery-feature img {
  object-position: center 48%;
}

.services-gallery-item figcaption {
  position: absolute;
  left: 0.95rem;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-gallery-item figcaption span {
  width: 7px;
  height: 7px;
  background: var(--red);
}

.capability-service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-service {
  display: grid;
  grid-template-rows: auto minmax(8.6rem, auto) minmax(4.2rem, auto) 1fr;
  align-content: stretch;
  gap: 1.25rem;
  min-height: 430px;
  padding: clamp(1.35rem, 2.2vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46%),
    rgba(255, 255, 255, 0.015);
}

.capability-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.capability-service-head span {
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.capability-service h3 {
  color: #fff;
  font-size: clamp(2rem, 2.7vw, 3.1rem);
}

.capability-service p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.capability-service ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.capability-service li {
  position: relative;
  padding: 0.78rem 0 0.78rem 1.05rem;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capability-service li::before {
  content: "";
  position: absolute;
  top: 1.18rem;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.project-section,
.gallery-section,
.why-section,
.capability-section {
  background: var(--bg);
}

.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--line-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border-left: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 82px;
  padding: 1rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.trust-item span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--red);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow);
}

.project-card img {
  height: 260px;
  object-fit: cover;
}

.project-card-body {
  padding: 1.35rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 2rem;
}

.project-card p {
  margin: 0.9rem 0 1.2rem;
}

.site-checklist {
  display: grid;
  border-top: 1px solid var(--line-light);
}

.check-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-light);
}

.check-row span {
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}

.check-row strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.check-row p {
  margin: 0;
}

.capability-section {
  background: #fff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.capability-card {
  padding: 1.6rem;
  background: var(--bg);
  border: 1px solid var(--line-light);
}

.capability-card h3 {
  font-size: 1.9rem;
}

.capability-card dl {
  display: grid;
  gap: 0.95rem;
  margin: 1.25rem 0 0;
}

.capability-card div {
  display: grid;
  gap: 0.25rem;
}

.capability-card dt {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.capability-card dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.clients-section {
  padding: 4.5rem 0;
  background: var(--bg);
  color: var(--ink);
}

.clients-inner {
  text-align: center;
}

.clients-inner .kicker {
  display: block;
}

.clients-inner .section-h {
  margin-bottom: 2.5rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.clients-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.client-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 158px;
  padding: 1.55rem;
  background: #fbfaf7;
}

.client-logo {
  --logo-w: 190px;
  --logo-h: 72px;
  width: auto;
  height: auto;
  max-width: min(100%, var(--logo-w));
  max-height: var(--logo-h);
  object-fit: contain;
}

.client-logo-fdc {
  --logo-w: 230px;
  --logo-h: 70px;
}

.client-logo-cpb {
  --logo-w: 230px;
  --logo-h: 58px;
}

.client-logo-acciona {
  --logo-w: 190px;
  --logo-h: 76px;
}

.client-logo-rix {
  --logo-w: 178px;
  --logo-h: 92px;
}

.client-logo-bmd {
  --logo-w: 235px;
  --logo-h: 72px;
}

.client-logo-billbergia {
  --logo-w: 260px;
  --logo-h: 70px;
}

.cta-section {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 5.5rem 0;
}

.cta-section p {
  margin: 1rem auto 2rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.6;
}

.cta-actions,
.contact-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta-actions {
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: start;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 42rem;
}

.contact-actions {
  margin-top: 1.8rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 2.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.contact-list strong {
  color: var(--red);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list span {
  font-family: "Oswald", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}

.abn {
  color: rgba(255, 255, 255, 0.4);
}

.quote-form {
  display: grid;
  gap: 1rem;
  padding: 1.85rem;
  background: var(--dark-2);
  border: 1px solid var(--line);
}

.quote-form h2 {
  color: #fff;
  font-size: 2.2rem;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171717;
  color: #fff;
  outline: none;
  padding: 1rem;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #777;
}

.form-botcheck {
  display: none;
}

.form-submit {
  width: 100%;
}

.project-detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}

.project-detail-hero > img,
.project-detail-overlay {
  position: absolute;
  inset: 0;
}

.project-detail-hero > img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.project-detail-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
}

.project-detail-copy {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  color: #fff;
}

.project-detail-copy p {
  max-width: 45rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
  gap: 3rem;
}

.project-facts {
  display: grid;
  gap: 1rem;
  align-self: start;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line-light);
}

.project-facts div {
  display: grid;
  gap: 0.25rem;
}

.project-facts strong {
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-story {
  max-width: 760px;
}

.project-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}

.project-results h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-results ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-results li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.project-results li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  height: 280px;
  object-fit: cover;
}

.notice {
  grid-column: 1 / -1;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line-light);
}

.notice h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
}

.thank-section {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background:
    linear-gradient(135deg, rgba(217, 6, 36, 0.18), transparent 32%),
    var(--dark);
  color: #fff;
}

.thank-inner {
  display: flex;
  justify-content: center;
}

.thank-card {
  width: min(100%, 780px);
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(27, 27, 27, 0.96);
  border: 1px solid var(--line);
}

.thank-card .page-title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.thank-card p {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.65;
}

.thank-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer img {
  width: 172px;
  opacity: 0.95;
}

.footer-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1080px) {
  .project-grid,
  .gallery-grid,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-intro,
  .services-gallery,
  .capability-service-list {
    grid-template-columns: 1fr;
  }

  .capability-service {
    grid-template-rows: none;
    min-height: auto;
  }

  .capability-service p {
    min-height: 0;
  }

  .trust-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .clients-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid,
  .contact-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .topbar-inner {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    min-height: 34px;
    padding: 0.34rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .topbar-inner p {
    display: none;
  }

  .topbar-meta {
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
  }

  .navbar-inner {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.78rem 0;
    border-top: 1px solid var(--line-light);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-overlay {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.24));
  }

  .hero-content {
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 640px;
    padding: 4rem 0;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-lead {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .page-hero-inner {
    padding: 4rem 0;
  }

  .section {
    padding: 4.5rem 0;
  }

  .split-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .project-grid,
  .capability-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .services-capability {
    gap: 1.25rem;
  }

  .services-intro {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .services-intro-copy {
    padding-left: 1rem;
  }

  .services-gallery {
    gap: 1px;
  }

  .services-gallery-item {
    min-height: 180px;
  }

  .services-gallery-item figcaption {
    left: 1rem;
    bottom: 0.9rem;
  }

  .capability-service {
    padding: 1.2rem;
  }

  .check-row {
    grid-template-columns: 44px 1fr;
    gap: 0.75rem 1rem;
  }

  .check-row p {
    grid-column: 2;
  }

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

  .trust-item {
    min-height: 72px;
    justify-content: flex-start;
    text-align: left;
  }

  .clients-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-cell {
    min-height: 124px;
    padding: 1.15rem;
  }

  .stat-cell,
  .stat-cell:nth-child(2n),
  .stat-cell:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .stat-cell:last-child {
    border-bottom: 0;
  }

  .contact-list span {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .project-meta {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .page-title {
    font-size: 2.85rem;
  }

  .section-h {
    font-size: 2.55rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
