/* BG Injekt — Metric Civil design system */

@font-face {
  font-family: "Geom Graphic";
  src: url("https://cdn.prod.website-files.com/69cd93c94e190d89bd24bee7/6a153525e8b0de8ffd3b1a64_Geom_Graphic_SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Arialnova;
  src: url("https://cdn.prod.website-files.com/69cd93c94e190d89bd24bee7/6a153525c46fc0415e846525_ArialNova.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Arialnova;
  src: url("https://cdn.prod.website-files.com/69cd93c94e190d89bd24bee7/6a15352517f9aa93b55e95c1_ArialNova-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --swatch-tan: #fff5e8;
  --swatch-dark-tan: #eee1d3;
  --swatch-black: #1d1d1d;
  --swatch-blue: #0057a5;
  --swatch-blue-hover: #004785;
  --swatch-grey: #898b8d;
  --swatch-light-grey: #f6f6f6;
  --swatch-stroke: #cecece;
  --swatch-white: #ffffff;
  --swatch-transparent: transparent;

  --font-heading: "Geom Graphic", Arial, sans-serif;
  --font-body: Arialnova, Arial, Helvetica, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, monospace;

  --container: 85em;
  --pad-x: 1.5em;
  --space-80: 5em;
  --space-96: 6em;
  --space-144: 9em;
  --space-240: 15em;
  --radius: 0.25em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 7.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--swatch-black);
  background: var(--swatch-tan);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) and (max-width: 1439px) {
  body {
    font-size: 1.25vw;
  }
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

address {
  font-style: normal;
}

.page-wrapper {
  overflow-x: clip;
}

.page-padding {
  padding-inline: max(var(--pad-x), env(safe-area-inset-left)) max(var(--pad-x), env(safe-area-inset-right));
}

.container-1360 {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.padding-section-md {
  padding-block: clamp(4em, 8vw, var(--space-80));
}

.padding-section-lg {
  padding-block: clamp(5em, 12vw, var(--space-144));
}

/* Typography */
.heading-78,
.heading-64,
.heading-48,
.heading-40,
.heading-24,
.heading-16 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--swatch-black);
}

.heading-78 { font-size: clamp(2.5em, 6vw, 4.875em); }
.heading-64 { font-size: clamp(2.25em, 5vw, 4em); }
.heading-48 { font-size: clamp(2em, 4vw, 3em); }
.heading-40 { font-size: clamp(1.75em, 3vw, 2.5em); }
.heading-24 { font-size: clamp(1.25em, 2vw, 1.5em); }
.heading-16 { font-size: 1em; }

.text-size-20 {
  font-size: clamp(1.0625em, 1.5vw, 1.3125em);
  line-height: 1.55;
  font-weight: 400;
}

.text-size-16 {
  font-size: 1.0625em;
  line-height: 1.55;
}

.text-size-14 {
  font-size: 0.9375em;
  line-height: 1.55;
  color: var(--swatch-grey);
}

.text-size-12 {
  font-size: 0.8125em;
  line-height: 1.55;
  color: var(--swatch-grey);
}

.labels {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--swatch-black);
}

.labels.is-sm {
  font-size: 0.8em;
  letter-spacing: 0.28em;
}

/* Buttons — Metric style */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em 1.5em;
  color: var(--swatch-tan);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: transparent;
  font: inherit;
  isolation: isolate;
  transition: transform 0.3s var(--ease);
}

.btn-primary .btn-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 1em;
  font-weight: 600;
  line-height: 1.2;
}

.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
  background: var(--swatch-blue);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.btn-primary:hover .btn-bg {
  transform: scale(1.01);
  background: var(--swatch-blue-hover);
}

.btn-primary.is-outline {
  color: var(--swatch-tan);
}

.btn-primary.is-outline .btn-bg {
  background: transparent;
  border: 1.5px solid var(--swatch-tan);
}

.btn-primary.is-outline:hover .btn-bg {
  background: var(--swatch-tan);
}

.btn-primary.is-outline:hover {
  color: var(--swatch-black);
}

.btn-block {
  width: 100%;
}

.btn-nav {
  width: 3em;
  height: 3em;
  border: 1px solid var(--swatch-stroke);
  border-radius: var(--radius);
  background: transparent;
  color: var(--swatch-black);
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-nav:hover {
  background: var(--swatch-black);
  border-color: var(--swatch-black);
  color: var(--swatch-tan);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 7rem;
  width: auto;
  object-fit: contain;
}

/* Navbar */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  background: linear-gradient(180deg, rgba(29, 29, 29, 0.45) 0%, transparent 100%);
  transition: background 0.3s, opacity 0.35s var(--ease), transform 0.35s var(--ease);
  padding-top: env(safe-area-inset-top);
}

.navbar.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.75rem);
}

.navbar.is-scrolled {
  background: rgba(255, 245, 232, 0.94);
  backdrop-filter: blur(10px);
}

.navbar.is-scrolled .nav-link,
.navbar.is-scrolled .menu-button {
  color: var(--swatch-black);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  min-height: var(--nav-h);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2em;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95em;
  font-weight: 600;
  color: var(--swatch-tan);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15em;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
  border-radius: var(--radius);
}

.lang-switch--menu {
  display: none;
}

.lang-switch img {
  width: 11.25rem;
  height: auto;
  display: block;
  transition: transform 0.45s var(--ease);
}

.lang-switch.is-flipped img {
  transform: rotate(180deg);
}

.navbar:not(.is-scrolled) .lang-switch img {
  filter: brightness(0) invert(1);
}

.navbar.is-scrolled .lang-switch img,
.navbar.is-open .lang-switch img {
  filter: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--swatch-tan);
}

.menu-button span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero — sticky photo → outline → blank wipe */
.section-home-hero {
  position: relative;
  height: 260vh;
  background: var(--swatch-tan);
}

.home-hero_sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.home-hero_layers {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero_outline,
.home-hero_photo {
  position: absolute;
  inset: 0;
}

.home-hero_outline {
  z-index: 0;
  background: var(--swatch-tan);
}

.home-hero_photo {
  z-index: 1;
  clip-path: inset(0 0 0% 0);
  will-change: clip-path;
}

.home-hero_cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--swatch-tan);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(29, 29, 29, 0.35) 0%,
    rgba(29, 29, 29, 0.55) 55%,
    rgba(29, 29, 29, 0.72) 100%
  );
  opacity: 1;
  transition: none;
  will-change: opacity;
}

.home-hero_content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(4em, 10vw, 7em);
  padding-top: calc(var(--nav-h) + 2em);
  opacity: 1;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

/* Text is only visible at the very top of the page — hides the instant you scroll */
.section-home-hero.is-scrolling-hero .home-hero_content {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
}

.home-hero_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25em;
  max-width: 42em;
}

.home-hero_brand {
  font-family: var(--font-heading);
  font-size: clamp(1.25em, 2.5vw, 1.75em);
  font-weight: 600;
  color: var(--swatch-tan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: fadeUp 0.8s var(--ease) both;
  transition: color 0.15s linear;
}

.home-hero_heading {
  /* Keep index hero H1 at the previous absolute size (rem), not scaled with body. */
  font-size: clamp(2.5rem, 6vw, 4.875rem);
  color: var(--swatch-tan);
  text-transform: uppercase;
  animation: fadeUp 0.8s 0.1s var(--ease) both;
  transition: color 0.15s linear;
}

.home-hero_subheading {
  color: var(--swatch-dark-tan);
  max-width: 32em;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
  transition: color 0.15s linear;
}

/* After wipe: light outline canvas → dark type */
.section-home-hero.is-revealed .home-hero_brand,
.section-home-hero.is-revealed .home-hero_heading {
  color: var(--swatch-black);
}

.section-home-hero.is-revealed .home-hero_subheading {
  color: var(--swatch-grey);
}

@media (prefers-reduced-motion: reduce) {
  .section-home-hero {
    height: auto;
  }

  .home-hero_sticky {
    position: relative;
    height: 100vh;
  }

  .home-hero_photo,
  .home-hero_cover {
    clip-path: none !important;
    display: none;
  }

  .home-hero_content {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .section-home-hero .home-hero_brand,
  .section-home-hero .home-hero_heading {
    color: var(--swatch-black);
  }

  .section-home-hero .home-hero_subheading {
    color: var(--swatch-grey);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About */
.section-home-about {
  background: var(--swatch-tan);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2em, 5vw, 5em);
  align-items: start;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.about-copy-media {
  width: 100%;
  margin-top: 0.75em;
  overflow: hidden;
  border-radius: var(--radius);
}

.about-copy-media img {
  display: block;
  width: 100%;
  height: 26em;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}

.about-copy-media:hover img {
  transform: scale(1.04);
}

.about-media {
  overflow: hidden;
  border-radius: var(--radius);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-media:hover img {
  transform: scale(1.04);
}

/* Capabilities — overlapping hover gallery */
.section-capabilities {
  position: relative;
  overflow: hidden;
  background: var(--swatch-tan);
  color: var(--swatch-black);
}

.section-capabilities .heading-48,
.section-capabilities .heading-24,
.section-capabilities .labels {
  color: var(--swatch-black);
}

.section-capabilities .text-size-20,
.section-capabilities .text-size-16 {
  color: var(--swatch-grey);
}

.capabilities-head {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 36em;
  margin-bottom: 3em;
}

.capabilities-stage {
  width: min(100%, 72em);
  margin-inline: auto;
}

.capabilities-gallery {
  --border-size: 5px;
  --border-color: var(--swatch-tan);
  --grid-cols: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  display: grid;
  grid-template-columns: var(--grid-cols);
  width: 100%;
  aspect-ratio: 1.75 / 1;
  transition: grid 300ms ease-in-out;
  counter-reset: cap-panel;
}

.capabilities-gallery:has(:nth-child(1):hover),
.capabilities-stage[data-active="1"] .capabilities-gallery {
  --grid-cols: 6fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.capabilities-gallery:has(:nth-child(2):hover),
.capabilities-stage[data-active="2"] .capabilities-gallery {
  --grid-cols: 1fr 1fr 1fr 6fr 1fr 1fr 1fr 1fr 1fr;
}

.capabilities-gallery:has(:nth-child(3):hover),
.capabilities-stage[data-active="3"] .capabilities-gallery {
  --grid-cols: 1fr 1fr 1fr 1fr 1fr 6fr 1fr 1fr 1fr;
}

.capabilities-gallery:has(:nth-child(4):hover),
.capabilities-stage[data-active="4"] .capabilities-gallery {
  --grid-cols: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 6fr 1fr;
}

.capabilities-gallery-panel {
  position: relative;
  overflow: hidden;
  grid-row: 1;
  border: var(--border-size) solid var(--border-color);
  border-radius: 0 0 0 30% / 0 0 0 50%;
  corner-shape: notch;
  background-image: var(--bg-img);
  background-size: 720px 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 300ms ease-in-out;
  cursor: pointer;
}

.capabilities-gallery-panel:first-child {
  border-radius: 0;
}

.capabilities-gallery-panel:hover,
.capabilities-gallery-panel:hover + .capabilities-gallery-panel {
  border-radius: 0;
}

.capabilities-gallery-panel:nth-child(1) { grid-column: 1 / span 3; }
.capabilities-gallery-panel:nth-child(2) { grid-column: 3 / span 3; }
.capabilities-gallery-panel:nth-child(3) { grid-column: 5 / span 3; }
.capabilities-gallery-panel:nth-child(4) { grid-column: 7 / span 3; }

.capabilities-gallery-panel::before {
  content: counter(cap-panel, decimal-leading-zero) ".";
  counter-increment: cap-panel;
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--swatch-tan);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transform: scale(0);
  transition: transform 150ms ease-in-out;
}

.capabilities-gallery-panel:hover::before {
  transform: scale(1);
}

/* Detail text below gallery — fades in on panel hover */
.capabilities-detail {
  position: relative;
  min-height: 7.5em;
  margin-top: 1.75em;
}

.capabilities-detail-item {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  max-width: 40em;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  opacity: 0;
  transform: translateY(0.75em);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.capabilities-detail-item .labels {
  letter-spacing: 0.28em;
}

.capabilities-gallery:has(:nth-child(1):hover) ~ .capabilities-detail [data-panel="1"],
.capabilities-gallery:has(:nth-child(2):hover) ~ .capabilities-detail [data-panel="2"],
.capabilities-gallery:has(:nth-child(3):hover) ~ .capabilities-detail [data-panel="3"],
.capabilities-gallery:has(:nth-child(4):hover) ~ .capabilities-detail [data-panel="4"],
.capabilities-stage[data-active="1"] .capabilities-detail [data-panel="1"],
.capabilities-stage[data-active="2"] .capabilities-detail [data-panel="2"],
.capabilities-stage[data-active="3"] .capabilities-detail [data-panel="3"],
.capabilities-stage[data-active="4"] .capabilities-detail [data-panel="4"],
.capabilities-detail-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 991px) {
  .capabilities-gallery {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .capabilities-gallery-panel {
    background-size: cover;
  }
}

@media (max-width: 640px) {
  .capabilities-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 1 / 1;
    gap: 0.35em;
  }

  .capabilities-gallery-panel,
  .capabilities-gallery-panel:first-child,
  .capabilities-gallery-panel:hover,
  .capabilities-gallery-panel:hover + .capabilities-gallery-panel {
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: var(--radius);
    background-size: cover;
  }

  .capabilities-gallery-panel::before {
    transform: scale(1);
  }

  /* On touch devices: tap/focus shows text via :focus-within / active class fallback */
  .capabilities-detail {
    min-height: 8.5em;
  }

  .capabilities-gallery-panel:focus-visible ~ .capabilities-detail .capabilities-detail-item,
  .capabilities-gallery:has(:nth-child(1):active) ~ .capabilities-detail [data-panel="1"],
  .capabilities-gallery:has(:nth-child(2):active) ~ .capabilities-detail [data-panel="2"],
  .capabilities-gallery:has(:nth-child(3):active) ~ .capabilities-detail [data-panel="3"],
  .capabilities-gallery:has(:nth-child(4):active) ~ .capabilities-detail [data-panel="4"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scope / services */
.section-scope {
  background: var(--swatch-tan);
}

.scope-count,
.projects-head .labels,
#scopeCount,
#projectCount {
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.12em;
}

.scope-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1em;
  margin-bottom: 2em;
}

.scope-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 28em;
}

.scope-slide {
  display: none;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  height: 100%;
  background: var(--swatch-black);
  color: var(--swatch-tan);
  animation: fadeUp 0.55s var(--ease) both;
}

.scope-slide.is-active {
  display: grid;
}

.scope-slide-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--swatch-black);
}

.scope-slide-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scope-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1em;
  padding: 2.5em;
}

.scope-slide-copy .heading-40 {
  color: var(--swatch-tan);
  text-transform: uppercase;
}

.scope-slide-copy .text-size-16 {
  color: var(--swatch-dark-tan);
}

.scope-controls {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 1.5em;
}

/* Stats */
.section-stats {
  background: var(--swatch-tan);
  border-block: 1px solid var(--swatch-dark-tan);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.stat .heading-64 {
  letter-spacing: -0.02em;
}

/* Projects */
.section-projects {
  background: var(--swatch-black);
  color: var(--swatch-tan);
}

.section-projects .heading-48,
.section-projects .projects-head .labels {
  color: var(--swatch-tan);
}

.section-projects .btn-nav {
  border-color: rgba(255, 245, 232, 0.35);
  color: var(--swatch-tan);
}

.section-projects .btn-nav:hover {
  background: var(--swatch-tan);
  border-color: var(--swatch-tan);
  color: var(--swatch-black);
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1em;
}

/* Track sits in page-padding (Metric) — full bleed within side padding, not container-1360 */
.projects-track {
  display: flex;
  gap: 1.5em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5em;
}

.projects-track::-webkit-scrollbar {
  display: none;
}

/* Metric-style tan cards with locked identical image boxes */
.project-card {
  flex: 0 0 auto;
  width: min(56em, 90vw);
  scroll-snap-align: start;
  display: flex;
  align-items: stretch;
  gap: 3em;
  padding: 1.5em;
  border-radius: 0.5em;
  background: var(--swatch-tan);
  color: var(--swatch-black);
}

.project-card-media {
  flex: none;
  width: 26.5em;
  height: 25.875em;
  max-width: 26.5em;
  border-radius: 0.5em;
  overflow: hidden;
  position: relative;
}

.project-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card-media img {
  transform: scale(1.03);
}

.project-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75em;
  padding-block: 0.5em;
  min-width: 0;
}

.project-meta .labels,
.project-meta .heading-24 {
  color: var(--swatch-black);
}

.project-meta .text-size-14 {
  color: var(--swatch-grey);
}

.projects-controls {
  margin-top: 1.5em;
}

.projects-intro {
  max-width: 42em;
  margin: 0 0 2em;
  color: var(--swatch-dark-tan);
}

/* Why choose BGInjekt */
.section-why {
  background: var(--swatch-tan);
}

.why-title {
  max-width: 18em;
  margin-bottom: 2.5em;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25em 2.5em;
  max-width: 56em;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85em;
  font-family: var(--font-heading);
  font-size: clamp(1em, 1.5vw, 1.25em);
  font-weight: 600;
  line-height: 1.35;
  color: var(--swatch-black);
}

.why-check {
  flex: none;
  color: var(--swatch-blue);
  font-size: 1.15em;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .why-list {
    grid-template-columns: 1fr;
  }
}

/* Testimonials (legacy, unused on homepage) */
.section-testimonials {
  background: var(--swatch-tan);
}

.testimonials-title {
  max-width: 18em;
  margin-bottom: 3em;
}

.testimonials-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5em;
  align-items: center;
}

.testimonials-track {
  position: relative;
  min-height: 12em;
}

.testimonial {
  display: none;
  flex-direction: column;
  gap: 2em;
  max-width: 40em;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.5s var(--ease) both;
}

.testimonial.is-active {
  display: flex;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.testimonial cite {
  font-style: normal;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 2em;
}

.testimonials-dots button {
  width: 0.55em;
  height: 0.55em;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--swatch-stroke);
  cursor: pointer;
}

.testimonials-dots button[aria-selected="true"] {
  background: var(--swatch-blue);
}

/* CTA */
.section-cta {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  max-width: 28em;
  padding-block: 6em;
  color: var(--swatch-tan);
}

.cta-inner .labels,
.cta-inner .heading-64 {
  color: var(--swatch-tan);
}

.cta-inner .text-size-20 {
  color: var(--swatch-dark-tan);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 0.75em;
}

/* Form */
.section-form {
  background: var(--swatch-dark-tan);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2em, 5vw, 4em);
  align-items: start;
}

.form-intro {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.section-form .heading-40 {
  font-size: clamp(1.95em, 3.4vw, 2.85em);
}

.section-form .form-intro .text-size-16 {
  font-size: 1.1875em;
  line-height: 1.55;
}

.section-form .form-points.text-size-14,
.section-form .form-points {
  font-size: 1.0625em;
  line-height: 1.55;
}

.form-points {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1em;
  color: var(--swatch-black);
}

.form-points li {
  padding-left: 1.1em;
  position: relative;
}

.form-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--swatch-blue);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  background: var(--swatch-tan);
  padding: clamp(1.5em, 3vw, 2.5em);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  min-width: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  min-width: 0;
}

.form-row label {
  font-family: var(--font-heading);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--swatch-black);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1.0625em;
  padding: 0.9em 1.05em;
  border: 1px solid var(--swatch-stroke);
  border-radius: var(--radius);
  background: var(--swatch-white);
  color: var(--swatch-black);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d1d1d' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 0.75em;
  padding-right: 2.5em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--swatch-blue);
  outline-offset: 1px;
}

.form-status {
  min-height: 1.4em;
  font-size: 1.0625em;
}

.form-status.is-ok {
  color: #1a7a4c;
}

.form-status.is-err {
  color: #b42318;
}

/* Visit */
.section-visit {
  background: var(--swatch-tan);
}

.visit-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2em;
  align-items: stretch;
}

.visit-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.visit-address {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  font-family: var(--font-body);
}

.section-visit .labels,
.section-visit .labels.is-sm {
  font-family: var(--font-heading);
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--swatch-black);
}

.section-form .form-intro,
.section-visit .visit-copy {
  font-family: var(--font-body);
}

.section-form .heading-40,
.section-visit .heading-40 {
  font-family: var(--font-heading);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 22em;
  border: 1px solid var(--swatch-stroke);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 22em;
  border: 0;
}

/* Footer */
.section-footer {
  background: var(--swatch-black);
  color: var(--swatch-tan);
  padding-block: 4em 2em;
}

.section-footer .labels {
  color: var(--swatch-grey);
  margin-bottom: 1em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  padding-bottom: 3em;
  border-bottom: 1px solid rgba(255, 245, 232, 0.15);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}

.footer-col a {
  font-family: var(--font-heading);
  font-size: 0.95em;
  font-weight: 600;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 0.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding-top: 2em;
}

.footer-bottom .logo img {
  height: 5.25rem;
  width: auto;
  object-fit: contain;
}

.to-top {
  width: 2.75em;
  height: 2.75em;
  border: 1px solid rgba(255, 245, 232, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: var(--swatch-tan);
  cursor: pointer;
  font-size: 1.1em;
}

.to-top:hover {
  background: var(--swatch-tan);
  color: var(--swatch-black);
}

.nav-link[aria-current="page"] {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Inner page — services grid */
.page-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

.page-service-card {
  display: flex;
  flex-direction: column;
  background: var(--swatch-black);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--swatch-tan);
}

.page-service-media {
  width: 100%;
  height: 16em;
  overflow: hidden;
}

.page-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.page-service-card:hover .page-service-media img {
  transform: scale(1.04);
}

.page-service-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 1.5em;
}

.page-service-copy .labels,
.page-service-copy .heading-24 {
  color: var(--swatch-tan);
}

.page-service-copy .text-size-16 {
  color: var(--swatch-dark-tan);
}

@media (max-width: 768px) {
  .page-services-grid {
    grid-template-columns: 1fr;
  }
}

/* History page */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 3em) var(--pad-x) 4em;
  background:
    linear-gradient(180deg, rgba(29, 29, 29, 0.5), rgba(29, 29, 29, 0.7)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=2000&q=80") center / cover;
  color: var(--swatch-tan);
}

.page-hero .heading-64,
.page-hero .text-size-20 {
  color: var(--swatch-tan);
}

.history-body {
  background: var(--swatch-tan);
}

.history-content {
  max-width: 42em;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--swatch-dark-tan);
}

.history-timeline li {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 1.5em;
  padding: 1.75em 0;
  border-bottom: 1px solid var(--swatch-dark-tan);
}

.history-timeline h2 {
  margin-bottom: 0.4em;
}

.history-timeline .text-size-16 {
  color: var(--swatch-grey);
}

/* Inner pages: dark nav links from start */
.navbar.is-scrolled .nav-link {
  color: var(--swatch-black);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(2em);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  :root {
    --nav-h: 6.75rem;
    --pad-x: 1.25em;
  }

  .logo img {
    height: 5.5rem;
  }

  .menu-button {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5em 1.25em 1.5em;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--swatch-tan);
    border-bottom: 1px solid var(--swatch-dark-tan);
    z-index: 998;
  }

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

  .nav-link {
    color: var(--swatch-black);
    padding: 0.95em 0;
    width: 100%;
    border-bottom: 1px solid var(--swatch-dark-tan);
    font-size: 1em;
  }

  .navbar .nav-link {
    color: var(--swatch-black);
  }

  .navbar:not(.is-scrolled) .menu-button {
    color: var(--swatch-tan);
  }

  .navbar.is-open .menu-button,
  .navbar.is-scrolled .menu-button {
    color: var(--swatch-black);
  }

  .navbar.is-open {
    background: rgba(255, 245, 232, 0.98);
  }

  .navbar.is-open:not(.is-scrolled) .menu-button {
    color: var(--swatch-black);
  }

  .nav-actions .btn-primary {
    padding: 0.7em 1.1em;
  }

  .nav-actions .btn-primary .btn-label {
    font-size: 0.85em;
  }

  .lang-switch--bar {
    display: none;
  }

  .lang-switch--menu {
    display: inline-flex;
    margin-top: 1.25em;
    padding: 0.5em 0;
  }

  .lang-switch--menu img {
    width: 9.5rem;
  }

  .navbar.is-open .lang-switch--menu img {
    filter: none;
  }

  .section-home-hero {
    height: 200vh;
  }

  .home-hero_content {
    padding-bottom: clamp(2.5em, 8vw, 4em);
    padding-top: calc(var(--nav-h) + 1.25em);
  }

  .home-hero_wrapper {
    gap: 0.85em;
    max-width: 100%;
  }

  .home-hero_heading {
    font-size: clamp(1.55rem, 7.5vw, 2.6rem);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .about-grid,
  .form-layout,
  .visit-panel,
  .scope-slide.is-active {
    grid-template-columns: 1fr;
  }

  .form-layout,
  .booking-form,
  .form-grid,
  .form-row {
    min-width: 0;
    max-width: 100%;
  }

  .booking-form {
    width: 100%;
    overflow: hidden;
  }

  .about-copy-media img {
    height: 16em;
  }

  .about-media {
    order: -1;
  }

  .scope-slider {
    height: auto;
  }

  .scope-slide.is-active {
    display: grid;
    grid-template-rows: 15em minmax(11em, auto);
    height: auto;
  }

  .scope-slide-media {
    height: 15em;
    min-height: 15em;
    max-height: 15em;
    flex-shrink: 0;
  }

  .scope-slide-copy {
    padding: 1.75em;
    min-height: 11em;
    box-sizing: border-box;
  }

  .scope-controls {
    flex-wrap: wrap;
  }

  .projects-head,
  .scope-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65em 1em;
  }

  .project-card {
    width: min(22em, 82vw);
    flex-flow: column;
    gap: 1.25em;
    padding: 1em;
  }

  .project-card-media {
    width: 100%;
    max-width: none;
    height: 16em;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    justify-items: center;
  }

  .stat {
    align-items: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .testimonials-stage {
    grid-template-columns: 1fr;
  }

  .testimonials-stage .btn-nav {
    display: none;
  }

  .section-cta {
    min-height: 56vh;
  }

  .cta-inner {
    padding-block: 4em;
    max-width: 100%;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 18em;
  }

  .page-hero {
    min-height: 42vh;
    padding: calc(var(--nav-h) + 2em) var(--pad-x) 2.5em;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 6.15rem;
    --pad-x: 1em;
  }

  .logo img {
    height: 4.85rem;
  }

  .lang-switch--menu img {
    width: 8.5rem;
  }

  .nav-actions .btn-primary {
    padding: 0.7em 0.95em;
  }

  .nav-actions .btn-primary .btn-label {
    font-size: 0.8em;
  }

  .section-home-hero {
    height: 175vh;
  }

  .hero-media {
    object-position: 55% center;
  }

  .home-hero_heading {
    font-size: clamp(1.4rem, 8vw, 2.15rem);
    line-height: 1.15;
  }

  .padding-section-md {
    padding-block: clamp(3em, 12vw, 4.5em);
  }

  .padding-section-lg {
    padding-block: clamp(3.5em, 14vw, 5.5em);
  }

  .heading-78 {
    font-size: clamp(1.4rem, 8vw, 2.15rem);
  }

  .heading-64 {
    font-size: clamp(1.85em, 9vw, 2.5em);
  }

  .heading-48 {
    font-size: clamp(1.65em, 7.5vw, 2.15em);
  }

  .form-grid,
  .stats-grid,
  .footer-grid,
  .why-list {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    gap: 1.75em;
    justify-items: center;
  }

  .stat {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .about-copy-media img {
    height: 12em;
  }

  .scope-head,
  .projects-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }

  .scope-slide.is-active {
    grid-template-rows: 13.5em minmax(10.5em, auto);
  }

  .scope-slide-media {
    height: 13.5em;
    min-height: 13.5em;
    max-height: 13.5em;
  }

  .scope-slide-copy {
    padding: 1.35em;
    gap: 0.75em;
    min-height: 10.5em;
  }

  .scope-controls .btn-primary {
    width: 100%;
    margin-top: 0.25em;
  }

  .project-card {
    width: min(19em, 88vw);
    scroll-snap-align: start;
  }

  .project-card-media {
    height: 14.5em;
  }

  .projects-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .capabilities-gallery {
    aspect-ratio: 1 / 1.05;
    gap: 0.4em;
  }

  .capabilities-gallery-panel {
    min-height: 0;
    border-width: 3px;
  }

  .capabilities-detail {
    min-height: 9.5em;
  }

  .capabilities-head {
    margin-bottom: 1.75em;
  }

  .section-cta {
    min-height: 48vh;
  }

  .cta-inner {
    padding-block: 3.25em;
    gap: 1em;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .booking-form {
    padding: 1.15em;
    width: 100%;
    max-width: 100%;
  }

  .booking-form .btn-primary {
    width: 100%;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: max(1.0625em, 16px);
    width: 100%;
    max-width: 100%;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 15em;
  }

  .page-hero {
    min-height: 36vh;
    padding: calc(var(--nav-h) + 1.5em) var(--pad-x) 2em;
  }

  .page-service-media {
    height: 12em;
  }

  .page-service-copy {
    padding: 1.25em;
  }

  .history-timeline li {
    grid-template-columns: 1fr;
    gap: 0.4em;
    padding: 1.35em 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2em 1.25em;
  }

  .footer-col {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.15em;
  }

  .footer-bottom .logo img {
    height: 4.75rem;
  }

  .section-footer {
    padding-block: 3em 1.75em;
  }
}

@media (max-width: 380px) {
  .nav-inner {
    gap: 0.75em;
  }

  .logo img {
    height: 4.25rem;
  }

  .lang-switch--menu img {
    width: 7.5rem;
  }

  .home-hero_heading,
  .heading-78 {
    font-size: clamp(1.25rem, 7.5vw, 1.85rem);
  }

  .scope-slide.is-active {
    grid-template-rows: 12em minmax(10em, auto);
  }

  .scope-slide-media {
    height: 12em;
    min-height: 12em;
    max-height: 12em;
  }
}
