:root {
  --bg: #eef4ff;
  --bg-deep: #e3edff;
  --paper: #f8fbff;
  --panel: rgba(255, 255, 255, 0.82);
  --text: #152843;
  --muted: #4f6586;
  --line: #c9d8ef;
  --brand: #2d6fda;
  --brand-dark: #1e4e9f;
  --brand-soft: #e2edff;
  --accent: #5ea9ff;
  --pop: #0f7abd;
  --shadow: 0 20px 44px rgba(27, 64, 129, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 14% 12%, #fbfdff 0%, var(--bg) 55%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(58, 96, 156, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 96, 156, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 92%);
  z-index: -4;
}

.orb {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -3;
}

.orb-a {
  right: -140px;
  top: -220px;
  background: #9dc0ff;
}

.orb-b {
  left: -160px;
  bottom: -220px;
  background: #b8e4ff;
}

.container {
  width: min(1080px, calc(100% - 2.2rem));
  margin: 2.2rem auto 3.7rem;
  display: grid;
  gap: 1.4rem;
}

.hero {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(130deg, var(--paper) 0%, rgba(255, 255, 255, 0.85) 100%);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
}

.hero-profile {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.profile-photo {
  width: min(300px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid #ffffff;
  box-shadow: 0 16px 36px rgba(36, 73, 138, 0.2);
}

.profile-card {
  width: min(300px, 100%);
  border: 1px solid #c7d8f1;
  background: rgba(232, 241, 255, 0.8);
  border-radius: 18px;
  padding: 0.9rem;
}

.profile-name {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

.profile-title {
  margin: 0.2rem 0 0;
  color: #35598c;
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-highlights {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  color: #486893;
}

.profile-highlights li {
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-family: "Sora", "Manrope", "Avenir Next", sans-serif;
}

h1 {
  font-size: clamp(2.15rem, 6.6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.45rem;
}

h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

p {
  margin-top: 0;
}

.lead {
  font-size: clamp(1.04rem, 2.2vw, 1.24rem);
  color: #2b466f;
  max-width: 62ch;
  margin-top: 0.9rem;
}

.top-profile {
  margin: 0.7rem 0 0;
  color: #355885;
  max-width: 62ch;
}

.rotator-wrap {
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--muted);
}

.rotator {
  color: var(--pop);
}

.hero-actions,
.connect-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.connect-row p {
  margin: 0;
  flex: 1 1 620px;
}

.connect-row .connect-actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.btn {
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 0.62rem 1.06rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  background: transparent;
  cursor: pointer;
  transition: transform 200ms ease, background 240ms ease, color 200ms ease, border-color 240ms ease,
    box-shadow 240ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  color: #ffffff;
  background-color: var(--brand-dark);
  background-image: linear-gradient(140deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 8px 18px rgba(30, 78, 159, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #17458f;
  background-image: linear-gradient(140deg, #2562c8 0%, #17458f 100%);
  box-shadow: 0 10px 20px rgba(23, 69, 143, 0.24);
}

.btn-ghost,
.btn-ghost:link,
.btn-ghost:visited {
  color: var(--brand-dark);
  background: rgba(45, 111, 218, 0.1);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(45, 111, 218, 0.18);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
}

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

.work-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.work-grid article {
  background: rgba(246, 251, 255, 0.95);
  border: 1px solid #bfcfee;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(37, 79, 150, 0.08);
}

.work-grid article:nth-child(1) {
  background: linear-gradient(145deg, #edf5ff 0%, #f8fcff 100%);
  border-color: #b4ccf4;
}

.work-grid article:nth-child(2) {
  background: linear-gradient(145deg, #eaf8ff 0%, #f6fcff 100%);
  border-color: #b4d6ef;
}

.work-grid article:nth-child(3) {
  background: linear-gradient(145deg, #eef1ff 0%, #f8faff 100%);
  border-color: #c3c8f4;
}

.work-grid h3 {
  color: #18345e;
}

.work-grid p {
  margin-top: 0.5rem;
  color: #3f5f8e;
}

.project-card {
  margin-top: 0.9rem;
  background: linear-gradient(145deg, #edf5ff 0%, #f8fcff 100%);
  border: 1px solid #b8cdf4;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(37, 79, 150, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-card h3 {
  margin-top: 0.2rem;
  color: #16335d;
}

.project-card p {
  margin: 0.45rem 0 0;
  color: #365b8c;
  max-width: 64ch;
}

.project-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #2a66c9;
}

footer {
  text-align: center;
  padding: 0 1rem 2.3rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: lift 700ms ease forwards;
}

.delay-1 {
  animation-delay: 100ms;
}

.delay-2 {
  animation-delay: 180ms;
}

.delay-3 {
  animation-delay: 260ms;
}

@keyframes lift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .container {
    width: min(1080px, calc(100% - 1.4rem));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .hero-profile {
    width: 100%;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    justify-items: stretch;
    align-items: start;
    gap: 0.9rem;
  }

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

  .profile-photo {
    max-width: 240px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3.35rem);
  }

  .lead {
    font-size: clamp(1rem, 2.6vw, 1.14rem);
  }
}

@media (max-width: 860px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .connect-actions {
    justify-content: center;
  }

  .connect-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .connect-row p {
    flex: none;
  }

  .connect-row .connect-actions {
    margin-top: 0.8rem;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card .btn {
    align-self: center;
  }
}

@media (max-width: 760px) {
  .hero-profile {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .profile-photo {
    width: min(90%, 460px);
    max-width: none;
  }

  .profile-card {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .container {
    margin-top: 1.4rem;
  }

  .hero {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn {
    transition: none;
  }
}
