:root {
  --ink: #102033;
  --muted: #627184;
  --line: #d8e2ed;
  --bg: #eef3f8;
  --panel: #ffffff;
  --nav: #061f35;
  --blue: #1769d2;
  --green: #168a45;
  --amber: #c77700;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; }
.brand span, .initials {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #063255;
  color: #75b7ff;
  border: 2px solid #4ba1ff;
}

nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 800; }
nav a:hover { color: var(--blue); }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 390px;
  gap: 28px;
  align-items: center;
  padding: 56px 0 32px;
}

.role { margin: 0 0 14px; color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 0; max-width: 900px; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: 0; }
.summary { max-width: 780px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions, .card-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
  font-weight: 900;
}
.button.primary { background: var(--blue); color: white; border-color: var(--blue); }

.hero-panel {
  padding: 26px;
  background: linear-gradient(180deg, #062a46, #031927);
  border-radius: 8px;
  color: white;
  box-shadow: 0 24px 60px rgba(16, 32, 51, .18);
}
.initials { width: 88px; height: 88px; font-size: 30px; margin-bottom: 24px; }
dl { margin: 0; display: grid; gap: 12px; }
dl div { padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; }
dt { color: #abc3d8; font-size: 13px; }
dd { margin: 4px 0 0; font-weight: 900; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.proof-strip article {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.proof-strip strong { display: block; color: var(--blue); font-size: 28px; }
.proof-strip span { color: var(--muted); font-weight: 800; }

.section { padding: 34px 0 48px; }
.section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 18px; }
.section-heading h2, .contact h2 { margin: 0; font-size: 34px; }
.section-heading p, .contact p { margin: 0; max-width: 620px; color: var(--muted); line-height: 1.55; }
.section-heading.compact { display: block; }
.section-heading.compact p { margin-top: 8px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(24, 39, 55, .08);
}
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}
.project-body { padding: 18px; }
.project-body span { color: var(--blue); font-weight: 900; font-size: 13px; text-transform: uppercase; }
.project-body h3 { margin: 8px 0 8px; font-size: 22px; }
.project-body p { margin: 0; color: var(--muted); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags b { padding: 6px 9px; border-radius: 999px; background: #e8f2ff; color: #0b4d92; font-size: 12px; }
.card-actions a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
}
.card-actions a:first-child { background: var(--blue); color: white; border-color: var(--blue); }

.split { display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; align-items: start; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-grid article {
  min-height: 190px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skill-grid h3 { margin: 0 0 10px; }
.skill-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.contact {
  margin: 32px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 8px;
  background: #062a46;
  color: white;
}
.contact p { color: #c7d8ea; margin-top: 8px; }
.contact .button:not(.primary) { color: var(--ink); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .hero, .split { grid-template-columns: 1fr; }
  .project-grid, .skill-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header, .contact, footer { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  main { width: min(100% - 24px, 1240px); }
  .hero { min-height: auto; padding-top: 34px; }
  .project-grid, .skill-grid, .proof-strip { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; }
}
