:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5c667d;
  --line: #dfe4ee;
  --accent: #3457d5;
  --accent-dark: #243fa8;
  --shadow: 0 18px 50px rgba(32, 47, 85, 0.10);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

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

.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
}

.skip-link:focus {
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(247, 248, 251, 0.86);
  border-bottom: 1px solid rgba(223, 228, 238, 0.82);
}

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

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  background: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

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

.hero {
  min-height: 72vh;
  padding-block: 90px 80px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.1rem, 9vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
  line-height: 1.25;
}

.lead {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.actions.centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

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

.button.secondary {
  background: var(--surface);
}

.portrait-wrap {
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(52, 87, 213, 0.17), rgba(255, 255, 255, 0.94));
  box-shadow: var(--shadow);
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  background: var(--surface);
}

.section {
  padding-block: 88px;
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.card {
  min-height: 176px;
  padding: 24px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover,
.card:focus {
  transform: translateY(-4px);
  border-color: rgba(52, 87, 213, 0.45);
  box-shadow: var(--shadow);
}

.card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

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

.project {
  padding-block: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.project p {
  margin-bottom: 0;
}

.project > a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 850;
}

.site-footer {
  padding-block: 28px;
  color: var(--muted);
  background: #eef1f7;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-wrap p {
  margin-bottom: 0;
}

.footer-wrap a {
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 70px;
    gap: 42px;
  }

  .portrait-wrap {
    max-width: 430px;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-wrap {
    min-height: auto;
    padding-block: 14px;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    gap: 10px 14px;
    font-size: 0.88rem;
  }

  .hero {
    padding-block: 54px;
  }

  .section {
    padding-block: 64px;
  }

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

  .project {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-wrap {
    flex-direction: column;
  }
}
