:root {
  --ink: #1c1733;
  --cream: #fdf6ec;
  --accent: #ff7a59;
  --accent-2: #ffd98a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--cream);
  display: flex;
  background: linear-gradient(135deg, #ff9a6b, #ff6f91, #6a4fb0, #1c1733);
  background-size: 300% 300%;
  animation: dusk 22s ease infinite;
}

@keyframes dusk {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.stage {
  margin: auto;
  padding: 48px 20px 28px;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: 100%;
  background: rgba(28, 23, 51, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 40px 36px 44px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--accent-2);
  animation: rise 0.9s 0.1s both;
}

.name {
  margin: 6px 0 4px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
  animation: rise 0.9s 0.18s both;
}

.role {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: rgba(253, 246, 236, 0.85);
  animation: rise 0.9s 0.26s both;
}

.hl {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- scene ---------- */
.scene {
  position: relative;
  height: 220px;
  margin: 14px auto 8px;
  max-width: 360px;
}

.skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  color: rgba(12, 9, 28, 0.6);
}

.windows rect { animation: flicker 4s steps(1) infinite; }
.windows rect:nth-child(2n) { animation-delay: 1.3s; }
.windows rect:nth-child(3n) { animation-delay: 2.1s; }

@keyframes flicker {
  0%, 60%, 100% { opacity: 1; }
  70%, 92% { opacity: 0.15; }
}

.stickman {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 110px;
  height: auto;
  transform: translateX(-50%);
  transform-origin: bottom center;
  animation: bob 3.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.3));
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

.head { fill: var(--accent-2); stroke: var(--ink); stroke-width: 3; }
.eye  { fill: var(--ink); }
.eye  { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.smile { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.limb {
  stroke: var(--cream);
  stroke-width: 6;
  stroke-linecap: round;
}

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.arm-wave {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: wave 1.4s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(-10deg); }
  50%      { transform: rotate(20deg); }
}

/* ---------- bio + chips ---------- */
.bio {
  margin: 6px auto 22px;
  max-width: 460px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(253, 246, 236, 0.92);
  animation: rise 0.9s 0.34s both;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: rise 0.9s 0.42s both;
}

.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.chips li:hover {
  transform: translateY(-3px);
  background: rgba(255, 122, 89, 0.28);
}

.foot {
  margin-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(253, 246, 236, 0.7);
}

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