:root {
  --bg: #ffffff;
  --soft: #f5f7f9;
  --text: #15191e;
  --muted: #66717c;
  --line: #dfe5ea;
  --accent: #173f67;
  --accent-dark: #102f4e;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

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

.narrow {
  max-width: 840px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,229,234,.9);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: .94rem;
}

.nav a {
  color: #3d4853;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
}

.section {
  padding: 96px 0;
}

.soft-section {
  background: var(--soft);
}

.hero {
  padding-top: 110px;
  padding-bottom: 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: 80px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.hero-text,
.lead {
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  color: #46515c;
  max-width: 760px;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 34px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

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

.secondary {
  border-color: #cbd4dc;
  background: white;
}

.secondary:hover {
  border-color: #9aa8b5;
}

.text-link {
  padding: 10px 4px;
  color: var(--accent);
  font-weight: 600;
}

.portrait-card {
  display: flex;
  justify-content: center;
}

.portrait-placeholder {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background: linear-gradient(145deg, #e8edf1, #f8fafb);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #687480;
}

.portrait-placeholder span {
  display: block;
  font-size: 4.4rem;
  font-weight: 700;
  letter-spacing: -.06em;
  color: #9da8b1;
}

.portrait-placeholder small {
  margin-top: 8px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 38px 28px;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--accent);
}

.metric span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: .96rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.experience-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.experience {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.experience-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.experience-heading h3 {
  margin-bottom: 2px;
  font-size: 1.45rem;
}

.experience-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.experience-heading strong {
  color: var(--accent);
  font-size: 1.25rem;
  white-space: nowrap;
}

.experience > p {
  max-width: 900px;
  margin-bottom: 10px;
}

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

.process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 34px;
}

.process span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
}

.process-note {
  margin-bottom: 0;
}

.contact-section {
  padding-top: 110px;
  padding-bottom: 110px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.footer-wrap {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

  .portrait-card {
    justify-content: flex-start;
  }

  .portrait-placeholder {
    width: min(100%, 320px);
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 680px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 76px;
  }

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

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 18px;
    background: white;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 10px 0;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

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

  .metric,
  .metric:first-child {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

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

  .experience-heading {
    flex-direction: column;
    gap: 8px;
  }

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

  .footer-wrap {
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
