:root {
  --bg: #f7f4ee;
  --surface: #fffdfc;
  --surface-muted: #ece6db;
  --text: #1f2521;
  --text-muted: #5d655f;
  --border: #d9d2c7;
  --accent: #2f6b5f;
  --accent-strong: #234f46;
  --max-width: 1160px;
  --narrow-width: 760px;
  --radius: 16px;
  --shadow: 0 18px 36px rgba(31, 37, 33, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.page-leaving {
  opacity: 0;
  transform: translateY(6px);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
iframe {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.95rem, 4vw, 3.35rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

h3 {
  font-size: 1.35rem;
}

p,
li,
label,
input,
textarea,
button {
  font-size: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 238, 0.68);
  border-bottom: 1px solid rgba(217, 210, 199, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  max-width: 260px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-title {
  font-size: 1.55rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero,
.section {
  padding: 5.5rem 0;
}

.hero-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.hero-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.14fr) minmax(220px, 0.6fr);
}

.hero {
  padding-top: 6.5rem;
}

.hero-media {
  position: relative;
  height: 440px;
  max-width: 440px;
  width: 100%;
  justify-self: end;
  overflow: hidden;
  border-radius: 22px;
  background: #e9e2d6;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 244, 238, 0.06), rgba(247, 244, 238, 0.18)),
    linear-gradient(135deg, rgba(47, 107, 95, 0.08), rgba(247, 244, 238, 0.02));
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.82) contrast(0.96) brightness(1.02);
  transform: scale(1.01);
}

.hero-panel,
.info-block,
.contact-form,
.map-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel,
.info-block,
.contact-form,
.map-frame {
  padding: 1.5rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 42rem;
}

.text-measure {
  max-width: var(--narrow-width);
}

.page-stack > * + * {
  margin-top: 2rem;
}

.muted {
  color: var(--text-muted);
}

.eyebrow,
.panel-label {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #f8f9f5;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.section-muted {
  background: var(--surface-muted);
}

.section-accent {
  background: linear-gradient(180deg, rgba(47, 107, 95, 0.08), rgba(47, 107, 95, 0.02));
}

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

.section-link {
  margin-top: 1.5rem;
}

.editorial-list {
  border-top: 1px solid rgba(31, 37, 33, 0.12);
}

.editorial-list-compact {
  margin-top: 1.5rem;
}

.editorial-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.9fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(31, 37, 33, 0.12);
}

.editorial-row h2,
.editorial-row h3,
.editorial-row p {
  margin: 0;
}

.editorial-row-service h2 {
  font-size: 1.5rem;
}

.editorial-row-partner {
  grid-template-columns: 180px minmax(0, 1.6fr);
}

.row-index {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.25rem;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-strip-large {
  margin-bottom: 2rem;
}

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  border-top: 1px solid rgba(31, 37, 33, 0.16);
  border-bottom: 1px solid rgba(31, 37, 33, 0.16);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.partner-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  background: rgba(255, 253, 252, 0.65);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-logo-slot-dark {
  background: #111111;
}

.partner-logo-image {
  display: block;
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-name {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.company-info {
  max-width: var(--narrow-width);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 37, 33, 0.12);
}

.about-media {
  position: relative;
  margin-top: 4.25rem;
  overflow: hidden;
  border-radius: 22px;
  background: #e7e0d5;
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 244, 238, 0.05), rgba(247, 244, 238, 0.14)),
    linear-gradient(135deg, rgba(47, 107, 95, 0.05), rgba(247, 244, 238, 0.02));
  pointer-events: none;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  filter: saturate(0.84) contrast(0.97) brightness(1.01);
}

.about-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
}

.where-we-work {
  margin-top: 2.75rem;
}

.world-map {
  margin-top: 1.25rem;
  border: 1px solid rgba(31, 37, 33, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.world-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-country {
  fill: #d7d0c4;
}

.map-country.is-highlighted {
  fill: #2f6b5f;
}

.map-borders {
  fill: none;
  stroke: rgba(255, 253, 252, 0.9);
  stroke-width: 0.7;
}

.map-marker {
  fill: #1f2521;
}

.map-label {
  fill: #1f2521;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.data-list {
  margin: 0;
  padding-left: 1.1rem;
}

.data-list li + li {
  margin-top: 0.8rem;
}

.legal-copy p + p,
.legal-copy h2 {
  margin-top: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-details-list {
  display: grid;
  gap: 2rem;
  padding-top: 0.25rem;
}

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

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.contact-icon svg {
  width: 32px;
  height: 32px;
}

.contact-detail-label {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-detail-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.map-frame {
  overflow: hidden;
  min-height: 100%;
}

.map-frame-compact {
  margin-top: 1.75rem;
  padding: 0;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  min-height: 170px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.footer-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.footer-meta {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-media {
    display: none;
  }

  .hero-media {
    display: none;
  }

  .editorial-row {
    grid-template-columns: 56px minmax(180px, 0.9fr) minmax(0, 1.4fr);
  }

  .editorial-row-partner {
    grid-template-columns: 150px minmax(0, 1.5fr);
  }

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

@media (max-width: 720px) {
  .nav-wrap,
  .site-nav,
  .hero-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    display: block;
  }

  .site-nav {
    display: flex;
    margin-top: 1rem;
    justify-content: flex-start;
  }

  .hero,
  .section {
    padding: 4.25rem 0;
  }

  .container {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .editorial-row,
  .editorial-row-partner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .map-frame-compact {
    aspect-ratio: 16 / 9;
    min-height: 210px;
  }

  .row-index {
    padding-top: 0;
  }

  .logo-strip {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
