:root {
  --bg: #f5efe1;
  --ink: #14110b;
  --paper: #fffdf6;
  --red: #ff5a3c;
  --blue: #2f6bff;
  --lime: #b8f02d;
  --yellow: #ffcf33;
  --line: #14110b;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --sans: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --display: "Archivo Black", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
.hide { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 9999; }

/* background grid + deco */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(20,17,11,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,17,11,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.deco { position: fixed; z-index: 1; pointer-events: none; opacity: .5; }
.deco--star { top: 22%; left: 6%; font-size: 32px; animation: spin 14s linear infinite; }
.deco--potato { bottom: 12%; right: 7%; font-size: 40px; animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-16px) rotate(8deg); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 5px; width: 0;
  background: var(--red); z-index: 999; border-right: 2px solid var(--ink);
}

/* ===== intro splash ===== */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .5s, visibility .5s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro__stage { text-align: center; }
.intro__mark { display: flex; align-items: center; justify-content: center; gap: 12px; }
.intro__name { font-family: var(--display); font-size: clamp(40px, 12vw, 110px); letter-spacing: -2px; }
.intro__emoji { font-size: clamp(36px, 10vw, 90px); animation: float 2.6s ease-in-out infinite; }
.intro__tag { font-family: var(--mono); letter-spacing: 3px; margin: 6px 0 22px; color: #6b6350; }
.intro__track { width: min(320px, 74vw); height: 16px; border: 3px solid var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.intro__fill { display: block; height: 100%; width: 0; background: var(--red); }
.intro__meta { display: flex; justify-content: space-between; width: min(320px, 74vw); font-family: var(--mono); font-size: 12px; margin-top: 8px; }
.intro__skip { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; color: #8a8064; }

/* ===== ticker ===== */
.ticker { overflow: hidden; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--yellow); position: relative; z-index: 2; }
.ticker--top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--bg); border-top: 0; }
.ticker--band { background: var(--lime); margin: 0; }
.ticker__track { display: inline-flex; white-space: nowrap; gap: 26px; padding: 9px 0; font-family: var(--display); font-size: 15px; letter-spacing: .5px; animation: marquee 24s linear infinite; }
.ticker--reverse .ticker__track { animation-direction: reverse; }
.ticker__track b { opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== nav ===== */
.nav {
  position: sticky; top: 39px; z-index: 39;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px clamp(14px, 4vw, 40px);
  background: var(--paper); border-bottom: 3px solid var(--ink);
}
.nav__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 20px; }
.nav__logo { font-size: 24px; }
.nav__name em { font-style: normal; font-family: var(--sans); font-weight: 700; font-size: 13px; color: #7a7058; margin-left: 4px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { text-decoration: none; font-weight: 600; padding: 6px 12px; border: 2px solid transparent; border-radius: 8px; }
.nav__links a:hover { border-color: var(--ink); background: var(--yellow); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__share {
  border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); color: var(--ink);
  box-shadow: var(--shadow-sm); padding: 8px 14px; font: 700 14px var(--sans); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.nav__share span { display: inline-block; transition: transform .15s; }
.nav__share:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.nav__share:hover span { transform: translate(2px,-2px); }
.nav__cta { text-decoration: none; font-weight: 700; padding: 8px 16px; background: var(--red); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); border-radius: 10px; }
.nav__cta:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.nav__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 2px solid var(--ink); border-radius: 8px; padding: 8px; cursor: pointer; }
.nav__burger span { width: 20px; height: 2px; background: var(--ink); }

/* ===== hero ===== */
.hero {
  position: relative; z-index: 2; max-width: 1120px; margin: 28px auto 34px;
  padding: clamp(36px,7vw,72px) clamp(22px,5vw,58px) 48px;
  background: rgba(255,253,246,.86); border: 3px solid var(--ink); border-radius: 30px;
  box-shadow: 11px 11px 0 var(--ink); overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  right: -120px; top: -120px; background: rgba(255,207,51,.2); z-index: -1;
}
.hero::after {
  content: "SHIP IT · MAKE IT REAL ·"; position: absolute; right: -58px; bottom: 78px;
  padding: 6px 70px; border-block: 2px solid var(--ink); background: var(--blue); color: #fff;
  font: 700 11px var(--mono); letter-spacing: 1.5px; transform: rotate(-8deg); z-index: -1;
}
.hero__bigemoji { position: absolute; top: -10px; right: 4%; font-size: clamp(80px, 18vw, 200px); opacity: .12; transform: rotate(-12deg); }
.badge { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; background: var(--lime); border: 2px solid var(--ink); padding: 5px 12px; box-shadow: var(--shadow-sm); }
.hero__title { margin: 20px 0 8px; line-height: .95; }
.hero__hi { display: block; font-family: var(--mono); font-size: clamp(13px,2.4vw,17px); letter-spacing: 2px; color: #7a7058; }
.hero__giant { display: block; font-family: var(--display); font-size: clamp(64px, 17vw, 190px); letter-spacing: -3px; margin: 4px 0; }
.hero__cn { display: block; font-family: var(--display); font-size: clamp(30px, 7vw, 68px); }
.hero__cn mark {
  display: inline-block;
  background: var(--yellow);
  padding: 0 10px;
  box-decoration-break: clone;
}
.hero__cn-text {
  display: inline-block;
  transform-origin: 50% 50%;
  animation: potato-word-spin .3s linear infinite;
  will-change: transform;
}
/* 360° / 0.3s = 1200°/s，顺时针原地旋转 */
@keyframes potato-word-spin { to { transform: rotate(360deg); } }
.hero__role { font-size: clamp(18px, 3vw, 26px); font-weight: 600; margin: 18px 0 6px; }
.hero__role-hl { border-bottom: 4px solid var(--red); }
#roleRotate::after { content: "▍"; color: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__tagline { max-width: 640px; font-size: 17px; color: #43402f; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0; font-family: var(--mono); font-size: 13px; }
.hero__facts li { border: 2px solid var(--ink); background: var(--paper); padding: 5px 10px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 30px; }
.btn { text-decoration: none; font-weight: 700; padding: 12px 22px; border: 3px solid var(--ink); box-shadow: var(--shadow); border-radius: 12px; font-size: 16px; transition: transform .12s, box-shadow .12s; display: inline-block; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--share { background: var(--paper); color: var(--ink); cursor: pointer; font-family: inherit; }
.btn--share:hover { background: var(--yellow); }
.btn--plain { background: var(--paper); color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--compact { padding: 9px 14px; border-width: 2px; border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 14px; cursor: pointer; font-family: inherit; }
.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding: 0; margin: 8px 0 0; max-width: 620px; }
.stat { border: 3px solid var(--ink); background: var(--paper); padding: 14px; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--display); font-size: 32px; line-height: 1; }
.stat span { font-size: 13px; color: #6b6350; font-weight: 600; }
.stat--red { background: #ffe6e0; } .stat--blue { background: #e2ebff; } .stat--lime { background: #eef9cf; }

.hero__seal { position: absolute; top: 90px; right: 5%; width: 150px; height: 150px; display: grid; place-items: center; }
.hero__seal .seal__svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.seal__ring { fill: none; stroke: var(--ink); stroke-width: 2; }
.seal__text { font-family: var(--mono); font-size: 11px; font-weight: 700; fill: var(--ink); letter-spacing: 1px; }
.seal__center { position: absolute; font-size: 40px; }
@media (max-width: 900px) { .hero__seal { display: none; } }

/* ===== sections ===== */
.section { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: clamp(46px,8vw,84px) clamp(16px,4vw,40px); }
.section__head { margin-bottom: 30px; }
.section__num { font-family: var(--mono); font-weight: 700; font-size: 14px; background: var(--ink); color: var(--bg); padding: 3px 10px; }
.section__title { font-family: var(--display); font-size: clamp(30px,6vw,56px); letter-spacing: -1px; margin: 10px 0 0; }
.section__title span { font-family: var(--mono); font-size: .4em; color: #8a8064; letter-spacing: 1px; }
.section__sub { max-width: 620px; color: #43402f; font-size: 16px; }

.panel { background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow); border-radius: 16px; padding: 20px; transition: transform .16s, box-shadow .16s, background-color .16s; }
.card--lime { background: #eef9cf; } .card--blue { background: #e2ebff; } .card--red { background: #ffe6e0; }
.card__emoji { font-size: 34px; display: block; }
.panel h3 { font-family: var(--display); font-size: 20px; margin: 8px 0 8px; }
.panel p { margin: 4px 0; font-size: 15px; color: #43402f; }
mark { background: var(--yellow); }

.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.about__intro p { font-size: 16px; }
.about__intro b { }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { font-family: var(--mono); font-size: 12px; border: 2px solid var(--ink); padding: 4px 9px; background: #fff; }
.about__cards { display: grid; gap: 14px; }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

/* projects */
.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; overflow: hidden; }
.pcard::before { content: ""; height: 8px; margin: -20px -20px 10px; background: var(--red); border-bottom: 3px solid var(--ink); }
.pcard:nth-child(4n+2)::before { background: var(--blue); }
.pcard:nth-child(4n+3)::before { background: var(--lime); }
.pcard:nth-child(4n)::before { background: var(--yellow); }
.pcard:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; }
.pcard__emoji { font-size: 34px; }
.pcard__no { font-family: var(--mono); font-size: 12px; background: var(--ink); color: var(--bg); padding: 2px 8px; }
.pcard h3 { font-family: var(--display); font-size: 21px; margin: 4px 0; }
.pcard p { font-size: 14px; color: #43402f; margin: 0 0 6px; flex: 1; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__tags span { font-family: var(--mono); font-size: 11px; border: 2px solid var(--ink); padding: 2px 7px; }
.pcard__go { font-weight: 700; color: var(--blue); font-size: 14px; }

/* timeline */
.timeline { position: relative; margin-left: 8px; padding-left: 28px; border-left: 4px solid var(--ink); display: grid; gap: 18px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 16px; height: 16px; background: var(--red); border: 3px solid var(--ink); border-radius: 50%; }
.tl-item .panel { padding: 16px 18px; }
.tl-when { font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--yellow); border: 2px solid var(--ink); padding: 2px 8px; display: inline-block; }
.tl-item h3 { font-family: var(--display); font-size: 18px; margin: 8px 0 4px; }

/* skills */
.skills__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.skillcard h3 { font-family: var(--display); font-size: 18px; margin: 6px 0 10px; }
.skillcard .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skillcard .tags span { font-family: var(--mono); font-size: 12px; border: 2px solid var(--ink); padding: 3px 9px; background: #fff; }

/* contact */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.ccard { text-align: left; }
.ccard__val { font-family: var(--mono); font-weight: 700; font-size: 16px; margin: 6px 0 12px; word-break: break-all; }
.ccard__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ccard__btn { font-weight: 700; text-decoration: none; padding: 8px 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 9px; cursor: pointer; font-size: 14px; }
.ccard__btn--ghost { background: transparent; color: var(--ink); }
.ccard__btn:hover { background: var(--red); color: #fff; }

/* footer */
.footer { position: relative; z-index: 2; background: var(--ink); color: var(--bg); border-top: 3px solid var(--ink); padding: 60px clamp(16px,4vw,40px) 26px; text-align: center; overflow: hidden; }
.footer__emoji { font-size: 70px; display: block; animation: float 5s ease-in-out infinite; }
.footer__kicker { font-family: var(--mono); color: #b9b19a; margin: 14px 0 6px; }
.footer__big { font-family: var(--display); font-size: clamp(26px,6vw,54px); text-decoration: none; color: var(--bg); border-bottom: 5px solid var(--red); }
.footer__big span { color: var(--red); }
.footer__big:hover { color: var(--lime); }
.footer__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 44px; padding-top: 18px; border-top: 1px solid #3a3527; font-size: 13px; color: #b9b19a; }
.footer__brand { font-weight: 700; color: var(--bg); }
.egg { background: none; border: 0; font-size: 18px; cursor: pointer; opacity: .5; }
.egg:hover { opacity: 1; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* falling potatoes easter egg */
.potato-fall { position: fixed; top: -40px; z-index: 998; font-size: 28px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

.nav__mobile-blog { display: none; }
@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 3px solid var(--ink); padding: 10px; }
  .nav.open .nav__links a { border: 2px solid var(--ink); margin: 3px 0; }
  .nav.open .nav__mobile-blog { display: block; background: var(--red); color: #fff; text-align: center; font-weight: 700; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero { margin: 14px 12px 26px; border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); }
  .hero::after { display: none; }
}
@media (max-width: 380px) {
  .nav { gap: 8px; padding-inline: 10px; }
  .nav__name em { display: none; }
  .nav__share { padding: 7px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .deco, .footer__emoji, .intro__emoji, .hero__seal .seal__svg { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* story */
.story { position: relative; max-width: 820px; font-size: 17px; }
.story p { margin: 0 0 14px; color: #2e2b20; }
.story__quote { position: absolute; top: -18px; left: 10px; font-family: var(--display); font-size: 90px; color: var(--red); opacity: .25; line-height: 1; }
.story__more { font-family: var(--mono); font-size: 14px; color: #8a8064 !important; }

/* domains */
.domains__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 14px; }
.dcard { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dcard:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); background: var(--yellow); }
.dcard__ico { font-size: 24px; }
.dcard__name { font-family: var(--mono); font-weight: 700; font-size: 15px; flex: 1; word-break: break-all; }
.dcard__go { font-weight: 700; font-size: 13px; color: var(--blue); }
.dcard__go--soon { color: #8a8064; }

/* donate button + modal (portfolio) */
.btn--feed { background: var(--yellow); color: var(--ink); }
.nb-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; }
.nb-modal.hide { display: none; }
.nb-modal__mask { position: absolute; inset: 0; background: rgba(20,17,11,.5); }
.nb-modal__panel {
  position: relative; width: 90%; max-width: 460px;
  background: var(--paper); border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink); border-radius: 18px; padding: 22px;
}
.nb-modal__title { font-family: var(--display); font-size: 24px; margin-bottom: 10px; }
.nb-modal__actions { margin-top: 16px; text-align: right; }
.donate-note { font-size: 15px; color: #43402f; margin: 0 0 16px; }
.donate-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.donate-code { border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; text-align: center; background: #fff; box-shadow: var(--shadow-sm); }
.donate-code.hide { display: none; }
.donate-code__label { font-weight: 700; color: #fff; padding: 7px; }
.donate-code__label--wx { background: #09bb07; }
.donate-code__label--ali { background: #1677ff; }
.donate-code img { display: block; width: 100%; height: auto; }
.donate-codes:has(.donate-code.hide) { grid-template-columns: 1fr; }
@media (max-width: 480px){ .donate-codes { grid-template-columns: 1fr; } }

/* ===== homepage share card ===== */
body.modal-open { overflow: hidden; }
.share-home-modal__panel { width: min(94%, 620px); max-width: 620px; max-height: 92vh; overflow: auto; }
.share-home-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 3px dashed var(--ink); margin-bottom: 16px; padding-bottom: 12px; }
.share-home-modal__eyebrow { display: block; color: #756d59; font: 700 11px var(--mono); letter-spacing: 1.5px; margin-bottom: 3px; }
.share-home-modal__head .nb-modal__title { margin: 0; }
.share-home-modal__close { flex: 0 0 auto; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 25px; line-height: 30px; cursor: pointer; }
.share-home-status { text-align: center; color: #6b6350; padding: 30px 0; font-family: var(--mono); font-size: 13px; }
.share-home-result { display: grid; place-items: center; max-height: 58vh; overflow: auto; border-radius: 12px; }
.share-home-result img { display: block; width: min(100%, 430px); height: auto; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); }
.share-home-tip { margin: 10px 0 0; color: #756d59; text-align: center; font-size: 12px; }
.share-home-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* The share card is rendered offscreen at 540 × 720 and exported at 2×. */
.home-poster {
  position: relative; width: 540px; height: 720px; overflow: hidden; display: flex; flex-direction: column;
  background: #fffdf6; color: #14110b; border: 2px solid #14110b; border-radius: 28px;
  font-family: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
}
.hp-main { position: relative; flex: 1; padding: 34px 38px 22px; }
.hp-potato { position: absolute; font-size: 35px; transform: rotate(-18deg); }
.hp-potato--one { top: 18px; left: 23px; }
.hp-potato--two { right: 28px; bottom: 23px; transform: rotate(22deg); }
.hp-star { position: absolute; right: 30px; top: 23px; color: #8a8064; font-size: 30px; }
.hp-brand { display: flex; align-items: center; gap: 17px; margin-top: 32px; }
.hp-brand__en { font-family: var(--display); font-size: 66px; line-height: .9; letter-spacing: -3px; }
.hp-brand__cn { background: #ffcf33; border: 2px solid #14110b; padding: 4px 12px 7px; box-shadow: 4px 4px 0 #14110b; font-weight: 900; font-size: 35px; line-height: 1; }
.hp-kicker { margin-top: 14px; font: 700 13px var(--mono); padding-bottom: 8px; border-bottom: 4px solid #ff5a3c; width: max-content; max-width: 100%; }
.hp-intro { margin-top: 22px; }
.hp-intro__hello { color: #7b735f; font: 700 14px var(--mono); letter-spacing: 1px; }
.hp-intro__name { font-family: var(--display); font-size: 29px; line-height: 1.1; margin-top: 5px; }
.hp-intro__name span { color: #817965; font: 700 15px var(--mono); letter-spacing: 2px; margin-left: 8px; }
.hp-strap { display: inline-block; margin-top: 12px; padding: 6px 10px; background: #b8f02d; border: 2px solid #14110b; box-shadow: 4px 4px 0 #14110b; font: 700 11px var(--mono); }
.hp-look { position: absolute; right: 29px; top: 184px; font-family: var(--display); font-size: 25px; line-height: .88; transform: rotate(-10deg); }
.hp-qr-wrap { display: flex; align-items: center; gap: 22px; margin: 27px auto 20px; width: max-content; max-width: 100%; }
.hp-qr { width: 194px; height: 194px; padding: 10px; background: #fff; border: 2px dashed #14110b; border-radius: 19px; }
.hp-qr img, .hp-qr canvas { display: block; width: 170px !important; height: 170px !important; }
.hp-scan { width: 105px; }
.hp-scan strong { display: block; font-family: var(--display); font-size: 18px; line-height: 1.15; }
.hp-scan span { display: block; margin-top: 8px; color: #756d59; font: 700 10px var(--mono); word-break: break-word; }
.hp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hp-card { min-height: 67px; padding: 9px 11px; border: 2px solid #14110b; border-radius: 11px; background: #fff; }
.hp-card:nth-child(2) { background: #eef9cf; }
.hp-card:nth-child(3) { background: #e2ebff; }
.hp-card:nth-child(4) { background: #ffe6e0; }
.hp-card b { display: block; font-size: 12px; margin-bottom: 2px; }
.hp-card span { display: block; font-size: 10px; line-height: 1.4; }
.hp-foot { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; background: #14110b; color: #fffdf6; font: 700 11px var(--mono); }
.hp-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-foot span:last-child { text-align: right; }

@media (max-width: 520px) {
  .share-home-modal__panel { padding: 16px; box-shadow: 6px 6px 0 var(--ink); }
  .share-home-actions { justify-content: stretch; }
  .share-home-actions .btn { flex: 1 1 42%; text-align: center; }
}

@media (hover: hover) {
  .about__cards .panel:hover, .skillcard:hover, .ccard:hover, .stat:hover { transform: translate(-3px,-3px) rotate(-.25deg); box-shadow: 9px 9px 0 var(--ink); }
  .about__cards .panel:nth-child(even):hover, .ccard:nth-child(even):hover { transform: translate(-3px,-3px) rotate(.25deg); }
}

:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

/* ===== scroll effects (AdventureX-style) ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.16,.84,.3,1), transform .8s cubic-bezier(.16,.84,.3,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
/* parallax: keep each element's own base transform, add translateY(--py) */
.hero__bigemoji { transform: translateY(var(--py,0)) rotate(-12deg); }
.hero__seal { transform: translateY(var(--py,0)); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__bigemoji { transform: rotate(-12deg); }
  .hero__seal { transform: none; }
}

/* GIF button */
#gifBtn.btn--blue { background: #6c3cf0; }
#gifBtn:disabled { opacity: .6; cursor: wait; }
