/* ------------------------------------------------------------------
   Design tokens — playful, character-driven bio for Net
------------------------------------------------------------------- */
:root {
  --bg: #FFF8E7;
  --bg-2: #FFEFC7;
  --ink: #1B1B3A;
  --ink-soft: #4A4A6A;
  --muted: #8A8AA8;
  --line: #1B1B3A;

  --yellow: #FFD93D;
  --mint:   #4ECDC4;
  --coral:  #FF6B6B;
  --lav:    #B19CD9;
  --leaf:   #7BC950;
  --sky:    #6BC5F8;

  --accent: var(--yellow);
  --accent-2: var(--mint);
  --accent-3: var(--coral);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --b: 3px;
  --shadow: 6px 6px 0 var(--line);
  --shadow-lg: 10px 10px 0 var(--line);
  --shadow-soft: 0 12px 30px -10px rgba(27,27,58,.25);

  --pattern: dots;
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  margin: 0 0 .4em;
  letter-spacing: -.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p  { margin: 0 0 1em; }
a  { color: inherit; text-decoration: none; }

/* ---- backdrop patterns ---- */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg);
}
.backdrop[data-pattern="dots"] {
  background-image: radial-gradient(circle, rgba(27,27,58,.10) 1.5px, transparent 1.6px);
  background-size: 28px 28px;
  background-color: var(--bg);
}
.backdrop[data-pattern="stars"] {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,217,61,.35) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(78,205,196,.30) 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,107,107,.25) 2px, transparent 3px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
  background-color: var(--bg);
}
.backdrop[data-pattern="grid"] {
  background-image:
    linear-gradient(to right, rgba(27,27,58,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,27,58,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: var(--bg);
}
.backdrop[data-pattern="plain"] { background-color: var(--bg); }

/* floating shapes (parallax) */
.shape {
  position: absolute;
  border: var(--b) solid var(--line);
  background: var(--accent);
  box-shadow: var(--shadow);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
  z-index: 0;
}
.shape.sq { border-radius: 14px; }
.shape.di { border-radius: 8px; transform: rotate(45deg); }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

/* ---- layout ---- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

main { position: relative; z-index: 1; overflow-x: clip; }

section { padding: 90px 0; position: relative; overflow: hidden; }

/* ---------- section deco shapes ---------- */
.deco {
  position: absolute;
  border: var(--b) solid var(--line);
  pointer-events: none;
  z-index: 0;
  opacity: .30;
}
.deco-circle { border-radius: 50%; }
.deco-square { border-radius: 14px; }
.deco-diamond { border-radius: 8px; }
.deco-float {
  animation: decoFloat 6s ease-in-out infinite;
}
.deco-bob {
  animation: decoBob 4s ease-in-out infinite;
}
.deco-spin {
  animation: decoSpin 12s linear infinite;
}
@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(var(--deco-rot, 0deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--deco-rot, 0deg) + 6deg)); }
}
@keyframes decoBob {
  0%, 100% { transform: translateY(0) rotate(var(--deco-rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--deco-rot, 0deg)); }
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 18px; z-index: 30;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 8px;
  background: #fff;
  border: var(--b) solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav a {
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  transition: all .15s;
}
.nav a:hover { background: var(--accent); }
.nav a.is-current { background: var(--accent); font-weight: 800; }
.nav a.brand { background: var(--ink); color: var(--bg); padding: 8px 16px; }
.nav a.brand:hover { background: var(--ink); }

/* hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 36px; height: 36px;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.burger-line,
.burger-line::before,
.burger-line::after {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.burger-line { top: 50%; transform: translateY(-50%); }
.burger-line::before { content: ''; top: -8px; left: 0; right: 0; }
.burger-line::after { content: ''; top: 8px; left: 0; right: 0; }
.burger-line.open { background: transparent; }
.burger-line.open::before { top: 0; transform: rotate(45deg); }
.burger-line.open::after { top: 0; transform: rotate(-45deg); }

/* nav links wrapper — visible by default on desktop */
.nav-links { display: contents; }

/* ---- chunky button ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: var(--b) solid var(--line);
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--line); }
.btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--line); }
.btn.ghost { background: #fff; }
.btn.coral { background: var(--coral); color: #fff; }
.btn.mint { background: var(--mint); color: var(--ink); }

/* ---- card ---- */
.card {
  background: #fff;
  border: var(--b) solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}

/* eyebrow / label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
}
.eyebrow.coral { background: var(--coral); color: #fff; }
.eyebrow.mint { background: var(--mint); color: var(--ink); }
.eyebrow.lav { background: var(--lav); color: var(--ink); }
.eyebrow.yellow { background: var(--yellow); color: var(--ink); }

/* ----------------- HERO ----------------- */
.hero {
  padding-top: 60px;
  padding-bottom: 40px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: auto 1fr;
  gap: 0 40px;
  align-items: start;
}
.hero-head { grid-column: 1; grid-row: 1; }
.hero-body { grid-column: 1; grid-row: 2; }
.hero-grid > .character-stage { grid-column: 2; grid-row: 1 / 3; align-self: center; }

.hero h1 .wave-em {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 3.5s ease-in-out infinite;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.hero h1 .hi {
  color: var(--ink);
}
.hero h1 .name {
  position: relative;
  display: inline-block;
}
.hero h1 .name::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: 4px;
  height: 18px;
  background: var(--accent);
  z-index: -1;
  border-radius: 6px;
  transform: rotate(-1.5deg);
}
.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-tech-icon {
  position: relative;
  width: 42px; height: 42px;
  padding: 8px;
  background: #fff;
  border: var(--b) solid var(--line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--line);
  display: grid;
  place-items: center;
  transition: transform .15s, box-shadow .15s;
}
.hero-tech-icon:hover {
  transform: translate(-2px, -2px) rotate(-4deg);
  box-shadow: 5px 5px 0 var(--line);
}
.hero-tech-icon::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bg);
  padding: 5px 12px;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.hero-tech-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.hero-tech-learning {
  border-style: dashed;
  opacity: .7;
}
.hero-tech-learning:hover {
  opacity: 1;
}
.hero-tech-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--sky);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 6px;
  border: 2px solid var(--line);
  white-space: nowrap;
}
.hero-tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- new hero bits ---- */
.hero-sub {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 26px;
  line-height: 1.55;
}
.hero-sub b { color: var(--ink); font-family: 'Fredoka', sans-serif; font-weight: 600; }
/* ---- About v2 ---- */
.about-header { max-width: 720px; margin-bottom: 36px; }
.about-header h2 { margin-top: 14px; }
.lede { color: var(--ink-soft); font-size: 17px; margin: 0; }
.lede code {
  background: var(--bg-2);
  border: 2px solid var(--line);
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Fredoka', sans-serif;
}

.edu-card { font-family: 'Fredoka', sans-serif; }

/* About mascot */
.about-mascot {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  align-self: center;
}
.about-disc {
  position: absolute;
  inset: 8%;
  border: var(--b) solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-disc::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 30deg, rgba(255,255,255,.18) 30deg 60deg);
  animation: spin 30s linear infinite;
}
.about-bob {
  position: absolute;
  inset: 0;
  animation: bob var(--bob-speed, 3.4s) ease-in-out infinite;
}
.about-mascot-img {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 0 rgba(27,27,58,.18));
}
.sparkle {
  position: absolute;
  z-index: 2;
  animation: sparkleTwinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}
.sparkle svg { width: 100%; height: 100%; display: block; }
@keyframes sparkleTwinkle {
  0%,100% { transform: scale(.7) rotate(0); opacity: .6; }
  50%     { transform: scale(1.15) rotate(20deg); opacity: 1; }
}
.about-bubble {
  position: absolute;
  bottom: 4%;
  right: -10px;
  background: #fff;
  border: var(--b) solid var(--line);
  border-radius: 22px;
  padding: 10px 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow);
  z-index: 3;
  animation: bubblePop .5s cubic-bezier(.34,1.56,.64,1);
}
.about-bubble::after {
  content: '';
  position: absolute;
  left: 24px; top: -14px;
  width: 22px; height: 22px;
  background: #fff;
  border-left: var(--b) solid var(--line);
  border-top: var(--b) solid var(--line);
  transform: rotate(45deg);
}

/* Skills — grouped logo grid */
.skills-header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.skills-title { margin: 0; font-size: clamp(24px, 2.8vw, 32px); }
.skills-grouped {
  display: flex; flex-direction: column; gap: 24px;
}
.skill-group-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--line);
}
.skill-group-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: 0 0 12px;
}
.skill-group-items {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.skill-logo-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px;
  background: #fff;
  border: var(--b) solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  cursor: default;
}
.skill-logo-card:hover {
  transform: translate(-3px, -3px) rotate(-2deg);
  box-shadow: 9px 9px 0 var(--line);
}
.skill-logo-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
}
.skill-logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.skill-logo-fallback {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--mint);
  border: var(--b) solid var(--line);
  border-radius: 14px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.skill-logo-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Experience tweaks */
.now-chip {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--leaf);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* Education */
.edu-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.edu-card {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px;
}
.edu-cap {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  background: var(--yellow);
  border: var(--b) solid var(--line);
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 28px;
}
.edu-school { font-family: 'Fredoka', sans-serif; font-size: 20px; font-weight: 700; }
.edu-degree { color: var(--ink-soft); margin-top: 2px; }
.edu-date   { color: var(--muted); font-size: 14px; font-family: 'Fredoka', sans-serif; margin-top: 4px; }

/* ---- About: personal intro card ---- */
.about-personal {
  padding: 32px 36px;
  margin-bottom: 36px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.about-personal::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 140px; height: 140px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: .35;
}
.about-personal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.about-personal-head { grid-column: 1; grid-row: 1; }
.about-personal-text { grid-column: 1; grid-row: 2; }
.about-personal-mascot { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.about-personal-title {
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 4px 0 12px;
}
.about-personal-body {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}
.about-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.about-chip {
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  padding: 7px 14px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform .15s;
}
.about-chip:hover { transform: translateY(-2px) rotate(-1deg); background: var(--yellow); }
.about-personal-mascot {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
}

/* ---- About: clickable card + fullscreen modal ---- */
@media (max-width: 880px) {
  .about-personal-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
    text-align: center;
  }
  .about-personal-head { grid-column: 1; grid-row: 1; }
  .about-personal-mascot { grid-column: 1; grid-row: 2; max-width: 240px; margin: 0 auto; }
  .about-personal-text { grid-column: 1; grid-row: 3; text-align: left; }
  .edu-card { flex-direction: row; }
  .contact-mascot { display: none; }
}

/* ---- Contact mascot ---- */
.contact-wrap {
  position: relative;
}
.contact-mascot {
  position: absolute;
  right: -10px;
  bottom: -40px;
  width: 280px;
  z-index: 3;
  pointer-events: none;
}
.contact-mascot img {
  width: 100%;
  display: block;
  animation: bob var(--bob-speed, 3.4s) ease-in-out infinite;
  filter: drop-shadow(0 12px 0 rgba(27,27,58,.25));
}
.contact-mascot .contact-bubble {
  position: absolute;
  top: 0;
  right: 90%;
  background: #fff;
  color: var(--ink);
  border: var(--b) solid var(--line);
  border-radius: 22px;
  padding: 12px 18px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow);
  white-space: normal;
  width: 220px;
  animation: bubblePop .5s cubic-bezier(.34,1.56,.64,1);
  z-index: 1;
}
.contact-mascot .contact-bubble::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 18px; height: 18px;
  background: #fff;
  border-right: var(--b) solid var(--line);
  border-top: var(--b) solid var(--line);
}
@media (max-width: 1100px) {
  .contact-mascot { width: 220px; right: -20px; bottom: -30px; }
}
@media (max-width: 760px) {
  .contact-mascot { display: none; }
}

/* ----------------- CHARACTER ----------------- */
.character-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.character-disc {
  position: absolute;
  inset: 6%;
  background: var(--accent-2);
  border: var(--b) solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.character-img-reading {
  clip-path: circle(46% at 50% 50%);
}
.character-disc::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(27,27,58,.05) 39%, transparent 41%),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(255,255,255,.4) 51%, transparent 53%);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.character-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: opacity .25s ease;
  will-change: transform;
}
.character-bob { animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.character-bubble {
  position: absolute;
  top: 6%; right: -10px;
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
  border: var(--b) solid var(--line);
  border-radius: 22px;
  padding: 12px 18px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--line), 0 8px 20px -6px rgba(27,27,58,.15);
  white-space: nowrap;
  z-index: 3;
  animation: bubblePop .35s cubic-bezier(.34,1.56,.64,1), bubbleFloat 3s ease-in-out infinite .4s;
}
.character-bubble::after {
  content: '';
  position: absolute;
  left: 24px; bottom: -14px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #f0f7ff, #f0f7ff);
  border-right: var(--b) solid var(--line);
  border-bottom: var(--b) solid var(--line);
  transform: rotate(45deg);
}
@keyframes bubblePop {
  0% { transform: scale(.3) translateY(20px); opacity: 0; }
  60% { transform: scale(1.05) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.character-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.confetti-bit {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--line);
  background: var(--coral);
  animation: confetti 1s ease-out forwards;
}
@keyframes confetti {
  0% { transform: translate(0,0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* tiny floating orbits around character */
.orbit {
  position: absolute;
  background: var(--yellow);
  border: var(--b) solid var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--line);
  z-index: 2;
}
.orbit.star {
  border: none;
  width: 36px; height: 36px;
  background: none;
  box-shadow: none;
}

/* ----------------- EXPERIENCE ----------------- */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--ink);
  border-radius: 4px;
}
.t-item {
  position: relative;
  margin-bottom: 28px;
}
.t-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 18px;
  width: 22px; height: 22px;
  background: var(--accent);
  border: var(--b) solid var(--line);
  border-radius: 50%;
  z-index: 2;
}
.t-item:nth-child(2)::before { background: var(--mint); }
.t-item:nth-child(3)::before { background: var(--coral); }
.t-item:nth-child(4)::before { background: var(--lav); }
.t-card {
  background: #fff;
  border: var(--b) solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.t-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.t-co { font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 700; }
.t-date { color: var(--muted); font-size: 14px; font-family: 'Fredoka', sans-serif; }
.t-role { font-weight: 700; color: var(--accent-3); margin-bottom: 12px; }
.t-bullets { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.t-bullets li { margin-bottom: 6px; }

/* ----------------- LOVES ----------------- */
.loves-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.love {
  position: relative;
  display: block;
  background: #fff;
  border: var(--b) solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: all .2s ease;
  overflow: hidden;
}
.love:hover { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--line); }
.love .emoji {
  font-family: 'Fredoka', sans-serif;
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  border: var(--b) solid var(--line);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.love h4 { margin-bottom: 4px; font-size: 22px; }
.love p { color: var(--muted); margin: 0; font-size: 14px; }
.love .arrow {
  position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: var(--b) solid var(--line);
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform .2s;
}
.love:hover .arrow { transform: rotate(-45deg); background: var(--yellow); }

/* ----------------- SECTION GIMMICK ----------------- */
.section-with-gimmick {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.section-with-gimmick > div { flex: 1; min-width: 0; }
.section-with-gimmick-left {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0 28px;
}
.gimmick-img {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(2px 4px 6px rgba(27,27,58,.15));
}
.gimmick-run {
  animation: gimmickRun 0.6s ease-in-out infinite alternate;
}
.gimmick-read {
  animation: gimmickRead 3s ease-in-out infinite;
  transform-origin: bottom center;
}
.gimmick-tcg {
  animation: gimmickFloat 2.5s ease-in-out infinite;
}
@keyframes gimmickRun {
  0%   { transform: translateX(-4px) rotate(-2deg); }
  100% { transform: translateX(4px) rotate(2deg); }
}
@keyframes gimmickRead {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(3deg) translateY(2px); }
  60%      { transform: rotate(-2deg) translateY(1px); }
}
@keyframes gimmickFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.section-mascot-divider {
  text-align: center;
  padding: 20px 0 0;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.divider-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: .02em;
}
.divider-mascot {
  width: 340px;
  height: auto;
  filter: drop-shadow(4px 6px 8px rgba(27,27,58,.2));
}
@media (max-width: 880px) {
  .divider-mascot { width: 220px; }
}
@media (max-width: 560px) {
  .section-with-gimmick { flex-wrap: wrap; }
  .gimmick-img { width: 100px; margin: 0 auto; }
  .divider-mascot { width: 140px; }
}

/* ----------------- RUNNING RECORDS ----------------- */
.runs-grid {
  display: flex; flex-direction: column; gap: 16px;
}
.run-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
}
.run-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.run-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--line);
}
.run-card-link:hover .run-slip {
  background: var(--yellow);
}
.run-emoji {
  width: 56px; height: 56px;
  flex: 0 0 56px;
  background: var(--mint);
  border: var(--b) solid var(--line);
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
}
.run-info { flex: 1; min-width: 0; }
.run-event {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.run-meta {
  display: flex; gap: 12px; align-items: center;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}
.run-distance {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  padding: 2px 10px;
  background: var(--mint);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}
.run-date { font-family: 'Fredoka', sans-serif; color: var(--muted); }
.run-slip { flex: 0 0 auto; font-size: 14px; padding: 10px 16px; }
.run-soon {
  opacity: .55;
  border-style: dashed;
}
.run-soon .run-emoji {
  background: #d0d0d8;
}
.run-soon .run-distance {
  background: #d0d0d8;
}
.run-soon:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.run-badge {
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--mint);
  border: var(--b) solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .run-card { flex-wrap: wrap; }
  .run-slip { width: 100%; text-align: center; justify-content: center; }
}

/* ----------------- YOUTUBE ----------------- */
.yt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.yt-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.yt-cat-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--muted);
  color: var(--ink);
}
.yt-more {
  display: block;
  margin: 18px auto 0;
  font-size: 15px;
}
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.yt-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
  transition: all .2s ease;
}
.yt-card:hover { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--line); }
.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: var(--b) solid var(--line);
}
.yt-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.yt-play {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-size: 32px;
  color: #fff;
  background: rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .2s;
}
.yt-card:hover .yt-play { opacity: 1; }
.yt-info { padding: 16px 20px; }
.yt-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.yt-date {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Fredoka', sans-serif;
  margin-top: 4px;
}
.yt-empty {
  text-align: center;
  padding: 40px 24px;
}
.yt-empty p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 17px;
}

/* ----------------- BOOKSHELF ----------------- */
.book-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.book-cat-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--muted);
  color: var(--ink);
}
.book-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  gap: 20px;
}
.book-card.card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: all .2s ease;
}
.book-card:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 9px 9px 0 var(--line);
}
.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-bottom: var(--b) solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  padding: 14px 10px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-info {
  padding: 10px 12px;
}
.book-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-author {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-more {
  display: block;
  margin: 18px auto 0;
  font-size: 15px;
}
.book-empty {
  text-align: center;
  padding: 40px 24px;
}
.book-empty p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 17px;
}
@media (max-width: 560px) {
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
}

/* ----------------- TCG COLLECTION ----------------- */
.tcg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tcg-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  transition: all .2s ease;
}
.tcg-card:hover { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--line); }
.tcg-emoji {
  width: 52px; height: 52px;
  flex: 0 0 52px;
  background: var(--lav);
  border: var(--b) solid var(--line);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px;
  overflow: hidden;
}
.tcg-icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.tcg-info { flex: 1; min-width: 0; }
.tcg-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.tcg-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}
.tcg-soon {
  opacity: .55;
  border-style: dashed;
  cursor: default;
}
.tcg-soon:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.tcg-badge {
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--lav);
  border: var(--b) solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}
.tcg-card .arrow {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: var(--b) solid var(--line);
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform .2s;
}
.tcg-card:hover .arrow { transform: rotate(-45deg); background: var(--lav); }

/* ----------------- CONTACT ----------------- */
.contact-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 48px 42px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: var(--b) solid var(--line);
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: var(--bg); }
.contact-card p { color: rgba(255,248,231,.7); max-width: 540px; margin-left: auto; margin-right: auto; }
.contact-row {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 24px;
}
.contact-card .blob {
  position: absolute;
  border-radius: 50%;
  border: var(--b) solid var(--line);
  z-index: 0;
}
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.contact-socials-icons {
  gap: 16px;
  justify-content: center;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  background: rgba(255,248,231,.12);
  border: 2px solid rgba(255,248,231,.2);
  border-radius: 50%;
  transition: background .15s, transform .15s;
}
.contact-icon img {
  width: 26px; height: 26px;
  object-fit: contain;
}
.contact-icon:hover {
  background: rgba(255,248,231,.25);
  transform: translateY(-3px) scale(1.1);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.contact-eyebrow-row {
  flex-basis: 100%;
  text-align: center;
}
.contact-main {
  flex: 1;
  text-align: center;
}
.contact-peek {
  position: absolute;
  top: -60px;
  left: -20px;
  z-index: 4;
  pointer-events: none;
}
.contact-avatar {
  position: relative;
  width: 140px;
  height: 140px;
}
.contact-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  opacity: .25;
}
.contact-side-img {
  position: relative;
  width: 100%;
  z-index: 1;
  animation: bob var(--bob-speed, 3.4s) ease-in-out infinite;
  filter: drop-shadow(0 6px 0 rgba(27,27,58,.2));
}
.contact-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.donate-box {
  text-align: center;
  background: rgba(255,248,231,.08);
  border: 2px solid rgba(255,248,231,.12);
  border-radius: var(--r-lg);
  padding: 24px 24px 18px;
}
.donate-qr {
  width: 180px;
  height: 180px;
  border-radius: var(--r-md);
  border: var(--b) solid rgba(255,248,231,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.donate-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,248,231,.7);
  margin-top: 12px;
  margin-bottom: 0;
}
@media (max-width: 880px) {
  .contact-layout {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .contact-eyebrow-row { order: 1; }
  .contact-side   { order: 2; justify-content: center; width: 100%; }
  .contact-main   { order: 3; }
}
@media (max-width: 560px) {
  .donate-qr { width: 120px; height: 120px; }
  .donate-box { padding: 16px 16px 12px; }
  .donate-label { font-size: 12px; }
  .contact-icon { width: 38px; height: 38px; }
  .contact-icon img { width: 18px; height: 18px; }
  .contact-socials-icons { gap: 8px; justify-content: center; flex-wrap: nowrap; }
  .contact-card h2 { font-size: clamp(17px, 4.5vw, 22px); margin-top: 0; }
  .contact-card .eyebrow { font-size: 12px; padding: 5px 14px; }
}
@media (max-width: 400px) {
  .contact-icon { width: 34px; height: 34px; }
  .contact-icon img { width: 16px; height: 16px; }
  .contact-socials-icons { gap: 6px; }
  .contact-card { padding: 28px 14px; }
  .donate-qr { width: 110px; height: 110px; }
}

/* ---- footer ---- */
.foot {
  padding: 36px 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---- MiniCharacter (page headers) ---- */
.mini-character {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
}
.mini-disc {
  position: absolute;
  inset: 8%;
  border: var(--b) solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.mini-bob {
  position: absolute;
  inset: 0;
}
.mini-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 6px 0 rgba(27,27,58,.15));
}

/* ---- page-header (non-home pages) ---- */
.page-header { padding: 40px 0 20px; }
.page-header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.page-title { margin-top: 8px; }
.page-subtitle { color: var(--ink-soft); max-width: 520px; margin: 8px 0 0; }
.page-mascot { flex: 0 0 auto; }
.back-home {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  transition: color .15s;
}
.back-home:hover { color: var(--ink); }

/* ---- click bounce util ---- */
.bouncy { transition: transform .18s ease, box-shadow .18s ease; }
.bouncy:active { transform: scale(.93); }

/* ---- tap feedback for touch devices ---- */
@media (hover: none) {
  .love:active { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--line); }
  .run-card-link:active { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--line); }
  .run-card-link:active .run-slip { background: var(--yellow); }
  .tcg-card:active { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--line); }
  .book-card:active { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--line); }
  .contact-icon:active { transform: translateY(-3px) scale(1.1); }
  .hero-tech-icon:active { transform: translate(-2px,-2px) rotate(-4deg); box-shadow: 5px 5px 0 var(--line); }
  .highlight-card:active { transform: translate(-3px,-3px) rotate(-1deg); }
  .btn:active { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--line); }
  .about-chip:active { transform: translateY(-2px) rotate(-1deg); background: var(--yellow); }
}

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    gap: 10px;
  }
  .hero-head { grid-column: 1; grid-row: 1; }
  .hero-grid > .character-stage { grid-column: 1; grid-row: 2; }
  .hero-body { grid-column: 1; grid-row: 3; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-tech { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .character-stage { max-width: 260px; margin: 0 auto; }
  .nav { top: 0; padding: 0; }
  .nav-inner {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 0;
    border-left: 0; border-right: 0; border-top: 0;
    padding: 10px 16px;
  }
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 2px solid rgba(27,27,58,.1);
    margin-top: 8px;
  }
  .nav-links-open { display: flex; }
  .nav-links a {
    text-align: center;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
  }
  .loves-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
  .contact-card { padding: 36px 22px; }
  .page-header-grid { flex-direction: column; align-items: flex-start; }
  .page-mascot { display: none; }
  .tcg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .loves-grid { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; }
  .contact-row .btn { text-align: center; justify-content: center; }

  /* About personal card */
  .about-personal { padding: 22px 18px; }
  .about-personal-grid { gap: 18px; }
  .about-personal-body { font-size: 15px; }

  /* Contact */
  .contact-card { padding: 32px 18px; }
  .contact-card p { font-size: 15px; }

  /* TCG */
  .tcg-grid { grid-template-columns: 1fr; }
  .tcg-card { padding: 16px 18px; }

  /* Hero tech icons */
  .hero-tech {
    display: flex; flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
  }
  .hero-tech-icon { width: 36px; height: 36px; padding: 6px; box-shadow: 2px 2px 0 var(--line); }
  .hero-tech-learning { margin-bottom: 0; }

  /* Character bubble */
  .character-bubble { font-size: 14px; padding: 10px 14px; }
}
