@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #12233a;
  --muted: #4a627c;
  --accent: #1a60a2;
  --accent-soft: #609cce;
  --accent-strong: #154f87;
  --line: #d6e0ec;
  --shadow: 0 10px 30px rgba(20, 64, 103, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 95% -8%, rgba(96, 156, 206, 0.12), transparent 58%),
    radial-gradient(700px 400px at -12% -6%, rgba(26, 96, 162, 0.05), transparent 62%),
    var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(26, 96, 162, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(244, 247, 251, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: min(210px, 48vw);
  height: auto;
  border-radius: 0;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
}

.site-nav a:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

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

.site-nav .cta {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.site-nav .cta[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.site-nav .cta:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.nav-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font: inherit;
}

main {
  flex: 1 0 auto;
  padding: 28px 24px 48px;
}

.page-hero,
.content,
.section {
  max-width: var(--maxw);
  margin: 0 auto;
}

.page-hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1.25fr 0.68fr;
  gap: 28px;
  align-items: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  max-width: 58ch;
  margin-top: 0;
}

.hero-copy {
  max-width: 60ch;
}

.credentials {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.credentials li {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
  color: #22466f;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-photo {
  margin: 0;
  max-width: 340px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  justify-self: end;
}

.hero-photo img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.hero-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
}

.btn:hover {
  border-color: #b7cae0;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.section,
.page-heading,
.service-group,
.section-tight,
.metrics-grid,
.service-stack,
.project-stack,
.team-grid {
  max-width: var(--maxw);
  margin: 28px auto 0;
}

.page-heading h1 {
  margin-bottom: 8px;
}

.page-heading p {
  margin-top: 0;
  color: var(--muted);
}

.pillars,
.service-group,
.metrics-grid,
.case-grid,
.photo-strip {
  display: grid;
  gap: 14px;
}

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

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

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

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

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

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.panel h2,
.panel h3 {
  margin-bottom: 8px;
}

.panel p,
.panel li {
  color: var(--muted);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.section-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.service-stack,
.project-stack {
  display: grid;
  gap: 16px;
}

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

.photo-strip-inline {
  margin-top: 18px;
}

.media-card,
.case-study-cover,
.profile-photo {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
}

.media-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-card img,
.case-study-cover img,
.profile-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.media-card img {
  aspect-ratio: 4 / 3;
}

.service-panel h2,
.case-study h2 {
  margin-bottom: 10px;
}

.service-panel p {
  margin-top: 0;
}

.case-study h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.case-study-cover {
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.case-study-cover img {
  aspect-ratio: 16 / 7;
}

.case-study p:last-child,
.case-study ul:last-child {
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.profile-card {
  height: 100%;
}

.profile-photo {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.profile-photo img {
  aspect-ratio: 4 / 5;
}

.profile-role {
  margin-top: -2px;
  font-weight: 600;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.section-soft {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px;
}

.how-we-work {
  margin-top: 24px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.content {
  margin-top: 0;
}

.content.narrow {
  max-width: 860px;
}

.section-tight {
  margin-top: 22px;
}

.two-col-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  padding-left: 18px;
  color: var(--muted);
}

.metric h3 {
  margin-bottom: 2px;
}

.contact-panel {
  max-width: 760px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.linkedin-link .bi {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
}

.smallprint {
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.footer-grid nav {
  display: grid;
  gap: 6px;
}

.footer-grid nav a {
  text-decoration: none;
  color: var(--muted);
}

.footer-grid nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(26, 96, 162, 0.35);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .page-hero-split {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: 100%;
    max-width: none;
    justify-self: center;
  }

  .pillars,
  .pillars-three,
  .service-group,
  .metrics-grid,
  .case-grid,
  .two-col-list,
  .team-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  main {
    padding: 20px 16px 36px;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 56px;
    width: min(260px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 4px;
  }

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

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

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

  .page-hero {
    padding: 20px;
  }
}
