:root {
  --ink: #0d2130;
  --muted: #5c6972;
  --grid-blue: #0b3146;
  --grid-blue-2: #123f56;
  --accent: #b6c847;
  --line: rgba(13, 33, 48, 0.12);
  --paper: #f7f8f5;
  --white: #fff;
  --shadow: 0 22px 70px rgba(13, 33, 48, 0.16);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(11, 49, 70, 0.94);
  backdrop-filter: blur(16px);
  color: var(--white);
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand img {
  display: block;
  height: 44px;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  justify-content: center;
}

.site-nav a,
.language-switch a,
.site-footer a {
  text-decoration: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.site-nav a:hover,
.language-switch a.selected,
.language-switch a:hover {
  color: var(--accent);
}

.language-switch {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
}

.hero {
  background: var(--grid-blue);
  color: var(--white);
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: 124px clamp(20px, 5vw, 72px) 44px;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, rgba(11, 49, 70, 0.92), rgba(11, 49, 70, 0.72), rgba(11, 49, 70, 0.2));
  content: "";
  inset: 0;
  position: absolute;
}

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

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

.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-content {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
  margin-bottom: 28px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero-content p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 640px;
}

.hero-actions,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.filter,
.project-card,
.nav-toggle {
  border-radius: 6px;
}

.button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  font-weight: 700;
  padding: 13px 18px;
  text-decoration: none;
}

.button.primary,
.filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.button.secondary {
  color: var(--white);
}

.hero-stats {
  align-self: end;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 780px;
}

.hero-stats span {
  background: rgba(255, 255, 255, 0.09);
  padding: 16px;
}

.hero-stats strong,
.hero-stats small {
  display: block;
}

.hero-stats strong {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-stats small {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 6px;
}

.section {
  padding: clamp(58px, 9vw, 110px) clamp(20px, 5vw, 72px);
}

.section:nth-child(odd) {
  background: var(--white);
}

.split {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.copy,
.section-intro {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.section-heading {
  max-width: 780px;
}

.section-heading.wide {
  max-width: 1040px;
}

.service-grid,
.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.service-grid article,
.contact-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 220px;
  padding: 28px;
}

.section:nth-child(odd) .service-grid article,
.section:nth-child(odd) .contact-grid article {
  background: var(--paper);
}

.service-grid p,
.contact-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.toolbar {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 28px 0;
}

.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 10px 14px;
}

.search {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  gap: 6px;
  min-width: min(360px, 100%);
}

.wide-search {
  min-width: min(560px, 100%);
}

.search input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

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

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-card img {
  aspect-ratio: 16 / 10;
  background: #d8dedc;
  display: block;
  object-fit: cover;
  width: 100%;
}

.project-card-content {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.project-card strong {
  font-size: 1rem;
}

.project-card small,
.project-card em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.team-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
}

.secondary-team {
  margin-top: 18px;
}

.team-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
}

.team-grid img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d8dde0, #aeb8bd);
  display: block;
  width: 100%;
}

.team-grid h3,
.team-grid p {
  padding: 0 16px;
}

.team-grid h3 {
  margin: 16px 0 6px;
}

.team-grid p {
  color: var(--muted);
  margin-bottom: 18px;
}

.team-list {
  border-top: 1px solid var(--line);
  columns: 3;
  column-gap: 32px;
  margin-top: 32px;
  padding-top: 20px;
}

.team-list span {
  break-inside: avoid;
  color: var(--muted);
  display: block;
  padding: 5px 0;
}

.clients-list {
  columns: 3;
  column-gap: 32px;
  margin-top: 28px;
}

.clients-list span {
  break-inside: avoid;
  color: var(--muted);
  display: block;
  padding: 5px 0;
}

.table-wrap {
  overflow-x: auto;
}

.listing {
  background: var(--white);
  border-collapse: collapse;
  min-width: 880px;
  width: 100%;
}

.listing th,
.listing td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.listing th {
  background: var(--grid-blue);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.listing td {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.contact-grid a {
  color: var(--grid-blue);
  font-weight: 700;
}

.site-footer {
  align-items: center;
  background: var(--grid-blue);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
}

.project-modal {
  align-items: center;
  background: rgba(5, 18, 27, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 52px;
  position: fixed;
  z-index: 20;
}

.project-modal.open {
  display: flex;
}

.project-modal figure {
  margin: 0;
  max-width: min(1180px, 92vw);
}

.project-modal img {
  display: block;
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
}

.project-modal figcaption {
  color: var(--white);
  line-height: 1.45;
  margin-top: 14px;
  text-align: center;
}

.project-modal button {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 48px;
  position: fixed;
}

.modal-close {
  font-size: 26px !important;
  right: 22px;
  top: 18px;
}

.modal-prev {
  left: 22px;
}

.modal-next {
  right: 22px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    padding: 9px 12px;
  }

  .site-nav {
    background: var(--grid-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding-top: 12px;
  }

  .site-header.nav-open .site-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .language-switch {
    justify-content: end;
  }

  .split,
  .service-grid,
  .projects-gallery,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .clients-list {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand img {
    height: 34px;
  }

  .hero {
    padding: 108px 18px 28px;
  }

  .hero-stats,
  .split,
  .service-grid,
  .projects-gallery,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 18px;
  }

  .clients-list,
  .team-list {
    columns: 1;
  }

  .project-modal {
    padding: 58px 18px;
  }
}
