:root {
  --bg: #eef2f7;
  --text: #0f172a;
  --muted: #475569;
  --panel: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --nav-bg: rgba(15, 23, 42, 0.95);
  --accent: #0f172a;
  --accent-2: #14b8a6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.lava {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background: #eef2f7;
}

.lava::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(110px);
  z-index: 2;
}

.blob {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.7;
  transform: translate(-50%, -50%);
  animation: drift 24s ease-in-out infinite;
  z-index: 1;
}

.blob-1 {
  width: 24rem;
  height: 24rem;
  background: linear-gradient(130deg, rgba(129, 140, 248, 0.52), rgba(192, 132, 252, 0.45));
  animation-duration: 20s;
}

.blob-2 {
  width: 30rem;
  height: 30rem;
  background: linear-gradient(130deg, rgba(56, 189, 248, 0.5), rgba(99, 102, 241, 0.42));
  animation-duration: 25s;
  animation-delay: 1s;
}

.blob-3 {
  width: 28rem;
  height: 28rem;
  background: linear-gradient(130deg, rgba(20, 184, 166, 0.46), rgba(16, 185, 129, 0.36));
  animation-duration: 28s;
  animation-delay: 2s;
}

.blob-4 {
  width: 20rem;
  height: 20rem;
  background: linear-gradient(130deg, rgba(59, 130, 246, 0.4), rgba(147, 197, 253, 0.4));
  animation-duration: 24s;
  animation-delay: 3s;
}

@keyframes drift {
  0% { transform: translate(-50%, -50%) translate(-120px, -60px); }
  33% { transform: translate(-50%, -50%) translate(140px, 120px); }
  66% { transform: translate(-50%, -50%) translate(-140px, 80px); }
  100% { transform: translate(-50%, -50%) translate(-120px, -60px); }
}

.toolbar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
}

.menu-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.menu-btn:hover {
  background: #ffffff;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(84vw, 320px);
  background: var(--nav-bg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 45;
  padding: 86px 22px 24px;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar a,
.sidebar button {
  width: 100%;
  display: block;
  text-align: left;
  color: #e2e8f0;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 12px 10px;
  border-radius: 10px;
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
}

.sidebar a:hover,
.sidebar button:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #ffffff;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.42);
  z-index: 44;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.main-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 110px 20px 44px;
  position: relative;
  z-index: 5;
}

.hero-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4.7vw, 2.8rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 18px 0 10px;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
}

p {
  color: #334155;
  line-height: 1.75;
}

.hero-email {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(1.08rem, 3.5vw, 1.7rem);
}

.hero-email:hover {
  color: var(--text);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  padding: clamp(18px, 3vw, 30px);
}

.stack {
  display: grid;
  gap: 18px;
}

.bio-intro {
  display: block;
}

.bio-intro::after {
  content: "";
  display: block;
  clear: both;
}

.profile-figure {
  margin: 0;
  border-radius: 0;
  overflow: visible;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.bio-copy {
  margin-top: 20px;
  display: block;
}

.bio-copy > * + * {
  margin-top: 18px;
}

.profile-figure-float {
  float: right;
  width: clamp(220px, 33vw, 340px);
  margin: 6px 0 18px 26px;
}

.bio-cta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  clear: both;
}

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

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

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  background: #d1fae5;
  color: #065f46;
}

.badge.warm {
  background: #fef3c7;
  color: #92400e;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: #020617;
}

.btn.alt {
  background: #0d9488;
}

.btn.alt:hover {
  background: #0f766e;
}

ul.clean {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.75;
}

a.inline {
  color: #0f172a;
}

a.inline:hover {
  text-decoration: none;
}

input,
label {
  font: inherit;
}

.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
}

.form-input:focus {
  outline: 2px solid rgba(20, 184, 166, 0.4);
  outline-offset: 1px;
}

.muted {
  color: #64748b;
}

@media (max-width: 900px) {
  .profile-figure {
    max-width: 460px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-figure-float {
    float: none;
    width: min(100%, 440px);
    margin: 0 auto 20px;
  }
}

@media (max-width: 560px) {
  .bio-cta {
    flex-direction: column;
  }
}
