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

:root {
  --white: #ffffff;
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e8e8e8;
  --accent: #2d4a6f;
  --accent-light: #eef2f6;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }

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

  .nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
}

.hero--compact {
  padding: 3.5rem 0 2.5rem;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__image {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

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

/* Buttons */

.btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: #243d5c;
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  margin-left: 0.75rem;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 480px) {
  .btn--ghost {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg);
}

.section__header {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__header h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

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

/* Service cards */

.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: #c5d0dc;
  box-shadow: 0 4px 20px rgba(45, 74, 111, 0.08);
}

.card__num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 .intel {
  color: var(--accent);
  font-weight: 700;
}

.service-block__content h3 .intel {
  color: var(--accent);
  font-weight: 700;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

article.card {
  cursor: default;
}

/* Image band */

.image-band {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .image-band {
    grid-template-columns: repeat(3, 1fr);
  }
}

.image-band__item {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.image-band__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team */

.team-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .team-grid--founders {
    grid-template-columns: repeat(2, 1fr);
  }
}

.founder {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 520px) {
  .founder {
    grid-template-columns: 140px 1fr;
    align-items: start;
  }
}

.founder__photo {
  width: 140px;
  height: 140px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg);
}

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

.founder__role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.founder h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.founder p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.team-list {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .team-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .team-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-list li {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  background: var(--white);
}

.team-list strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

/* Map */

.location-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .location-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

.location-details h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.location-details address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.location-details dl {
  display: grid;
  gap: 1rem;
}

.location-details dt {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.location-details dd {
  color: var(--text-muted);
  font-size: 0.925rem;
}

.map-wrap {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 380px;
}

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

/* Testimonials */

.testimonials {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.section--alt .testimonial {
  background: var(--white);
}

.testimonial blockquote {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.testimonial blockquote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 0;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
}

.testimonial cite strong {
  display: block;
  color: var(--text);
  font-weight: 500;
}

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

/* Service detail */

.service-block {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:first-child {
  padding-top: 0;
}

.service-block:last-child {
  border-bottom: none;
}

@media (min-width: 800px) {
  .service-block {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .service-block--reverse .service-block__content {
    order: 2;
  }

  .service-block--reverse .service-block__image {
    order: 1;
  }
}

.service-block__content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.service-block__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-block__content ul {
  margin-top: 1rem;
}

.service-block__content li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.service-block__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.service-block__image {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA */

.cta {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--accent-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 1.5rem;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--white);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer .logo {
  margin-bottom: 0.75rem;
}

.site-footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32ch;
}

.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
