:root {
  color-scheme: light;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #526071;
  --border: #d9e1ea;
  --surface: #ffffff;
  --surface-strong: #eef4f8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(15, 118, 110, 0.13), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef4f8 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 50%;
  background: #102a43;
  color: #ffffff;
  font-size: 0.78rem;
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

main {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.hero {
  min-height: calc(100svh - 72px);
  padding: 64px 0 72px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 9vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

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

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.profile-card,
.work-card,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.profile-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.avatar {
  width: 116px;
  height: 116px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
}

.profile-card h2 {
  margin-bottom: 6px;
  font-size: 1.65rem;
}

.profile-card p,
.work-card p,
.split p,
.contact-panel p {
  color: var(--muted);
}

.quick-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.quick-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.quick-facts dd {
  margin: 0;
  font-weight: 700;
}

.section-block {
  padding: 76px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  padding: 24px;
  box-shadow: none;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split p:last-child {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 76px 0;
  padding: clamp(24px, 5vw, 42px);
}

.contact-panel h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section-grid,
  .split,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
    line-height: 1;
  }

  .profile-card {
    width: 100%;
  }
}

@media (max-width: 520px) {
  main,
  .site-header,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .quick-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
