/* ============================================================
   style.css — 廖明軒 · Ming-Hsuan Liao Personal Site
   Theme: Yukiguni · 和紙 × 深夜雪景 × Pixel Art
   ============================================================ */

/* ─── Variables ─── */
:root {
  /* ── Light sections (About / Work / Education / Skills) ── */
  --paper:       #f5f0e8;      /* 和紙底色 */
  --paper-alt:   #ede8df;      /* 淺一階 */
  --paper-deep:  #e5ddd0;      /* 深一階 */
  --surface:     #ddd5c4;      /* card 背景 */
  --card:        #d4c9b4;      /* 深 card */
  --card-hover:  #c8bba0;      /* hover */

  --ink:         #1a1410;      /* 主文字 (深墨) */
  --ink-dim:     #4a3d30;      /* 次文字 */

  --moss:        #4a7c6f;      /* 苔綠 — 主要 accent */
  --moss-dim:    rgba(74, 124, 111, 0.2);
  --moss-glow:   rgba(74, 124, 111, 0.08);

  --akache:      #c8603a;      /* 赤茶 — 次要 accent */
  --akache-dim:  rgba(200, 96, 58, 0.15);
  --akache-lt:   #d4815a;      /* 淺版 */

  --muted-border: rgba(26, 20, 16, 0.1);
  --muted-text:   #8a7560;

  /* ── Dark sections (Hero / Contact / Footer) ── */
  --void:    #080c12;
  --night-d: #0a1020;
  --deep-d:  #0e1830;

  --snow:    #dce8ff;
  --snow-dim:#8aa4cc;
  --steam:   #3dd6c8;
  --steam-dim: rgba(61, 214, 200, 0.28);
  --steam-glow: rgba(61, 214, 200, 0.1);
  --fire:    #f0904a;
  --ember:   #f5c460;
  --pixel:   #5b8ed6;
  --dark-muted: rgba(91, 142, 214, 0.18);
  --dark-muted-text: #5e7aaa;

  /* ── Shared ── */
  --font-pixel: 'Press Start 2P', monospace;
  --font-serif: 'Shippori Mincho B1', serif;
  --font-body:  'Noto Sans', system-ui, sans-serif;
  --pad-x: clamp(1.5rem, 5vw, 6rem);
  --pad-y: clamp(5rem, 10vw, 9rem);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* 超淡 scanline — 在淡色背景幾乎不可見，深色背景才明顯 */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.012) 3px, rgba(0,0,0,0.012) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ─── Custom Cursor (mix-blend-mode 自動反色) ─── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  /* pixel cross shape */
  clip-path: polygon(
    40% 0%, 60% 0%, 60% 40%,
    100% 40%, 100% 60%, 60% 60%,
    60% 100%, 40% 100%, 40% 60%,
    0% 60%, 0% 40%, 40% 40%
  );
}
.cursor.click { transform: translate(-50%, -50%) scale(0.6); }

/* ─── Navigation ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.25rem var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 200;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

/* Dark nav (over hero) — scrolled = light blur */
#nav.scrolled {
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--dark-muted);
}

/* Light nav (over content sections) */
#nav.on-light {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--muted-border);
}
#nav.on-light .nav-logo        { color: var(--ink); }
#nav.on-light .nav-logo span   { color: var(--moss); }
#nav.on-light .nav-links a     { color: var(--muted-text); }
#nav.on-light .nav-links a:hover,
#nav.on-light .nav-links a.active { color: var(--moss); }
#nav.on-light .nav-menu span   { background: var(--ink-dim); }

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 0.82rem; letter-spacing: 0.1em; line-height: 1.7;
  display: flex; flex-direction: column;
  color: var(--snow);
}
.nav-logo span { color: var(--steam); }

.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.nav-links a {
  font-family: var(--font-pixel); font-size: 0.88rem;
  color: var(--dark-muted-text); letter-spacing: 0.2em; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--steam); }

.nav-menu {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.nav-menu span { display: block; width: 22px; height: 2px; background: var(--snow-dim); transition: background 0.2s; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(20px);
  z-index: 150; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateY(-100%); transition: transform 0.4s ease;
}
.mobile-menu.open { transform: translateY(0); display: flex; }
.mm-link {
  font-family: var(--font-pixel); font-size: 1rem;
  color: var(--ink-dim); letter-spacing: 0.3em; transition: color 0.2s;
}
.mm-link:hover { color: var(--moss); }

/* ─── Hero (深色保留) ─── */
#hero {
  position: relative; height: 100svh; min-height: 680px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, #0d2045 0%, var(--void) 65%);
}
#snow { position: absolute; inset: 0; pointer-events: none; }
#mountains {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 52%; pointer-events: none;
}
.steam-group {
  position: absolute; bottom: 32%;
  left: clamp(2rem, 6vw, 7rem);
  pointer-events: none; width: 40px; height: 60px;
}
.steam-puff {
  position: absolute; background: var(--steam-dim); border-radius: 50%;
  animation: steam-rise 3.6s ease-in infinite;
}
.steam-puff:nth-child(1) { width:6px; height:6px; left:0;    animation-delay:0s;   }
.steam-puff:nth-child(2) { width:4px; height:4px; left:10px; animation-delay:0.7s; }
.steam-puff:nth-child(3) { width:8px; height:8px; left:20px; animation-delay:1.4s; }
.steam-puff:nth-child(4) { width:5px; height:5px; left:5px;  animation-delay:2.1s; }
.steam-puff:nth-child(5) { width:4px; height:4px; left:14px; animation-delay:2.8s; }
@keyframes steam-rise {
  0%   { opacity: 0.7; transform: translateY(0) scale(1); }
  100% { opacity: 0;   transform: translateY(-65px) scale(0.2); }
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center; padding: 0 var(--pad-x);
}
.hero-eyebrow {
  font-family: var(--font-pixel);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--steam); letter-spacing: 0.55em; margin-bottom: 2rem;
  opacity: 0; animation: slide-up 0.7s ease forwards 0.3s;
}
.hero-name {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 3.8vw, 2.9rem);
  color: var(--snow); line-height: 1.65; letter-spacing: 0.1em; margin-bottom: 0.75rem;
  opacity: 0; animation: slide-up 0.7s ease forwards 0.6s;
  text-shadow: 0 0 50px rgba(91,142,214,0.55), 0 0 110px rgba(91,142,214,0.2);
}
.hero-kanji {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.9rem);
  color: var(--snow-dim); font-weight: 400; letter-spacing: 0.5em; margin-bottom: 2rem;
  opacity: 0; animation: slide-up 0.7s ease forwards 0.9s;
}
.hero-typewriter {
  font-family: var(--font-pixel);
  font-size: clamp(0.75rem, 1.3vw, 0.98rem);
  color: var(--fire); letter-spacing: 0.2em; min-height: 1.5em; margin-bottom: 2.5rem;
  opacity: 0; animation: slide-up 0.7s ease forwards 1.2s;
}
.tw-cursor { animation: blink 0.75s step-end infinite; opacity: 0.8; }
@keyframes blink { 0%, 100% { opacity: 0.8; } 50% { opacity: 0; } }

.hero-tags {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: slide-up 0.7s ease forwards 1.5s;
}
.tag {
  font-family: var(--font-pixel); font-size: 0.75rem; letter-spacing: 0.2em;
  padding: 0.55rem 1rem;
  border: 1px solid var(--dark-muted); color: var(--dark-muted-text);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.tag:hover { border-color: var(--steam); color: var(--steam); box-shadow: 0 0 14px var(--steam-glow); }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: slide-up 0.7s ease forwards 2.2s;
}
.scroll-cue span {
  font-family: var(--font-pixel); font-size: 0.75rem;
  color: var(--dark-muted-text); letter-spacing: 0.35em;
}
.scroll-chevron {
  width: 10px; height: 10px;
  border-right: 2px solid var(--dark-muted-text);
  border-bottom: 2px solid var(--dark-muted-text);
  transform: rotate(45deg);
  animation: chevron-bob 1.8s ease-in-out infinite;
}
@keyframes chevron-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%       { transform: rotate(45deg) translate(2px, 2px); }
}

/* ─── Shared Section Utilities ─── */
section { padding: var(--pad-y) var(--pad-x); }

.label {
  display: block;
  font-family: var(--font-pixel); font-size: 0.88rem;
  color: var(--moss); letter-spacing: 0.35em; margin-bottom: 1.5rem;
}
.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 4rem; color: var(--ink);
}
.section-h2 small {
  display: block; font-family: var(--font-pixel); font-size: 0.88rem;
  color: var(--akache); letter-spacing: 0.3em; margin-top: 0.9rem; font-weight: 400;
}
.section-inner { max-width: 860px; margin: 0 auto; }
.body-text { font-size: 1rem; color: var(--muted-text); line-height: 1.85; margin-bottom: 1.2rem; }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── About (淺色) — 和紙點陣底紋・雪国 ─── */
#about {
  background: var(--paper);
  border-bottom: 1px solid var(--muted-border);
  background-image:
    radial-gradient(circle, rgba(74,124,111,0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 7vw, 7rem);
  max-width: 1300px; margin: 0 auto; align-items: start;
}
#about h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 2rem; color: var(--ink);
}
#about h2 em { font-style: italic; color: var(--moss); }

blockquote {
  border-left: 3px solid var(--akache);
  padding: 1rem 1.5rem; margin-bottom: 2rem;
  background: rgba(200, 96, 58, 0.04);
}
blockquote p {
  font-family: var(--font-serif); font-size: 1.05rem;
  font-style: italic; color: var(--ink-dim); line-height: 1.65; margin-bottom: 0.6rem;
}
blockquote cite {
  font-family: var(--font-pixel); font-size: 0.75rem;
  color: var(--akache); letter-spacing: 0.2em; font-style: normal;
}

.lang-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.lang-pill {
  font-family: var(--font-pixel); font-size: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: var(--paper-alt); border: 1px solid var(--muted-border); color: var(--ink-dim);
  letter-spacing: 0.15em; transition: border-color 0.2s, color 0.2s;
}
.lang-pill:hover { border-color: var(--moss); color: var(--moss); }

.about-right { display: flex; flex-direction: column; gap: 0.9rem; }
.stat-card {
  background: var(--paper-alt); border: 1px solid var(--muted-border);
  padding: 1.4rem 1.75rem; display: flex; flex-direction: column; gap: 0.35rem;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--moss); transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s;
}
.stat-card:hover { background: var(--paper-deep); border-color: var(--moss); transform: translateX(5px); }
.stat-card:hover::before { transform: scaleY(1); }
.stat-label {
  font-family: var(--font-pixel); font-size: 0.75rem;
  color: var(--moss); letter-spacing: 0.25em;
}
.stat-value { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.stat-sub { font-size: 0.85rem; color: var(--muted-text); }

/* ─── Work / Timeline (淺色 + 火感裝飾) ─── */
#work {
  background: var(--paper-alt);
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(200, 96, 58, 0.15);
}
#work::before {
  content: '';  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 92% 60%, rgba(200, 96, 58, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 35% at 5% 80%, rgba(200, 96, 58, 0.04) 0%, transparent 55%);
  pointer-events: none;
}
#work .section-h2 small { color: var(--akache); }

.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0.45rem; top: 0.4rem; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--akache), var(--akache-lt) 60%, transparent);
}
.tl-item { position: relative; padding-bottom: 3.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2.05rem; top: 0.35rem; width: 10px; height: 10px;
  background: var(--akache);
  box-shadow: 0 0 0 3px var(--paper-alt), 0 0 10px rgba(200, 96, 58, 0.4);
  animation: ember-pulse 2.8s ease-in-out infinite;
}
@keyframes ember-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--paper-alt), 0 0 8px rgba(200,96,58,0.4); }
  50%       { box-shadow: 0 0 0 3px var(--paper-alt), 0 0 22px rgba(240,144,74,0.85), 0 0 36px rgba(200,96,58,0.25); }
}
.tl-date {
  font-family: var(--font-pixel); font-size: 0.82rem;
  color: var(--akache); letter-spacing: 0.2em; margin-bottom: 0.6rem;
}
.tl-title {
  font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.3rem;
}
.tl-company {
  font-family: var(--font-pixel); font-size: 0.82rem;
  color: var(--akache-lt); letter-spacing: 0.2em; margin-bottom: 0.8rem;
}
.tl-desc { font-size: 0.95rem; color: var(--muted-text); line-height: 1.78; max-width: 560px; }

/* ─── Education (淺色) — 滑雪斜坡紋 ─── */
#education {
  background: var(--paper);
  border-bottom: 1px solid var(--muted-border);
  position: relative; overflow: hidden;
}
#education::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    -50deg,
    transparent, transparent 72px,
    rgba(74, 124, 111, 0.04) 72px, rgba(74, 124, 111, 0.04) 73px
  );
}
#education > .label { max-width: 1200px; margin-left: auto; margin-right: auto; }
.edu-heading {
  max-width: 1200px; margin-left: auto; margin-right: auto;
  margin-bottom: 3rem; text-align: center;
}
.edu-heading small { color: var(--moss); }

.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; max-width: 1200px; margin: 0 auto;
}
.edu-card {
  background: var(--paper-alt); border: 1px solid var(--muted-border);
  padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.4rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.edu-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--moss), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.edu-card:hover {
  border-color: var(--moss); background: var(--paper-deep);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(26, 20, 16, 0.1), 0 0 20px var(--moss-glow);
}
.edu-card:hover::after { transform: scaleX(1); }
.edu-badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-pixel); font-size: 0.75rem;
  color: var(--moss); background: var(--moss-dim); padding: 0.3rem 0.6rem;
  letter-spacing: 0.15em; margin-bottom: 0.4rem;
}
.edu-year { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--muted-text); letter-spacing: 0.2em; }
.edu-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 0.2rem; }
.edu-card p  { font-size: 0.9rem; color: var(--muted-text); }
.edu-loc { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--muted-text); letter-spacing: 0.15em; margin-top: 0.3rem; }

/* ─── Skills (淺色) — 天婦羅金光 ─── */
#skills {
  background: var(--paper-alt);
  border-bottom: 1px solid rgba(74, 124, 111, 0.15);
}
.skill-block[data-col="wide"] {
  background: linear-gradient(135deg, var(--paper) 0%, rgba(245,196,96,0.06) 100%);
}
#skills .section-h2 small { color: var(--moss); }

.skills-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.skill-block[data-col="wide"]  { grid-column: span 3; }
.skill-block[data-col="third"] { grid-column: span 2; }
.skill-block {
  background: var(--paper); border: 1px solid var(--muted-border);
  padding: 1.75rem; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.skill-block:hover {
  border-color: var(--moss); background: var(--paper-deep);
  box-shadow: 0 6px 20px rgba(26,20,16,0.08);
}
.skill-cat {
  display: block; font-family: var(--font-pixel); font-size: 0.82rem;
  color: var(--moss); letter-spacing: 0.25em; margin-bottom: 1.2rem;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-pixel); font-size: 0.75rem;
  padding: 0.4rem 0.7rem; background: var(--paper-alt); border: 1px solid var(--muted-border);
  color: var(--ink-dim); letter-spacing: 0.1em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--moss); color: var(--moss); background: var(--moss-dim); }

/* ─── Contact (深色保留) — 温泉漣漪 ─── */
#contact {
  background: var(--void);
  text-align: center; position: relative; overflow: hidden;
}
#contact::before,
#contact::after {
  content: ''; position: absolute; border-radius: 50%;
  left: 50%; bottom: -12rem;
  transform: translateX(-50%);
  pointer-events: none;
}
#contact::before {
  width: 560px; height: 560px;
  border: 1px solid rgba(61, 214, 200, 0.10);
  animation: onsen-ripple 6s ease-in-out infinite;
}
#contact::after {
  width: 820px; height: 820px;
  border: 1px solid rgba(61, 214, 200, 0.05);
  animation: onsen-ripple 6s ease-in-out infinite 2s;
}
@keyframes onsen-ripple {
  0%, 100% { transform: translateX(-50%) scale(0.95); opacity: 0.7; }
  50%       { transform: translateX(-50%) scale(1.06); opacity: 0.2; }
}
#contact-snow { position: absolute; inset: 0; pointer-events: none; opacity: 0.45; }
.contact-steam-group {
  position: absolute; bottom: 35%; left: 50%;
  transform: translateX(-50%); width: 160px; height: 80px;
  pointer-events: none; z-index: 0;
}
.contact-steam {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,214,200,0.18) 0%, transparent 70%);
  animation: contact-steam-rise 4.5s ease-in infinite;
}
.contact-steam:nth-child(1) { width:18px; height:18px; left:10px;  animation-delay:0s;    }
.contact-steam:nth-child(2) { width:12px; height:12px; left:35px;  animation-delay:0.8s;  }
.contact-steam:nth-child(3) { width:22px; height:22px; left:60px;  animation-delay:1.6s;  }
.contact-steam:nth-child(4) { width:14px; height:14px; left:88px;  animation-delay:2.4s;  }
.contact-steam:nth-child(5) { width:20px; height:20px; left:115px; animation-delay:3.2s;  }
.contact-steam:nth-child(6) { width:10px; height:10px; left:45px;  animation-delay:4s;    }
@keyframes contact-steam-rise {
  0%   { opacity: 0.8; transform: translateY(0) scale(1); }
  100% { opacity: 0;   transform: translateY(-90px) scale(0.3); }
}
.contact-inner { position: relative; z-index: 1; }

/* contact label — 覆寫回深色主題 */
#contact .label { color: var(--steam); }

.contact-h2 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem;
  color: var(--snow);
}
.contact-sub {
  font-family: var(--font-pixel); font-size: 0.88rem;
  color: var(--dark-muted-text); letter-spacing: 0.25em; margin-bottom: 2.5rem;
}
.contact-email {
  display: inline-block; font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.8vw, 2.2rem);
  color: var(--snow); position: relative; margin-bottom: 3rem; transition: color 0.25s;
}
.contact-email::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--fire);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.contact-email:hover { color: var(--fire); }
.contact-email:hover::after { transform: scaleX(1); }

.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
.social-btn {
  font-family: var(--font-pixel); font-size: 0.82rem;
  color: var(--dark-muted-text); padding: 0.8rem 1.4rem;
  border: 1px solid var(--dark-muted); letter-spacing: 0.2em;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.social-btn:hover {
  color: var(--snow); border-color: rgba(220, 232, 255, 0.35); background: var(--night-d);
}

/* ─── Footer (深色) ─── */
footer {
  background: var(--void); border-top: 1px solid var(--dark-muted);
  padding: 2rem var(--pad-x); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.foot-l, .foot-r {
  font-family: var(--font-pixel); font-size: 0.75rem;
  color: var(--dark-muted-text); letter-spacing: 0.15em;
}

/* ─── Animations ─── */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-bento { grid-template-columns: repeat(2, 1fr); }
  .skill-block[data-col="wide"],
  .skill-block[data-col="third"] { grid-column: span 1; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-menu  { display: flex; }
  .edu-grid  { grid-template-columns: 1fr; }
  .skills-bento { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; align-items: center; }
  .foot-r { display: none; }
}
@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto; }
}
