:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #152032;
  --muted: #5d6b7b;
  --primary: #2f63d8;
  --primary-dark: #163b8f;
  --accent: #e8f0ff;
  --border: #d9e4f5;
  --shadow: 0 20px 50px rgba(14, 31, 76, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 54, 92, 0.08);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.08rem 0;
  gap: 0.75rem;
  min-height: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  line-height: 0;
}

.brand-logo {
  height: 82px;
  width: auto;
  display: block;
  max-width: 360px;
}

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

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  padding: 6.5rem 0 5rem;
  background:
    radial-gradient(circle at top left, rgba(47, 99, 216, 0.18), transparent 32%),
    linear-gradient(135deg, #f4f7fb, #eef4ff 62%, #ffffff 100%);
}

.hero-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0 0 0.85rem;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.3rem);
}

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

.hero-text,
.section p,
.service-card p,
.team-card p {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: #fff;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  max-width: 480px;
}

.metric-card,
.service-card,
.team-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.metric-card span {
  color: var(--muted);
  font-weight: 600;
}

.metric-card strong {
  font-size: 2rem;
  color: var(--primary-dark);
}

.section {
  padding: 5.2rem 0;
}

.section-light {
  background: #ffffff;
}

.section-accent {
  background: linear-gradient(180deg, #f4f7fb 0%, #eef4ff 100%);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}

.service-card,
.team-card {
  padding: 1.4rem;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-photo {
  width: 100%;
  aspect-ratio: 632 / 742;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: #eaeef7;
}

.role {
  color: var(--primary);
  font-weight: 700;
}

.bio-header {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .team-photo {
    cursor: pointer;
  }

  .team-grid {
    position: relative;
  }

  .team-card {
    position: relative;
  }

  .team-card .bio {
    position: absolute;
    top: 0;
    width: calc(100% + 1.5rem);
    height: 100%;
    margin: 0;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .team-card:nth-child(odd) .bio {
    left: calc(100% + 1.25rem - 0.75rem);
  }

  .team-card:nth-child(even) .bio {
    right: calc(100% + 1.25rem - 0.75rem);
  }

  .team-photo:hover ~ .bio {
    max-height: 60rem;
    opacity: 1;
  }

  .bio-header {
    display: block;
    margin-bottom: 0.75rem;
  }

  .bio-header h3 {
    margin-bottom: 0.25rem;
  }
}

.contact-card {
  padding: 1.5rem;
}

.site-footer {
  padding: 1rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

  .brand-logo {
    height: 64px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
  }

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

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 52px;
  }

  .team-grid {
    gap: 1.25rem;
  }

  .team-card {
    padding: 1rem;
  }

  .team-photo {
    border-radius: 12px;
    margin-bottom: 0.8rem;
  }

  .team-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }

  .role {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .team-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 44px;
  }

  .team-card h3 {
    font-size: 0.95rem;
  }

  .role {
    font-size: 0.78rem;
  }

  .team-card p {
    font-size: 0.85rem;
  }
}
