/* ============================================================
   Pokémon Portfolio — styles
   ============================================================ */

:root {
  --red: #e3350d;
  --red-dark: #b4250a;
  --ink: #1a1a2e;
  --band: #212121;
  --card: #fffef7;
  --card-line: #2b2b3a;
  --gold: #ffcb05;      /* pokémon logo yellow */
  --blue: #3d7dca;      /* pokémon logo blue */
  --grass-mid: #a8e07a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #7ac07a;
  -webkit-font-smoothing: antialiased;
}

/* view switching --------------------------------------------------------- */
.view {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}
.view.is-active { opacity: 1; visibility: visible; }

/* ===================== HOME / GRASS ===================== */
#home {
  overflow: hidden;
  /* the grass photo fills the screen. Drop `grass.jpg` in the project folder.
     A green gradient shows as a fallback until the image is added. */
  background:
    #7ec04f
    linear-gradient(180deg, #9fd15e, #7cbd51 60%, #5ea23f) ;
  background-image: url("grass.jpg"),
    linear-gradient(180deg, #9fd15e, #7cbd51 60%, #5ea23f);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
/* the grass photo already carries its own lighting — no CSS overlays */
#home::before, #home::after { display: none; }
/* the photo supplies the grass, so hide the CSS field decorations */
.wind, .bloom { display: none; }

/* ---- breeze: soft moving light bands over the field ---- */
.wind {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg,
      rgba(255,255,255,0) 0px,
      rgba(255,255,255,.05) 70px,
      rgba(255,255,255,0) 150px);
  mix-blend-mode: soft-light;
  animation: windmove 11s linear infinite;
}
@keyframes windmove {
  from { transform: translateX(-10%); }
  to   { transform: translateX(10%); }
}

/* ---- smooth swaying grass clumps ---- */
.clump {
  position: absolute;
  z-index: 2;
  transform-origin: bottom center;
  animation: sway var(--dur, 3.5s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.12));
}
.clump svg { display: block; }
@keyframes sway {
  from { transform: rotate(calc(var(--amp, 6deg) * -1)); }
  to   { transform: rotate(var(--amp, 6deg)); }
}

/* ---- drifting light particles (pollen) ---- */
.mote {
  position: absolute;
  z-index: 2;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
  pointer-events: none;
  animation: drift var(--dur, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes drift {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { transform: translate(var(--dx, 40px), var(--dy, -120px)); opacity: 0; }
}

/* ---- roaming Pokémon (smooth vector) ---- */
.sprite {
  position: absolute;
  z-index: 3;
  left: 0; top: 0;
  pointer-events: none;
  will-change: transform;
}
.sprite .shadow {
  position: absolute;
  left: 50%; bottom: -2px;
  width: 60%; height: 12px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.25), rgba(0,0,0,0) 70%);
}
.sprite .hop {
  animation: hop var(--hop, 0.5s) ease-in-out infinite;
  display: block;
  transform-origin: bottom center;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.18));
}
@keyframes hop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  40%      { transform: translateY(-18%) scaleY(1.03); }
  50%      { transform: translateY(-20%) scaleY(1.04); }
  75%      { transform: translateY(0) scaleY(.96); }
}

.home-inner {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* glowing aura behind the ball */
.bloom {
  position: absolute;
  width: clamp(340px, 60vw, 560px);
  height: clamp(340px, 60vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,.55) 0%, rgba(255,240,190,.35) 32%,
    rgba(255,255,255,0) 68%);
  filter: blur(4px);
  pointer-events: none;
  animation: bloompulse 2.6s ease-in-out infinite;
}
@keyframes bloompulse {
  0%, 100% { opacity: .55; transform: scale(.95); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

.poke-stage {
  position: relative;
  z-index: 2;
  /* gentle floating so the ball hovers over the grass */
  animation: float 3.6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* ---------- the Poké Ball (pure CSS) ---------- */
.pokeball {
  position: relative;
  width: clamp(250px, 44vw, 380px);
  height: clamp(250px, 44vw, 380px);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.38));
  /* the "beating / asking to be clicked" heartbeat */
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.07); }
  30%      { transform: scale(1.0); }
  45%      { transform: scale(1.04); }
  60%      { transform: scale(1); }
}

.pokeball span { position: absolute; display: block; }

.pb-top, .pb-bottom { left: 0; width: 100%; height: 50%; }
.pb-top {
  top: 0;
  background:
    radial-gradient(135% 130% at 40% 20%, #ff9887 0%, #f0503f 40%, #cf2c1b 78%, #a71e11 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.pb-bottom {
  bottom: 0;
  background:
    radial-gradient(135% 130% at 42% 82%, #ffffff 0%, #f1f1f1 48%, #d3d3d3 82%, #bcbcbc 100%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
/* thin equator band */
.pb-band {
  top: calc(50% - 5px);
  left: 0; width: 100%; height: 10px;
  background: #17181c;
  z-index: 1;
}
/* sphere rim + inner shading for a 3D look */
.pokeball::before {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow:
    inset 0 -16px 28px rgba(0,0,0,.28),
    inset 0 12px 22px rgba(255,255,255,.22);
  border: 2px solid rgba(15,16,20,.55);
  z-index: 2; pointer-events: none;
}
/* centre button: black ring + white core */
.pb-button {
  top: 50%; left: 50%;
  width: 26%; height: 26%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 42% 38%, #ffffff 0%, #ececec 62%, #cfcfcf 100%);
  border: 7px solid #17181c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff inset, 0 2px 4px rgba(0,0,0,.3);
  z-index: 3;
}
/* big glossy highlight across the top-left */
.pb-shine {
  top: 8%; left: 12%;
  width: 46%; height: 34%;
  background: radial-gradient(circle at 35% 35%,
    rgba(255,255,255,.85), rgba(255,255,255,.25) 45%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  transform: rotate(-18deg);
  z-index: 4;
  pointer-events: none;
}
/* twinkling 4-point sparkle sitting on the gloss */
.pb-sparkle {
  top: 18%; left: 24%;
  width: 15%; height: 15%;
  z-index: 5;
  pointer-events: none;
  background: #fff;
  clip-path: polygon(
    50% 0%, 58% 42%, 100% 50%, 58% 58%,
    50% 100%, 42% 58%, 0% 50%, 42% 42%);
  filter: drop-shadow(0 0 3px rgba(255,255,255,.8));
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(.3) rotate(0deg); }
  50%      { opacity: .95; transform: scale(1) rotate(20deg); }
}

.pokeball:hover { animation-play-state: paused; transform: scale(1.12); }

/* ---- wobble sequence triggered on click ---- */
.pokeball.shake {
  animation: shake .5s ease-in-out 2;
}
@keyframes shake {
  0%   { transform: rotate(0) scale(1.06); }
  20%  { transform: rotate(-16deg) scale(1.06); }
  40%  { transform: rotate(12deg)  scale(1.06); }
  60%  { transform: rotate(-10deg) scale(1.06); }
  80%  { transform: rotate(8deg)   scale(1.06); }
  100% { transform: rotate(0) scale(1.06); }
}

/* ---- click: spin before the catch ---- */
.pokeball.spin {
  animation: spin .7s cubic-bezier(.5,0,.3,1);
}
@keyframes spin {
  from { transform: rotate(0deg) scale(1.05); }
  to   { transform: rotate(720deg) scale(1.05); }
}

/* ---- ray of light beam ---- */
.beam {
  position: fixed;
  height: 20px;
  transform-origin: 0 50%;
  transform: rotate(0deg) scaleX(0);
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 8%,
    #ffffff 55%, #ffe58a 100%);
  border-radius: 999px;
  filter: drop-shadow(0 0 12px rgba(255,240,150,.95))
          drop-shadow(0 0 26px rgba(255,255,255,.85));
  z-index: 10;
  pointer-events: none;
  will-change: transform;
}

/* ---- the pokémon being sucked in: glows and shrinks ---- */
.sprite.captured {
  transition: transform .55s cubic-bezier(.5,0,.9,.35), opacity .55s ease-in;
  filter: brightness(2.4) drop-shadow(0 0 12px #fff);
}

/* ---- white ring pop when the catch confirms ---- */
.catch-ring {
  position: fixed;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.95);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  animation: ringpop .5s ease-out forwards;
}
@keyframes ringpop {
  0%   { opacity: .95; transform: translate(-50%,-50%) scale(.2); }
  100% { opacity: 0;   transform: translate(-50%,-50%) scale(2.6); }
}

/* ---- opening: halves split apart, button flares ---- */
.pokeball.open .pb-top    { animation: openTop .5s forwards ease-in; }
.pokeball.open .pb-bottom { animation: openBottom .5s forwards ease-in; }
.pokeball.open .pb-button { box-shadow: 0 0 40px 20px #fff, 0 0 0 4px #fff inset; }
@keyframes openTop {
  to { transform: translateY(-120%) rotate(-8deg); opacity: .2; }
}
@keyframes openBottom {
  to { transform: translateY(120%) rotate(8deg); opacity: .2; }
}

.hint {
  color: #2f5d2f;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 14px;
  background: rgba(255,255,255,.55);
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(47,93,47,.35);
  animation: hintpulse 1.25s ease-in-out infinite;
}
@keyframes hintpulse { 0%,100%{opacity:.65} 50%{opacity:1} }

/* fullscreen white flash */
.flash {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: radial-gradient(circle at center, #fff, #fff);
  transform: scale(0);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.flash.go {
  animation: flashOut .55s forwards ease-out;
}
@keyframes flashOut {
  0%   { transform: scale(0);   opacity: 1; }
  70%  { transform: scale(2.6); opacity: 1; }
  100% { transform: scale(2.6); opacity: 1; }
}
.flash.fade { animation: flashFade .5s forwards ease-in; }
@keyframes flashFade { to { opacity: 0; transform: scale(2.6); } }

/* quick light pop as the ball opens and the trainer appears */
.flash.burst { animation: burst .55s ease-out forwards; }
@keyframes burst {
  0%   { opacity: 0;   transform: scale(.2); }
  35%  { opacity: .85; transform: scale(1.1); }
  100% { opacity: 0;   transform: scale(1.45); }
}

/* ---------- the trainer avatar (released from the ball) ---------- */
.avatar {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(170px, 27vw, 250px);
  transform: translate(-50%, -46%) scale(0);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  will-change: transform, opacity;
}
.avatar svg {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,.28));
}
.avatar.show { animation: emerge .85s cubic-bezier(.2,1.35,.35,1) forwards; }
@keyframes emerge {
  0%   { opacity: 0; transform: translate(-50%, 8%) scale(.14); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -46%) scale(1); }
}
/* gentle idle bob once standing */
.avatar.show svg { animation: avbob 2.4s ease-in-out .85s infinite; }
@keyframes avbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ===================== INFO / CLEAN WEBSITE ===================== */
#info {
  overflow-x: hidden;   /* clouds drift off-screen — don't let them add sideways scroll */
  overflow-y: auto;
  /* soft Pokémon-route sky → grass, kept pastel so the white cards pop */
  background: linear-gradient(180deg,
    #cdeaf8 0%, #dceff3 30%, #e8f2ec 52%, #dcecd4 74%, #c7e2bb 100%);
  font-family: "Inter", system-ui, sans-serif;
}

/* fade in from white so arriving from the Poké Ball's flash is seamless */
.page-in {
  position: fixed; inset: 0; background: #fff; z-index: 9999;
  pointer-events: none; animation: pageIn .5s ease-out forwards;
}
@keyframes pageIn { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .page-in { display: none; } }

/* drifting clouds, pinned to the top of the scroll view */
.scene { position: sticky; top: 0; height: 0; z-index: 0; pointer-events: none; }
.cloud {
  position: absolute; width: 46px; height: 46px;
  background: #fff; border-radius: 50%; opacity: .9;
  filter: drop-shadow(0 8px 10px rgba(120,150,180,.18));
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.cloud::before { width: 62px; height: 62px; left: 24px; top: 8px; }
.cloud::after  { width: 38px; height: 38px; left: -16px; top: 12px; }
.cloud.c1 { top: 34px; left: 6%;  transform: scale(.9);  animation: drift 70s linear infinite; }
.cloud.c2 { top: 74px; left: 42%; transform: scale(1.15); animation: drift 96s linear -22s infinite; }
.cloud.c3 { top: 18px; left: 68%; transform: scale(.7);  animation: drift 60s linear -36s infinite; }
.cloud.c4 { top: 104px; left: 86%; transform: scale(1);  animation: drift 112s linear -55s infinite; }
@keyframes drift { from { margin-left: -180px; } to { margin-left: 105vw; } }

/* two-column website layout: sticky profile + wide content */
.site {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px 72px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 28px;
  align-items: start;
}
.site-top {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 2px;
}
.pdx-back {
  height: 42px; padding: 0 18px 0 14px; border-radius: 12px; border: none;
  background: #fff; color: #2b3560; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(31,45,71,.08); transition: background .15s ease;
}
.pdx-back:hover { background: #f3f5f8; }
.pdx-back-arrow { font-size: 18px; line-height: 1; }

/* left profile sidebar */
.side {
  position: sticky; top: 40px;
  background: #fff; border-radius: 24px; padding: 20px 24px 24px;
  box-shadow: 0 18px 46px rgba(31, 45, 71, .10);
  border: 1px solid rgba(43, 53, 96, .05);
  text-align: center;
}
/* frame the sidebar as a Trainer Card */
.side-tag {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #9aa3b4; margin-bottom: 14px;
}
.mini-ball {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #22252b; box-sizing: border-box;
  background: linear-gradient(180deg, #e3350d 0 42%, #22252b 42% 58%, #fff 58% 100%);
}
/* sidebar hero = a little route scene: sky, a cloud, grassy ground */
.side-hero {
  position: relative; overflow: hidden;
  height: 300px; border-radius: 18px; margin-bottom: 18px;
  /* sky stays, grass recoloured to the landing meadow's warm yellow-green */
  background: linear-gradient(180deg, #bfe6f6 0%, #d6eef1 50%, #c7dd86 72%, #9cc84f 100%);
  display: grid; place-items: center;
}
/* full-body trainer standing on the grass, with a gentle idle animation */
.side-avatar {
  position: absolute; left: 50%; bottom: 0;
  height: 97%; width: auto; max-width: 94%;
  object-fit: contain; object-position: bottom;
  z-index: 1;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.22));
  animation: idle 4.2s ease-in-out infinite;
}
@keyframes idle {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-0.8deg); }
  50%      { transform: translateX(-50%) translateY(-6px) rotate(0.8deg); }
}
/* soft ground shadow that pulses with the bob so he looks planted */
.side-shadow {
  position: absolute; left: 50%; bottom: 12px;
  width: 78px; height: 13px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.30), rgba(0,0,0,0) 70%);
  z-index: 0;
  animation: idleShadow 4.2s ease-in-out infinite;
}
@keyframes idleShadow {
  0%, 100% { transform: translateX(-50%) scale(1);   opacity: .9; }
  50%      { transform: translateX(-50%) scale(.82); opacity: .6; }
}
.side-hero::before { /* soft cloud */
  content: ""; position: absolute; top: 26px; left: 26px; z-index: 0;
  width: 34px; height: 14px; background: #fff; border-radius: 12px; opacity: .9;
  box-shadow: 15px -5px 0 -2px #fff, 27px 1px 0 -4px #fff;
}
.side-hero::after { /* grassy ground with scalloped tips */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 0;
  background: linear-gradient(180deg, #86c14a, #6ba43a);
  -webkit-mask: radial-gradient(circle 7px at 7px 0, transparent 7px, #000 8px) 0 -7px / 14px 100% repeat-x;
          mask: radial-gradient(circle 7px at 7px 0, transparent 7px, #000 8px) 0 -7px / 14px 100% repeat-x;
}

/* Pokédex-style height/weight that fade in when you hover the avatar scene */
.side-stats {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .22s ease;
}
.side-hero:hover .side-stats { opacity: 1; }
.side-stat {
  position: absolute; top: 12px;
  display: inline-flex; align-items: baseline; gap: 5px;
  background: rgba(22, 32, 26, .66); color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 13px;
  padding: 5px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transform: translateY(-5px); transition: transform .22s ease;
}
.side-hero:hover .side-stat { transform: translateY(0); }
.side-stat i { font-style: normal; font-size: 10px; opacity: .7; font-weight: 800; letter-spacing: .05em; }
.side-stat.ht { left: 12px; }
.side-stat.wt { right: 12px; }
.pdx-photo {
  position: relative; z-index: 1;
  width: 130px; height: 130px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(31,45,71,.14); overflow: hidden;
}
.pdx-photo img { width: 100%; height: 100%; object-fit: cover; }
.pdx-photo span { font-size: 52px; color: #bcd6c6; }
.side-name {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 23px; color: #2b3560;
}
.side-role { font-size: 14px; color: #9aa3b4; margin-top: 2px; }
.side-tagline {
  font-size: 13.5px; line-height: 1.5; color: #6c7791;
  margin: 10px auto 0; max-width: 30ch;
}

/* labelled blocks in the trainer card */
.side-block { text-align: left; margin-top: 18px; }
.side-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #aeb6c4; margin-bottom: 10px;
}
.side-chips { gap: 8px; }
.side-chips .pdx-chip { font-size: 12px; padding: 6px 11px; }

.side-facts {
  display: flex; flex-direction: column; gap: 8px;
  margin: 18px 0 0; text-align: left;
}
.side-facts span {
  display: flex; align-items: center; gap: 10px;
  background: #f6f8fa; border-radius: 12px; padding: 11px 14px;
  font-size: 13.5px; font-weight: 600; color: #3b456a;
}
.side-facts i { font-style: normal; font-size: 15px; }
.side-links { display: flex; flex-direction: column; gap: 8px; }
.side-links a {
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; background: #f6f8fa; border-radius: 12px;
  padding: 12px 15px; font-weight: 600; color: #2b3560; font-size: 14px;
  transition: background .15s ease;
}
.side-links a:hover { background: #eef2f6; }
.side-links a span { color: #b3bccb; }

/* right content area */
/* right column is now a stack of separate panel cards */
.main {
  display: flex; flex-direction: column; gap: 18px;
  background: none; box-shadow: none; border: none; padding: 0;
}
.sec {
  background: #fff; border-radius: 22px; padding: 22px 26px;
  box-shadow: 0 14px 36px rgba(31, 45, 71, .08);
  border: 1px solid rgba(43, 53, 96, .05);
}
.sec-title {
  display: flex; align-items: center; gap: 12px;
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 20px; color: #2b3560; margin-bottom: 18px;
}
.sec-title::before { /* mini Poké Ball */
  content: ""; width: 19px; height: 19px; flex: 0 0 auto;
  border-radius: 50%; border: 2px solid #22252b; box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 20%, #22252b 21% 32%, rgba(0,0,0,0) 33%),
    linear-gradient(180deg, #e3350d 0 44%, #22252b 44% 56%, #fff 56% 100%);
}
.sec-title::after { content: ""; flex: 1; height: 1px; background: #eef1f5; }

/* experience: company list <-> details */
.xp { display: flex; gap: 24px; align-items: flex-start; }
.xp-tabs {
  display: flex; flex-direction: column; flex: 0 0 148px;
  border-left: 2px solid #eef1f5;
}
.xp-co {
  text-align: left; border: none; background: none; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; color: #9aa3b4;
  padding: 11px 16px; margin-left: -2px; border-left: 2px solid transparent;
  white-space: nowrap; transition: color .15s, border-color .15s, background .15s;
}
.xp-co:hover { color: #2b3560; background: #f6f8fa; }
.xp-co.is-active { color: #2fa36b; border-left-color: #2fa36b; }
.xp-details { flex: 1; min-width: 0; }
.xp-detail { display: none; }
.xp-detail.is-active { display: block; animation: fadeup .3s ease; }
.xp-detail h4 { font-family: "Poppins", sans-serif; font-size: 17px; color: #2b3560; }
.xp-detail h4 span { color: #2fa36b; }
.xp-date { font-size: 13px; color: #9aa3b4; margin: 5px 0 15px; letter-spacing: .02em; }
.xp-detail ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.xp-detail li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; line-height: 1.6; color: #58627a;
}
.xp-detail li::before { content: "▹"; position: absolute; left: 2px; color: #2fa36b; }

.pdx-tabs {
  display: flex; gap: 26px; padding-top: 22px;
  border-bottom: 1px solid #eef1f5; overflow-x: auto; scrollbar-width: none;
}
.pdx-tabs::-webkit-scrollbar { display: none; }
.pdx-tab {
  border: none; background: none; cursor: pointer;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px;
  color: #aab1c0; padding: 6px 0 14px; white-space: nowrap;
  position: relative; transition: color .15s ease;
}
.pdx-tab:hover { color: #6b7690; }
.pdx-tab.is-active { color: #2b3560; }
.pdx-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: #2b3560;
}

.pdx-panels { padding-top: 24px; }
.pdx-panel { display: none; }
.pdx-panel.is-active { display: block; animation: fadeup .3s ease; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pdx-panel h3 {
  font-family: "Poppins", sans-serif; font-size: 18px; color: #2b3560;
  margin-bottom: 14px;
}
.pdx-lead { font-size: 16px; line-height: 1.75; color: #58627a; max-width: 62ch; }
.pdx-lead a {
  color: #2fa36b; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(47,163,107,.4);
}
.pdx-lead a:hover { border-bottom-color: #2fa36b; }

.xp-item { padding: 18px 0; border-bottom: 1px solid #f0f2f6; }
.xp-item:first-child { padding-top: 4px; }
.xp-item:last-child { border-bottom: none; }
.xp-item b { font-family: "Poppins", sans-serif; font-size: 16px; color: #2b3560; }
.xp-meta { font-size: 13px; color: #9aa3b4; margin: 3px 0 8px !important; }
.xp-item p { font-size: 14.5px; line-height: 1.6; color: #58627a; max-width: 62ch; }

.pdx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* skills as soft type badges */
.pdx-chip {
  background: #eef2f6; color: #3b456a; border-radius: 999px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 700;
}
.pdx-chip:nth-child(6n+1) { background: #e6f0d7; color: #4c6a2c; }
.pdx-chip:nth-child(6n+2) { background: #dcebf8; color: #2f5a9c; }
.pdx-chip:nth-child(6n+3) { background: #fbe6d0; color: #a25f22; }
.pdx-chip:nth-child(6n+4) { background: #ece1fa; color: #6a3fa0; }
.pdx-chip:nth-child(6n+5) { background: #fbe0ea; color: #a83a63; }
.pdx-chip:nth-child(6n+6) { background: #fdefbf; color: #886711; }

/* projects as pastel Pokédex entries */
.pdx-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: dex; }
.pdx-proj {
  position: relative; display: block; counter-increment: dex;
  text-decoration: none; border-radius: 16px; padding: 15px 18px 16px;
  border: 1px solid rgba(43, 53, 96, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pdx-proj::before {
  content: "No. " counter(dex, decimal-leading-zero);
  display: block; margin-bottom: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; color: rgba(43, 53, 96, .4);
}
.pdx-proj:nth-child(3n+1) { background: #e8f1e0; }
.pdx-proj:nth-child(3n+2) { background: #e2eef7; }
.pdx-proj:nth-child(3n+3) { background: #f6ecdf; }
.pdx-proj:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(31, 45, 71, .12); }
.pdx-proj h4 { font-family: "Poppins", sans-serif; font-size: 15.5px; color: #2b3560; }
.pdx-proj p { font-size: 13.5px; color: #6c7791; margin-top: 5px; line-height: 1.55; }
.pdx-proj-arrow { position: absolute; top: 14px; right: 16px; color: #9fb0c0; font-size: 17px; }

/* stack to a single column on narrow screens */
/* ===== playful "drop a Pokémon" footer ===== */
.pfoot {
  position: relative;
  margin-top: 4px;
  overflow: hidden;
  padding: 44px 20px 0;
  text-align: center;
}
/* grassy ground the crowd stands in */
.pfoot-ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 54px; z-index: 0;
  background: linear-gradient(#8cc44f, #6ba43a);
  -webkit-mask: radial-gradient(circle 8px at 8px 0, transparent 8px, #000 9px) 0 -8px / 16px 100% repeat-x;
          mask: radial-gradient(circle 8px at 8px 0, transparent 8px, #000 9px) 0 -8px / 16px 100% repeat-x;
}
.pfoot-cta { position: relative; z-index: 2; }
.pfoot-title {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 22px; color: #2b3560;
}
.pfoot-sub { font-size: 14px; color: #9aa3b4; margin-top: 6px; }
.pfoot-btn {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  background: #2fa36b; color: #fff; border: none; border-radius: 999px;
  padding: 13px 24px; font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 15px; cursor: pointer;
  box-shadow: 0 10px 22px rgba(47,163,107,.32);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pfoot-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(47,163,107,.4); }
.pfoot-btn:active { transform: translateY(0); }
.pfoot-btn:disabled {
  background: #cdd6e2; color: #fff; cursor: default;
  box-shadow: none; transform: none;
}
.pfoot-count { display: block; margin-top: 12px; font-size: 13px; color: #9aa3b4; font-weight: 600; }

.pfoot-stage {
  position: relative; z-index: 1;
  margin-top: 22px; min-height: 118px;
  display: flex; justify-content: center; align-items: flex-end;
  overflow: visible;
}
/* inner track scales down to fit the width so the whole crowd stays visible */
.pfoot-track {
  flex: 0 0 auto;
  display: flex; justify-content: center; align-items: flex-end;
  transform-origin: bottom center;
  transition: transform .3s ease;
}
.pfoot-mon {
  position: relative;
  margin: 0 -12px; flex: 0 0 auto;
  transform: translateY(20px) rotate(var(--rot, 0deg));
  animation: monpop .5s cubic-bezier(.2,1.35,.4,1) both;
}
.pfoot-sprite {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.12));
  transition: transform .18s ease;
}
.pfoot-mon:hover { z-index: 6; }
.pfoot-mon:hover .pfoot-sprite { transform: translateY(-7px) scale(1.07); }
/* name tag on hover */
.pfoot-name {
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(4px) scale(var(--inv, 1));
  background: #2b3560; color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 12px;
  white-space: nowrap; padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 8px 16px rgba(31,45,71,.30);
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.pfoot-name::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #2b3560;
}
.pfoot-mon:hover .pfoot-name { opacity: 1; transform: translateX(-50%) translateY(0) scale(var(--inv, 1)); }

/* small legal / fan-work footer under the crowd */
.legal {
  position: relative; z-index: 2;
  background: #52822c;
  color: rgba(255, 255, 255, .66);
  text-align: center;
  padding: 12px 20px 15px;
  font-size: 10px; line-height: 1.5;
}
.legal p { max-width: 540px; margin: 0 auto; }
.legal p + p { margin-top: 3px; }
.legal a { color: rgba(255, 255, 255, .9); }
.legal-sign { margin-top: 7px; color: rgba(255, 255, 255, .82); }
@keyframes monpop {
  0%   { opacity: 0; transform: translateY(74px) scale(.4) rotate(0); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(20px) scale(1) rotate(var(--rot, 0deg)); }
}

@media (max-width: 820px) {
  .site { grid-template-columns: 1fr; padding: 24px 18px 56px; }
  .side { position: static; min-width: 0; }
  .main { padding: 8px 20px 16px; min-width: 0; }
  .pdx-projects { grid-template-columns: 1fr; }
  /* experience tabs become a horizontal row above the details */
  .xp { flex-direction: column; gap: 16px; align-items: stretch; }
  .xp-tabs {
    flex-direction: row; flex: none; min-width: 0;
    border-left: none; border-bottom: 2px solid #eef1f5;
    overflow-x: auto; scrollbar-width: none;
  }
  .xp-tabs::-webkit-scrollbar { display: none; }
  .xp-co {
    margin-left: 0; margin-bottom: -2px;
    border-left: none; border-bottom: 2px solid transparent;
  }
  .xp-co.is-active { border-left-color: transparent; border-bottom-color: #2fa36b; }
}

/* ===== the one big trading card ===== */
.tcg {
  position: relative;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(150deg,
    #f2f3f5 0%, #c7c9cf 22%, #eceef1 45%, #b9bcc4 70%, #dcdee3 100%);
  box-shadow: 0 22px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.55);
}
.tcg-inner {
  position: relative;
  border-radius: 14px;
  padding: 14px 14px 16px;
  background: radial-gradient(120% 82% at 50% 0%,
    #dcf4ab 0%, #b8e283 28%, #90d060 58%, #6dbb4a 100%);
  box-shadow: inset 0 0 0 3px #e8c54e, inset 0 0 0 5px rgba(0,0,0,.15);
  overflow: hidden;
}

/* top bar */
.tcg-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tcg-stage {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #333;
  background: linear-gradient(#f5f5f7, #c9ccd3);
  padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(0,0,0,.25);
}
.tcg-name {
  flex: 1; font-size: 26px; line-height: 1; color: #171717;
  font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.tcg-hp { font-size: 13px; font-weight: 800; color: #c0392b; }
.tcg-hp b { font-size: 24px; }
.tcg-type { font-size: 22px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }

/* illustration window */
.tcg-art {
  position: relative; height: 236px; border-radius: 8px; overflow: hidden;
  border: 4px solid #e8c54e;
  box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 0 0 2px rgba(0,0,0,.2);
  background: linear-gradient(#c3ebff, #a1daf5 38%, #cfe9ad 72%, #a6d783);
}
.tcg-rays {
  position: absolute; left: 50%; top: 20%;
  width: 200%; height: 200%; transform: translate(-50%, -20%);
  background: repeating-conic-gradient(from 0deg,
    rgba(255,255,255,.30) 0deg 4deg, rgba(255,255,255,0) 4deg 17deg);
  mix-blend-mode: screen; opacity: .55;
  animation: rays 44s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { transform: translate(-50%, -20%) rotate(360deg); } }
.tcg-photo { position: absolute; inset: 0; display: grid; place-items: center; }
.tcg-photo img { width: 100%; height: 100%; object-fit: cover; }
.tcg-photo span {
  font-size: 62px; color: rgba(255,255,255,.9);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));
}

/* info strip */
.tcg-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2px 6px; margin: 9px 0 4px; padding: 5px 10px; border-radius: 6px;
  background: linear-gradient(#eceef1, #c9ccd3); border: 1px solid rgba(0,0,0,.28);
  font-size: 11px; font-weight: 800; color: #333;
  text-transform: uppercase; letter-spacing: .03em;
}
.tcg-strip span:not(:last-child)::after { content: "·"; margin-left: 8px; opacity: .5; }

/* signature move */
.tcg-move {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 8px; padding: 10px 2px 8px;
}
.tcg-energy { display: flex; gap: 3px; }
.tcg-energy i {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.3);
}
.e-grass { background: radial-gradient(circle at 40% 35%, #9be07a, #5aa83f); }
.e-colorless { background: radial-gradient(circle at 40% 35%, #fff, #d7d7d7); }
.tcg-move-name { font-size: 18px; font-weight: 800; color: #171717; }
.tcg-move-tag {
  font-size: 11px; font-weight: 800; color: #4a7a2e;
  text-transform: uppercase; letter-spacing: .05em;
}
.tcg-move-desc { grid-column: 1 / -1; font-size: 13px; color: #2f3a25; margin-top: 2px; }

/* body sections */
.tcg-sec { padding: 13px 2px; border-top: 1px solid rgba(0,0,0,.16); }
.tcg-sec h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; color: #171717; margin-bottom: 9px;
}
.tcg-sec h2 .dot {
  width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 40% 35%, #9be07a, #4f9a35);
  border: 2px solid rgba(0,0,0,.3);
}
.tcg-sec > p { line-height: 1.55; font-size: 14px; color: #243018; }
.ph { color: #5c6b4a; font-style: italic; }

/* skill chips read as white pills on the green card */
.tcg .chip {
  background: #fff; color: #2f5a1e; border: 2px solid #4f9a35;
  text-shadow: none; box-shadow: 0 2px 0 rgba(0,0,0,.12);
}

/* experience timeline */
.tl { list-style: none; position: relative; padding-left: 18px; }
.tl::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: rgba(0,0,0,.22);
}
.tl li { position: relative; padding: 0 0 14px 8px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; left: -18px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #4f9a35; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.tl-when { display: inline-block; font-size: 12px; font-weight: 800; color: #3f7a26; }
.tl b { display: block; font-size: 14.5px; color: #171717; margin: 2px 0; }
.tl p { font-size: 13px; color: #33402a; line-height: 1.5; }

/* card footer */
.tcg-footer { border-top: 1px solid rgba(0,0,0,.2); margin-top: 6px; padding-top: 11px; }
.tcg-flavor { font-size: 12.5px; font-style: italic; line-height: 1.5; color: #2f3a25; padding: 0 4px; }
.tcg-cred {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #34421f; margin-top: 8px; padding: 0 4px; opacity: .85;
}

/* trainer card header */
.trainer-card {
  position: relative;
  background: linear-gradient(135deg, var(--blue), #2f6bb5);
  color: #fff;
  border: 5px solid #fff;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25), 0 0 0 5px rgba(0,0,0,.12);
  overflow: hidden;
}
.trainer-card::before {
  /* holographic streak */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-30%);
  animation: holo 5s linear infinite;
  pointer-events: none;
}
@keyframes holo { to { transform: translateX(60%); } }

.tc-badge {
  position: absolute; top: 12px; right: 14px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  background: var(--gold); color: #3a2f00;
  padding: 4px 10px; border-radius: 999px;
}
.tc-avatar {
  flex: 0 0 auto;
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 5px solid var(--gold);
  background: #eaf2ff;
  overflow: hidden;
  display: grid; place-items: center;
}
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-avatar-placeholder { font-size: 46px; color: var(--blue); }
.tc-name {
  font-size: 30px; line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.3);
}
.tc-role { margin-top: 4px; font-weight: 600; opacity: .95; }
.tc-stats {
  margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px;
}
.tc-stats b { display:block; font-size: 18px; color: var(--gold); }

/* ===== Pokédex header ===== */
.dex-card {
  position: relative;
  background: linear-gradient(135deg, var(--blue), #2f6bb5);
  color: #fff;
  border: 5px solid #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25), 0 0 0 5px rgba(0,0,0,.12);
  overflow: hidden;
}
.dex-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-30%);
  animation: holo 5s linear infinite;
  pointer-events: none;
}
.dex-top { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.dex-id { min-width: 0; }
.dex-species {
  margin-top: 3px; font-weight: 700; font-style: italic;
  color: var(--gold); opacity: .95;
}
.dex-types { margin-top: 10px; }
.dex-types .chip { font-size: 12px; padding: 6px 12px; }

.dex-vitals {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 18px;
}
.dex-vitals > div {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px; padding: 8px 10px; text-align: center;
}
.dex-vitals span {
  display: block; font-size: 11px; letter-spacing: .05em;
  opacity: .85; text-transform: uppercase;
}
.dex-vitals b { display: block; margin-top: 3px; font-size: 14px; color: #fff; }

.dex-flavor {
  position: relative; z-index: 1;
  margin-top: 16px; line-height: 1.55; font-size: 14.5px;
  background: rgba(0,0,0,.16);
  border-radius: 12px; padding: 12px 14px;
}

.panel-sub { font-size: 13px; font-weight: 600; color: #999; }

/* reveal-on-scroll for panels */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ===== Base stats ===== */
.stats { display: flex; flex-direction: column; gap: 10px; }
.stat { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 12px; }
.stat-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.stat-bar {
  height: 14px; background: #ececf2; border-radius: 999px;
  overflow: hidden; border: 1px solid #d6d6e0;
}
.stat-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #7ac74c, #4caf50);
  border-radius: 999px;
  transition: width 1s cubic-bezier(.2,.8,.2,1) .1s;
}
.in-view .stat-bar i { width: var(--v); }
.stat-val { font-weight: 800; font-size: 14px; color: var(--ink); text-align: right; }

/* ===== Evolution journey ===== */
.evo-chain {
  display: flex; align-items: stretch; gap: 8px;
  overflow-x: auto; padding-bottom: 6px;
}
.evo-stage {
  flex: 1 1 0; min-width: 108px;
  background: #fff; border: 3px solid var(--card-line); border-radius: 14px;
  padding: 12px 8px; text-align: center;
  position: relative; overflow: hidden;
  opacity: .35; transform: scale(.96);
  transition: opacity .4s ease, transform .4s ease;
}
.evo-stage.evolved { opacity: 1; transform: scale(1); }
.evo-stage::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; opacity: 0; pointer-events: none;
}
.evo-stage.evolving::after { animation: evoflash .6s ease-out; }
@keyframes evoflash { 0% { opacity: 0; } 40% { opacity: .95; } 100% { opacity: 0; } }
.evo-orb {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(circle at 35% 30%, #fff, #e9eefb);
  border: 3px solid var(--blue);
}
.evo-stage h3 { font-size: 14px; color: var(--red-dark); }
.evo-when { font-size: 12px; font-weight: 700; color: var(--blue); margin: 2px 0 6px; }
.evo-note { font-size: 12px; line-height: 1.4; color: #555; }
.evo-arrow {
  align-self: center; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  color: var(--red-dark); font-weight: 800; font-size: 11px;
}
.evo-arrow::before { content: "▸"; font-size: 22px; line-height: 1; color: var(--red); }

/* ===== Team of 6 (tech stack) ===== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-mon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 3px solid var(--card-line); border-radius: 14px;
  padding: 12px 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.team-mon:hover { transform: translateY(-4px); box-shadow: 0 10px 18px rgba(0,0,0,.15); }
.team-orb {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  border: 3px solid rgba(0,0,0,.18);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.15);
}
.team-name { font-weight: 800; font-size: 13.5px; color: var(--ink); }
.team-type {
  font-size: 11px; color: #888; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}

/* content panels */
.panel {
  background: var(--card);
  border: 4px solid var(--card-line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 20px;
  box-shadow: 0 8px 0 rgba(0,0,0,.12);
}
.panel-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; margin-bottom: 12px;
  color: var(--ink);
}
.panel-title i {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(var(--red) 0 50%, #fff 50% 100%);
  border: 3px solid var(--band);
  flex: 0 0 auto;
}
.panel-body { line-height: 1.6; }

/* skill chips = type badges */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  color: #fff; font-weight: 800; font-size: 13px;
  letter-spacing: .03em;
  padding: 7px 14px; border-radius: 999px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.25);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
}
.t-electric { background:#f7d02c; color:#5a4a00; text-shadow:none; }
.t-water    { background:#6390f0; }
.t-grass    { background:#7ac74c; }
.t-fire     { background:#ee8130; }
.t-psychic  { background:#f95587; }
.t-steel    { background:#b7b7ce; color:#2b2b3a; text-shadow:none; }

/* projects = gym badges */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project {
  display: block;
  text-decoration: none; color: inherit;
  background: #fff;
  border: 3px solid var(--card-line);
  border-radius: 14px;
  padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: 0 10px 18px rgba(0,0,0,.18); }
.project h3 { font-size: 16px; margin-bottom: 6px; color: var(--red-dark); }
.project p { font-size: 13.5px; line-height: 1.5; color: #444; }

/* contact links */
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.link {
  text-decoration: none; font-weight: 700;
  color: #fff; background: var(--red);
  padding: 10px 18px; border-radius: 999px;
  border: 3px solid var(--band);
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
  transition: transform .12s ease;
}
.link:hover { transform: translateY(-2px); }

.close-btn {
  display: block; margin: 34px auto 0;
  background: var(--ink); color: #fff;
  border: none; border-radius: 999px;
  padding: 12px 26px; font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0,0,0,.3);
}
.close-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .pokeball, .poke-stage, .pokeball::after, .hint, .trainer-card::before,
  .dex-card::before, .wind, .clump, .mote, .bloom, .pb-sparkle, .sprite .hop,
  .tcg-rays, .cloud, .side-shadow {
    animation: none !important;
  }
  .side-avatar { animation: none !important; transform: translateX(-50%) !important; }
  /* show content without scroll animation */
  .reveal { opacity: 1 !important; transform: none !important; }
  .evo-stage { opacity: 1 !important; transform: none !important; }
  .stat-bar i { transition: none !important; }
}

/* small screens */
@media (max-width: 560px) {
  .pokeball { width: 150px; height: 150px; }
  .trainer-card { flex-direction: column; text-align: center; }
  .tc-stats { justify-content: center; }
  .projects { grid-template-columns: 1fr; }
  .dex-top { flex-direction: column; text-align: center; }
  .dex-types { justify-content: center; }
  .dex-vitals { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .stat { grid-template-columns: 78px 1fr 30px; }
}
