:root {
  --blue: #405C9B;
  --blue-dark: #324a80;
  --white: #ffffff;
  --grey-bg: #F7F8FA;
  --ink: #222222;
  --muted: #666666;
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 88px) clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.hero__role {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue);
}

.hero__name {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero__name span { display: block; color: var(--blue); }

.hero__bio {
  margin-top: clamp(22px, 3vw, 36px);
  max-width: 52ch;
}
.hero__bio p {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(14px, 2vw, 22px);
  padding: 16px 30px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(64, 92, 155, 0.65);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.btn svg { transition: transform 0.25s ease; }
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(64, 92, 155, 0.75); }
.btn:hover svg { transform: translateY(2px); }
.btn:active { transform: translateY(0); }

/* ---------- Contact ---------- */
.contact {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #e6e8ee;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
}
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact svg { color: var(--blue); flex-shrink: 0; }
.contact span {
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s ease;
  overflow-wrap: anywhere;
}
.contact a:hover { color: var(--blue); }
.contact a:hover span { background-size: 100% 1.5px; }

/* ---------- Photo ---------- */
.hero__photo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  aspect-ratio: 1 / 1;
}
.hero__photo::before {          /* offset blue ring */
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  transform: translate(5%, 5%);
}
.hero__photo::after {           /* soft grey backdrop */
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -1;
  border-radius: 50%;
  background: var(--grey-bg);
}
.hero__photo picture { display: block; width: 100%; height: 100%; }
.hero__photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 50%;
  border: 6px solid var(--white);
  background: var(--grey-bg);
  animation: drift 9s ease-in-out infinite;
}
.hero__photo { isolation: isolate; }

/* ---------- Motion: one entrance sequence + slow image drift ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero__text > * { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > :nth-child(1) { animation-delay: 0.05s; }
.hero__text > :nth-child(2) { animation-delay: 0.15s; }
.hero__text > :nth-child(3) { animation-delay: 0.25s; }
.hero__text > :nth-child(4) { animation-delay: 0.35s; }
.hero__text > :nth-child(5) { animation-delay: 0.45s; }
.hero__photo { animation: fade 1s cubic-bezier(.2,.7,.2,1) 0.2s both; }

/* ---------- Accessibility ---------- */
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 44px;
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .hero__photo { grid-row: 1; max-width: 340px; }
  .hero__text { grid-row: 2; text-align: left; }
}

@media (max-width: 480px) {
  .hero__photo { max-width: 260px; }
  .btn { width: 100%; justify-content: center; }
  .contact { flex-direction: column; gap: 4px; }
}
