/* Preserve the original navy / cream identity and let the character carry the playfulness. */
html { color-scheme: light; scroll-padding-top: 0; }
body { font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(46, 53, 96, .12); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; }
main:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
section[id] { scroll-margin-top: 100px; }
.skip-link { position: fixed; z-index: 1100; left: 20px; top: 12px; padding: 10px 18px; border-radius: 10px; background: var(--navy); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.scroll-progress span { width: 100%; transform: scaleX(0); transform-origin: left; transition: none; background: linear-gradient(90deg, var(--coral), var(--yellow), var(--navy)); }
.site-nav { gap: 24px; }
.hero { min-height: min(780px, calc(100svh - 72px)); padding: 44px 0 72px; overflow: clip; }
.hero-stage { min-height: 540px; }
.hero-stage::after, .hero-character, .pixel-star { animation: none; }
.hero-support { max-width: 490px; }
.hero-orbit { opacity: .5; }
.halo { opacity: .45; }
.star-one { left: 9%; top: 37%; }
.star-two { right: 12%; top: 31%; }
.star-three { left: 19%; bottom: 15%; }

/* One transparent sheet, six fixed square cells. */
.character-sprite { --pose-column: 0; --pose-row: 0; position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; isolation: isolate; }
.character-sprite > img { position: absolute; left: calc(var(--pose-column) * -100%); top: calc(var(--pose-row) * -97%); width: 300%; height: 200%; max-width: none; border-radius: 0; object-fit: fill; mix-blend-mode: normal; filter: none; }
/* The lower row begins slightly above the grid midpoint; keep every hair tip visible. */
.character-sprite:is([data-character-pose="wave"], [data-character-pose="peace"], [data-character-pose="jump"]) { clip-path: inset(0 0 3% 0); }
[data-character-pose="peace"] { --pose-column: 1; }
[data-character-pose="jump"] { --pose-column: 2; }
[data-character-pose="tongue"] { --pose-row: 1; }
[data-character-pose="curious"] { --pose-column: 1; --pose-row: 1; }
[data-character-pose="proud"] { --pose-column: 2; --pose-row: 1; }
.hero .hero-character { z-index: 2; width: min(100%, 510px); mix-blend-mode: normal; filter: none; }
.character-greeting { position: absolute; z-index: 3; top: -22px; right: 2%; padding: 10px 16px; border: 1px solid var(--line); border-radius: 16px 16px 16px 3px; background: var(--paper); color: var(--navy); font-size: .88rem; font-weight: 700; box-shadow: 0 8px 20px rgba(46, 53, 96, .06); }
.hero-pose-control { position: absolute; bottom: -3%; z-index: 4; display: flex; align-items: center; gap: 14px; }
.hero-pose-name { color: var(--muted); font-size: .8rem; }
.pose-cycle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid rgba(46, 53, 96, .18); border-radius: 999px; color: var(--navy); background: var(--paper); cursor: pointer; font-size: .83rem; font-weight: 700; transition: background .2s, border-color .2s, transform .2s; }
.pose-cycle span { font-size: 1.15rem; }
.pose-cycle:hover { background: #ebeefb; border-color: var(--navy); transform: translateY(-2px); }
.pose-cycle[hidden], .pose-options[hidden] { display: none; }
.about-photo-frame { display: grid; justify-items: center; padding: 16px 18px 20px; background: #e9edf3; box-shadow: none; }
.about-photo-frame .character-sprite { width: min(100%, 350px); }
.about-photo-frame::before { pointer-events: none; }
.portrait-note { position: relative; margin: 2px 0 0; text-align: center; color: var(--navy); font-size: .82rem; }
.section { padding-top: 88px; padding-bottom: 88px; }
.intro-strip { padding-top: 20px; padding-bottom: 20px; }
.character-section { padding-top: 36px; }
.character-head { align-items: center; }
.character-playground { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; padding: 26px 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.pose-stage { min-width: 0; position: relative; }
.pose-stage::before { content: ""; position: absolute; inset: 12% 6%; border-radius: 50%; background: #edf0f7; }
.pose-picker { min-width: 0; }
.pose-picker .section-kicker { margin-bottom: 8px; color: var(--muted); font-size: .68rem; }
.pose-picker h3 { margin: 0; font-size: 1.7rem; color: var(--deep); }
.pose-description { margin: 10px 0 24px; color: var(--muted); font-size: .91rem; }
.pose-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pose-option { min-width: 0; min-height: 70px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: transparent; text-align: left; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.pose-option strong, .pose-option small { display: block; }
.pose-option strong { color: var(--navy); font-size: .91rem; }
.pose-option small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.pose-option:hover { background: #f0f2fa; border-color: #a1a7c5; transform: translateY(-2px); }
.pose-option[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }
.pose-option[aria-pressed="true"] strong { color: var(--white); }
.pose-option[aria-pressed="true"] small { color: #e0e3f1; }
.pose-status { min-height: 1.75em; margin: 18px 0 0; color: var(--navy); font-size: .8rem; }
.turnaround-details { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .5); }
.turnaround-details summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 16px 22px; color: var(--navy); font-size: .88rem; font-weight: 700; cursor: pointer; list-style: none; border-radius: 18px; }
.turnaround-details summary::-webkit-details-marker { display: none; }
.turnaround-details summary:hover { background: rgba(46, 53, 96, .05); }
.turnaround-details summary span { display: inline-block; font-size: 1.2rem; }
.turnaround-details[open] summary span { transform: rotate(45deg); }
.turnaround-frame { border: 0; background: transparent; box-shadow: none; }
.turnaround-frame img { height: auto; }
.project-grid { align-items: start; }
.project-summary { min-width: 0; }
.project-more.project-toggle { display: inline-flex; width: auto; min-height: 44px; padding: 4px 0; border: 0; border-radius: 5px; background: transparent; font-size: .86rem; }
.project-more:hover { color: var(--blue); }
.project-more:hover i { background: var(--blue); }
.project-detail { scroll-margin-top: 100px; }
.contact-character .character-sprite { z-index: 2; width: 100%; max-width: 360px; }
.contact-character .character-sprite > img { width: 300%; max-width: none; filter: none; }
.contact-bubble { top: 0; right: -6%; }
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(20px); }
.reveal.visible { opacity: 1; transform: none; }
.timeline-date { font-variant-numeric: tabular-nums; }

@media (max-width: 1020px) {
  .hero { gap: 18px; }
  .hero-stage { min-height: 450px; }
  .character-playground { gap: 20px; padding: 24px; }
  .character-head { grid-template-columns: 1fr; gap: 22px; }
  .character-badges { justify-content: flex-start; max-width: none; }
}
@media (max-width: 820px) {
  .site-nav { position: absolute; inset: calc(100% + 10px) 0 auto; max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; gap: 2px; }
  .hero { min-height: auto; padding: 32px 0 48px; gap: 16px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 3.4rem; margin-bottom: 16px; }
  .hero .eyebrow { margin-bottom: 18px; font-size: .65rem; letter-spacing: .09em; }
  .hero-lead { max-width: 550px; font-size: 1.12rem; }
  .hero-support { max-width: 490px; font-size: .9rem; line-height: 1.75; }
  .hero-actions { margin: 24px 0 16px; gap: 10px; }
  .hero-stage { width: min(100%, 430px); min-height: 390px; margin: 0 auto; padding: 30px 0 24px; }
  .hero .hero-character { width: min(100%, 350px); }
  .hero-stage::before { width: 85%; }
  .hero-stage::after { width: 75%; }
  .hero-pose-control { bottom: -6px; }
  .character-greeting { right: 0; top: 0; font-size: .78rem; padding: 8px 12px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .intro-strip { padding-top: 16px; padding-bottom: 16px; }
  .character-playground { grid-template-columns: 1fr; gap: 8px; padding: 20px 24px 28px; }
  .pose-stage { width: min(100%, 340px); margin: auto; }
  .pose-picker h3 { font-size: 1.5rem; }
  .pose-description { margin-bottom: 18px; }
  .contact-character { height: auto; min-height: 260px; }
  .contact-character .character-sprite { width: 280px; max-width: 100%; }
  .contact-bubble { right: 6%; }
}
@media (max-width: 560px) {
  .hero { width: calc(100% - 32px); padding-top: 26px; }
  .hero h1 { font-size: 2.9rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 10px; }
  .hero-support { font-size: .82rem; }
  .hero-actions { margin: 19px 0 13px; }
  .hero-actions .button { min-height: 46px; padding: 10px 17px; font-size: .85rem; }
  .status-row { font-size: .72rem; gap: 7px; }
  .hero-stage { min-height: 344px; padding: 30px 0 20px; }
  .hero .hero-character { width: 290px; }
  .hero-pose-control { bottom: -8px; }
  .hero-stage::before { width: 260px; }
  .hero-stage::after { width: 230px; }
  .character-greeting { right: 1%; top: 0; font-size: .72rem; }
  .halo-yellow { width: 70px; height: 70px; }
  .pose-cycle { padding: 7px 13px; }
  .character-playground { padding: 12px 18px 24px; }
  .pose-stage { width: min(100%, 290px); }
  .pose-options { gap: 8px; }
  .pose-option { padding: 10px; min-height: 68px; }
  .pose-option strong { font-size: .85rem; }
  .pose-option small { font-size: .7rem; }
  .section-heading h2, .contact-card h2, .character-head h2 { font-size: 2rem; }
  .character-head { margin-bottom: 26px; }
  .strip-inner { letter-spacing: 0; padding: 16px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-pending { opacity: 1; transform: none; }
  .pose-cycle:hover, .pose-option:hover { transform: none; }
}
