:root {
  color-scheme: light;
  --blue: #1656c8;
  --blue-dark: #0f3f96;
  --ink: #14181f;
  --navy: #101f3a;
  --muted: #46576c;
  --line: #dce5f0;
  --surface: #f3f7fc;
  --white: #fff;
  --side: clamp(20px, 5vw, 78px);
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #1977ee; outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--max), calc(100% - var(--side) * 2)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: clamp(12px, 3vw, 36px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 246px;
  font-size: .94rem;
  font-weight: 720;
  line-height: 1.24;
  text-decoration: none;
}
.brand img { flex: 0 0 auto; }
.header-projects {
  margin-left: auto;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.header-projects:hover { color: var(--blue); text-decoration: underline; }
.language {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.language a {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}
.language a:hover { background: var(--surface); }
.language a[aria-current] { color: var(--white); background: var(--blue); }
.hero {
  background: var(--navy) linear-gradient(118deg, #10203d 12%, #172f57 100%);
  color: var(--white);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  padding-block: clamp(42px, 6vw, 88px);
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  font-weight: 740;
  line-height: 1.015;
  letter-spacing: -.052em;
}
.hero--detail .hero-copy h1 { font-size: clamp(2.2rem, 4vw, 3.9rem); }
.hero-copy h1 + p {
  max-width: 36rem;
  margin-top: clamp(18px, 3vw, 27px);
  color: #e0eafa;
  font-size: clamp(1.05rem, 1.55vw, 1.26rem);
  line-height: 1.5;
}
.hero-copy .button { margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 680;
  text-decoration: none;
}
.button:hover { background: var(--blue-dark); border-color: #9dc3ff; }
.button--light { background: var(--white); color: var(--blue-dark); }
.button--light:hover { background: #e5eeff; border-color: transparent; }
.image { position: relative; overflow: hidden; background: #dbe5f1; }
.hero .image { aspect-ratio: 1.24; border-radius: 12px; }
.image img { width: 100%; height: 100%; object-fit: cover; }
.image--hero img { object-position: center 41%; }
.image--africa img, .image--vietnam img { object-position: center 40%; }
.projects { padding-block: clamp(48px, 7vw, 96px); }
.projects h2, .about h2, .contact h2 {
  font-size: clamp(1.9rem, 3.65vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -.038em;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(24px, 4vw, 42px);
}
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.card:hover { border-color: #96b5e3; }
.card:focus-within { outline: 3px solid #1977ee; outline-offset: 4px; }
.card .image { aspect-ratio: 2.1; }
.card-copy { display: grid; gap: 11px; padding: clamp(18px, 3vw, 32px); }
.eyebrow {
  color: var(--blue-dark);
  font-size: .8rem;
  font-weight: 760;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.card h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.13; letter-spacing: -.025em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { position: absolute; inset: 0; content: ""; }
.card h3 a:hover, .card h3 a:focus-visible { color: var(--blue); text-decoration: underline; }
.card h3 + p { color: var(--muted); line-height: 1.55; }
.about { background: var(--surface); padding-block: clamp(42px, 6vw, 75px); }
.about-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(20px, 5vw, 60px);
}
.about p, .topic p { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.18rem); }
.back {
  display: inline-block;
  margin-bottom: clamp(22px, 3vw, 36px);
  color: #dbe9ff;
  font-size: .93rem;
  font-weight: 650;
}
.back:hover { color: var(--white); }
.hero .eyebrow { margin-bottom: 14px; color: #b7d5ff; }
.topics { padding-block: clamp(34px, 6vw, 80px); }
.topic {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(14px, 5vw, 60px);
  align-items: start;
  padding-block: clamp(25px, 4vw, 43px);
  border-bottom: 1px solid var(--line);
}
.topic:first-child { padding-top: 0; }
.topic:last-child { padding-bottom: 0; border-bottom: 0; }
.topic h2 {
  font-size: clamp(1.45rem, 2.55vw, 2.35rem);
  line-height: 1.13;
  letter-spacing: -.028em;
}
.contact {
  padding-block: clamp(43px, 6vw, 80px);
  color: var(--white);
  background: var(--blue-dark);
}
.contact-layout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.contact p { max-width: 39rem; margin-top: 13px; color: #e4ecfc; font-size: 1.07rem; }
.site-footer { padding-block: 28px; color: var(--muted); font-size: .84rem; }
.footer-layout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 21px; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--blue); }
@media (max-width: 760px) {
  .header-layout { min-height: 68px; }
  .header-projects { display: none; }
  .brand { max-width: 190px; font-size: .83rem; }
  .brand img { width: 36px; height: 36px; }
  .hero-layout, .topics .topic, .about-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero .image { aspect-ratio: 1.54; }
  .hero-copy h1 { font-size: clamp(2.25rem, 7.7vw, 3.65rem); }
  .hero--detail .hero-copy h1 { font-size: clamp(2.15rem, 7vw, 3.4rem); }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { padding-block: 32px; }
  .hero .image { border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
