:root {
  --bg: #08111d;
  --surface: #0f1d31;
  --surface-strong: #132742;
  --surface-soft: #f2f7fb;
  --text: #f7fbff;
  --text-dark: #0f1b2a;
  --muted: #9ab0c7;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #1a88d9;
  --brand-strong: #0f5db6;
  --accent: #7dd1ff;
  --shadow: 0 30px 80px rgba(2, 10, 22, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1160px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(28, 99, 183, 0.35), transparent 34%),
    linear-gradient(180deg, #07101a 0%, #091422 35%, #eef5fa 35%, #eef5fa 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

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

.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;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 26, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(225, 236, 248, 0.96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong,
.hero h1,
.section-heading h2,
.section-copy h2,
.contact-copy h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: rgba(247, 251, 255, 0.88);
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 11px 18px;
  border: 1px solid rgba(125, 209, 255, 0.28);
  border-radius: 999px;
  background: rgba(26, 136, 217, 0.14);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: flex-end;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 13, 23, 0.88) 0%, rgba(4, 13, 23, 0.62) 42%, rgba(4, 13, 23, 0.38) 100%),
    linear-gradient(180deg, rgba(4, 13, 23, 0.1) 0%, rgba(4, 13, 23, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 72px;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(247, 251, 255, 0.82);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #43b5f1 100%);
  color: white;
  box-shadow: 0 20px 40px rgba(26, 136, 217, 0.3);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin-top: 52px;
}

.hero-stats article {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(8, 17, 29, 0.36);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.8rem;
}

.hero-stats span {
  color: rgba(247, 251, 255, 0.76);
  line-height: 1.55;
}

.section {
  padding: 104px 0;
  color: var(--text-dark);
}

.section-intro {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(125, 209, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #07101a 0%, #0c1727 52%, #101f33 100%);
  color: var(--text);
}

.split-layout,
.clients-layout,
.contact-shell {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.section-copy p,
.section-heading p,
.project-card-copy p,
.service-card p,
.info-card p,
.contact-copy p {
  color: #4f6276;
  line-height: 1.8;
  font-size: 1rem;
}

.section-intro .section-copy p {
  color: rgba(247, 251, 255, 0.78);
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-intro .section-copy h2 {
  color: #fbfdff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.section-intro .section-tag {
  color: rgba(233, 242, 250, 0.9);
}

.section-intro .section-tag::before {
  background: rgba(233, 242, 250, 0.9);
}

.discipline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.discipline-grid span,
.client-list span {
  padding: 11px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(15, 27, 42, 0.08);
  box-shadow: 0 10px 24px rgba(9, 20, 34, 0.06);
  color: #163049;
  font-size: 0.94rem;
}

.section-intro .discipline-grid span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(247, 251, 255, 0.92);
}

.feature-image,
.clients-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image img,
.clients-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-section,
.projects-section,
.contact-section {
  background:
    linear-gradient(180deg, rgba(240, 246, 252, 0) 0%, rgba(240, 246, 252, 0.6) 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.info-card,
.service-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid rgba(15, 27, 42, 0.08);
  box-shadow: 0 22px 44px rgba(7, 16, 26, 0.06);
}

.card-index {
  display: inline-block;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.info-card h3,
.service-card h3,
.project-card-copy h3,
.contact-card h3 {
  margin: 16px 0 12px;
  font-size: 1.28rem;
  line-height: 1.2;
}

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

.projects-section {
  overflow: clip;
}

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

.project-card {
  position: relative;
  min-height: 310px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b1320;
  box-shadow: var(--shadow);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 26, 0.08) 0%, rgba(7, 16, 26, 0.84) 90%);
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.04);
}

.project-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px;
}

.project-card-copy h3,
.project-card-copy p {
  color: white;
}

.project-card-feature {
  grid-column: span 2;
  min-height: 420px;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-shell {
  padding: 44px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(9, 24, 41, 0.98), rgba(16, 40, 69, 0.96)),
    url("./assets/projects/compressed-air-system.png") center / cover;
  box-shadow: var(--shadow);
}

.contact-copy,
.contact-copy p {
  color: white;
}

.contact-copy p {
  color: rgba(247, 251, 255, 0.78);
}

.contact-card {
  padding: 32px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.contact-card p {
  margin: 0 0 20px;
  color: rgba(247, 251, 255, 0.72);
}

.contact-card a {
  display: block;
  margin-bottom: 12px;
  color: white;
  font-weight: 500;
}

.contact-card .button {
  margin-top: 24px;
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0 40px;
  background: #eef5fa;
  color: #55697e;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(15, 27, 42, 0.08);
  padding-top: 22px;
}

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

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

  .project-card-feature {
    grid-column: span 2;
  }

  .split-layout,
  .clients-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(7, 16, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 88px;
    padding-bottom: 60px;
  }

  .hero-stats,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  .nav-shell {
    min-height: 74px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .brand-copy span {
    display: none;
  }

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

  .section,
  .section-intro {
    padding: 68px 0;
  }

  .services-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-feature {
    grid-column: auto;
    min-height: 340px;
  }

  .contact-shell {
    padding: 28px 22px;
  }

  .contact-card,
  .info-card,
  .service-card {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-stats {
    gap: 14px;
    margin-top: 38px;
  }

  .hero-stats article {
    padding: 18px 18px 20px;
  }

  .section-copy h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading p,
  .section-copy p,
  .contact-copy p {
    font-size: 0.97rem;
    line-height: 1.72;
  }

  .discipline-grid {
    gap: 10px;
  }

  .discipline-grid span {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  .project-card {
    min-height: 280px;
  }

  .project-card-feature {
    min-height: 300px;
  }

  .project-card-copy {
    padding: 20px;
  }

  .contact-shell {
    gap: 22px;
  }

  .contact-card {
    padding: 22px;
  }

  .footer-shell {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav-shell {
    min-height: 70px;
  }

  .site-nav {
    left: 14px;
    right: 14px;
    padding: 16px;
    gap: 10px;
    border-radius: 18px;
  }

  .site-nav a {
    padding: 10px 6px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .hero-content {
    padding-top: 66px;
    padding-bottom: 44px;
  }

  .eyebrow,
  .section-tag {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 11vw, 2.7rem);
    line-height: 0.98;
    margin-top: 16px;
  }

  .hero-lead {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .button {
    min-height: 46px;
    padding: 0 18px;
  }

  .nav-toggle {
    padding: 10px;
  }

  .nav-toggle span {
    width: 22px;
  }

  .hero-stats article,
  .info-card,
  .service-card,
  .contact-card {
    border-radius: 18px;
  }

  .hero-stats strong {
    font-size: 1.45rem;
  }

  .section,
  .section-intro {
    padding: 60px 0;
  }

  .feature-image,
  .clients-figure {
    border-radius: 22px;
  }

  .project-card {
    min-height: 250px;
  }

  .project-card-feature {
    min-height: 260px;
  }

  .contact-shell {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card a {
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 22px 0 28px;
  }
}
