:root {
  --bg-main: #f3f8ff;
  --bg-soft: #d9eaff;
  --ink: #162238;
  --muted: #4a5b77;
  --accent: #1767ff;
  --accent-strong: #0f4ac3;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(23, 103, 255, 0.15);
  --shadow: 0 24px 50px rgba(16, 49, 106, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, var(--bg-main), var(--bg-soft));
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: -12vw;
  left: -8vw;
  background: #97c5ff;
}

.ambient-two {
  right: -9vw;
  bottom: -14vw;
  background: #95a6ff;
}

.site {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.hero-copy {
  opacity: 0;
  transform: translateX(-42px);
  animation: copyReveal 700ms 760ms ease-out forwards;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #245fcb;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
}

h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(2.05rem, 5.4vw, 4rem);
  line-height: 1.03;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, background-color 0.16s ease,
    color 0.16s ease;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(125deg, var(--accent), #2b8cff);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(125deg, var(--accent-strong), var(--accent));
}

.btn-ghost {
  color: #184692;
  border: 1px solid rgba(23, 103, 255, 0.35);
  background: rgba(255, 255, 255, 0.7);
}

.hero-photo-shell {
  margin: 0;
  width: min(360px, 88vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  justify-self: end;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 28% 20%, #f8fcff, #d6e7ff);
  box-shadow: var(--shadow);
  border: 7px solid rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: profileSlideRight 1000ms 120ms cubic-bezier(0.23, 1, 0.32, 1)
    forwards;
}

.hero-photo {
  width: calc(100% - 1.1rem);
  height: calc(100% - 1.1rem);
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
}

.panel {
  background: var(--card);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
  margin-top: 1rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
}

.panel > p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.chips {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  border: 1px solid rgba(20, 73, 157, 0.2);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  background: #ffffff;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.panel-head p {
  margin: 0;
  font-size: 0.92rem;
  color: #5873a1;
}

.project-track {
  margin-top: 0.95rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
}

.project-track::-webkit-scrollbar {
  height: 9px;
}

.project-track::-webkit-scrollbar-thumb {
  background: rgba(23, 103, 255, 0.25);
  border-radius: 999px;
}

.project-card {
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(23, 103, 255, 0.16);
  border-radius: 18px;
  padding: 1rem;
  min-height: 170px;
}

.project-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.project-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.btn-wide {
  margin-top: 0.95rem;
  width: 100%;
}

@keyframes profileSlideRight {
  0% {
    transform: translateX(-42vw) scale(0.72);
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes copyReveal {
  from {
    opacity: 0;
    transform: translateX(-42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-photo-shell {
    justify-self: center;
    width: min(300px, 84vw);
    animation: profileSlideRightMobile 860ms 140ms cubic-bezier(0.23, 1, 0.32, 1)
      forwards;
  }

  .hero-copy {
    order: 2;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

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

  .panel {
    padding: 1.1rem;
  }
}

@media (max-width: 560px) {
  .site {
    width: calc(100% - 1rem);
    padding-top: 1rem;
  }

  .btn {
    width: 100%;
  }

  .panel-head p {
    font-size: 0.86rem;
  }
}

@keyframes profileSlideRightMobile {
  0% {
    transform: translateX(-28vw) scale(0.78);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    transition: none !important;
  }
}
