/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f4f1f7;
  --bg-card: #ffffff;
  --bg-elevated: #ece7f3;
  --border: rgba(120,100,145,0.10);
  --border-hover: rgba(165,145,205,0.40);
  --text: #2a2535;
  --text-dim: #6b6580;
  --text-mute: #aaa4bc;
  --accent: #9a86c8;
  --accent-dim: rgba(154,134,200,0.15);
  --accent-glow: rgba(154,134,200,0.08);
  --accent-soft: #d4b8db;
  --accent-pink: #e0a8c8;
  --max-w: 1700px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Songti SC', 'SimSun', 'STSong', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.loaded { opacity: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ LOADING SCREEN ============ */
.loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display); font-size: 48px; font-weight: 700;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}
.loader-bar {
  width: 200px; height: 2px;
  background: var(--border); border-radius: 2px; overflow: hidden;
}
.loader-bar::after {
  content: ''; display: block; width: 40%; height: 100%;
  background: var(--accent);
  animation: loaderBar 1.2s ease-in-out infinite;
}
@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ============ LAYOUT ============ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 80px;
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: rgba(244,241,247,0.80);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-dim) 20%, var(--accent-dim) 80%, transparent 100%);
  opacity: 0.5; transition: opacity 0.4s ease;
}
/* Hero pages: navbar transparent until scrolled past hero */
body.has-hero .navbar:not(.scrolled) {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body.has-hero .navbar:not(.scrolled)::after { opacity: 0; }
/* Scrolled: floating frosted glass pill */
.navbar.scrolled {
  top: 12px; left: 16px; right: 16px;
  height: 60px; border-radius: 100px;
  background: rgba(244,241,247,0.72);
  backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(120,100,145,0.12);
}
.navbar.scrolled::after { opacity: 0; }
.nav-inner {
  max-width: var(--max-w); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s ease;
}
.navbar.scrolled .nav-inner { padding: 0 32px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); transition: all 0.3s; }
.nav-logo:hover { opacity: 0.85; }
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -1px;
  box-shadow: 0 0 20px var(--accent-dim);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text .name { font-size: 15px; color: var(--text); font-weight: 600; }
.nav-logo-text .role { font-size: 10px; color: var(--text-mute); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.nav-links {
  display: flex; gap: 4px; align-items: center;
  border-radius: 100px; padding: 4px;
}
.nav-links a {
  position: relative; padding: 14px 36px; font-size: 20px; color: var(--text-dim);
  transition: all 0.25s; font-weight: 500; border-radius: 100px; z-index: 1; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(120,100,145,0.06); }
.nav-links a.active { color: var(--accent); background: var(--accent-glow); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%;
  background: transparent; color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.3s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta {
  display: flex; align-items: center; gap: 8px; padding: 10px 22px;
  background: var(--accent); color: #fff; border: none; border-radius: 100px;
  font-size: 13px; font-weight: 600; transition: all 0.3s; cursor: pointer;
  font-family: var(--font-body);
}
.nav-cta:hover { box-shadow: 0 0 24px var(--accent-dim); transform: translateY(-1px); }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.5; }
.nav-menu-toggle { display: none; }

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; overflow: hidden; }
.hero-bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('images/hero-bg-new.jpeg'); background-size: cover; background-position: center center;
  opacity: 0.55; filter: saturate(0.88) contrast(0.95); z-index: 0;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(244,241,247,0.35) 12%, transparent 30%, transparent 50%, transparent 65%, rgba(244,241,247,0.4) 85%, var(--bg) 100%),
    linear-gradient(180deg, rgba(244,241,247,0.2) 0%, transparent 15%, transparent 75%, var(--bg) 100%);
}
.hero-tint {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  background: linear-gradient(180deg, rgba(244,241,247,0.6) 0%, rgba(244,241,247,0.3) 40%, rgba(244,241,247,0.5) 80%, rgba(244,241,247,0.7) 100%);
}
.hero::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3;
  opacity: 0.035; pointer-events: none; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-ambient {
  position: absolute; top: 15%; left: 35%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(80px); z-index: 0;
  animation: ambientFloat 8s ease-in-out infinite;
}
@keyframes ambientFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-30px); }
}
/* Floating glowing orbs */
.hero-orb { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.hero-orb-1 {
  top: 12%; right: 8%; width: 280px; height: 280px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  filter: blur(40px); animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
  bottom: 15%; left: 5%; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(165, 145, 205, 0.12) 0%, transparent 70%);
  filter: blur(35px); animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb-3 {
  top: 50%; right: 30%; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(224, 168, 200, 0.10) 0%, transparent 70%);
  filter: blur(30px); animation: orbFloat3 14s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px, 30px); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -20px); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-15px, -25px); } }
/* Twinkling stars */
.hero-star { position: absolute; z-index: 1; pointer-events: none; }
.hero-star::before, .hero-star::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--accent); border-radius: 50%;
}
.hero-star::before { width: 6px; height: 6px; transform: translate(-50%, -50%); box-shadow: 0 0 12px var(--accent); }
.hero-star::after { width: 2px; height: 2px; transform: translate(-50%, -50%); opacity: 0.5; }
.hero-star-1 { top: 18%; right: 15%; animation: twinkle 3s ease-in-out infinite; }
.hero-star-2 { top: 35%; right: 8%; animation: twinkle 4s ease-in-out infinite 0.5s; }
.hero-star-3 { bottom: 25%; right: 20%; animation: twinkle 3.5s ease-in-out infinite 1s; }
.hero-star-4 { top: 65%; right: 40%; animation: twinkle 2.8s ease-in-out infinite 0.8s; }
.hero-star-5 { top: 25%; left: 8%; animation: twinkle 4.5s ease-in-out infinite 1.5s; }
@keyframes twinkle { 0%,100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
/* Hero content: left+right split layout */
.hero-content {
  position: relative; z-index: 2; width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 80px;
  padding-top: 200px; padding-bottom: 320px;
}
.hero-left { flex: 1; max-width: 680px; padding: 36px 40px; border-radius: 20px; }
.hero-right { flex-shrink: 0; width: 320px; padding: 28px; border-radius: 16px; background: rgba(255,255,255,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); }

/* Magazine top bar */
.hero-top-bar {
  position: absolute; top: 110px; left: 24px; right: 24px; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  opacity: 0; animation: heroFadeUp 0.8s ease forwards; animation-delay: 0.2s;
}
.hero-vol { font-size: 11px; color: var(--text-mute); letter-spacing: 2px; }
.hero-brand { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 1px; font-family: var(--font-display); }
.hero-vol-jp { font-size: 11px; color: var(--text-mute); letter-spacing: 1px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 100px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  margin-bottom: 28px; backdrop-filter: blur(10px); background: rgba(255,255,255,0.5);
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 0.3s;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title {
  font-family: var(--font-display); font-size: clamp(56px, 8vw, 128px);
  font-weight: 700; line-height: 0.95; letter-spacing: -4px; margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(244,241,247,0.6);
  opacity: 0; transform: translateY(30px);
  animation: heroFadeUp 0.9s ease forwards; animation-delay: 0.5s;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-cn-name {
  font-family: var(--font-serif); font-size: 48px; font-weight: 600;
  margin: 28px 0 14px; color: var(--text); letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(244,241,247,0.5);
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 0.55s;
}
.hero-cn-sub {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  margin-bottom: 36px; letter-spacing: 1.5px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 0.65s;
}
/* Hero right panel: metadata + barcode */
.hero-vname {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: 6px; margin-bottom: 24px; color: var(--text);
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 0.6s;
}
.hero-vmeta {
  margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 0.75s;
}
.vmeta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.vmeta-label { color: var(--text-mute); letter-spacing: 1px; }
.vmeta-val { color: var(--accent); font-weight: 600; letter-spacing: 1px; }
.hero-barcode {
  display: flex; gap: 3px; margin-bottom: 6px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 0.9s;
}
.hero-barcode span { width: 3px; height: 44px; background: var(--text); opacity: 0.7; }
.hero-barcode span:nth-child(3n) { height: 30px; }
.hero-barcode span:nth-child(5n) { height: 36px; opacity: 0.5; }
.hero-barcode-text {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 2px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 1.0s;
}
.hero-subtitle {
  font-size: 17px; color: var(--text-dim); font-weight: 300; line-height: 1.7;
  max-width: 520px; margin: 0;
  text-shadow: 0 1px 12px rgba(244,241,247,0.6);
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.9s ease forwards; animation-delay: 0.7s;
}
.hero-actions {
  display: flex; gap: 14px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.9s ease forwards; animation-delay: 0.9s;
}
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }
.btn-primary {
  padding: 14px 36px; background: var(--accent); color: #fff; border: none; border-radius: 100px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
  font-family: var(--font-body); position: relative; overflow: hidden;
}
.btn-primary:hover { box-shadow: 0 0 30px var(--accent-dim); transform: translateY(-2px); }
.btn-ghost {
  padding: 14px 36px; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s;
  font-family: var(--font-body);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
/* Hero bottom bar: stats + tech strip */
.hero-bottom-bar {
  position: absolute; bottom: 20px; left: 24px; right: 24px; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards; animation-delay: 1.1s;
}
.hero-stats {
  display: flex; justify-content: space-between; gap: 30px;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.hero-stat { text-align: left; }
.hero-stat .num { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-stat .label { font-size: 9px; color: var(--text-mute); margin-top: 4px; font-family: var(--font-mono); letter-spacing: 1px; }
.hero-tech-strip {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
}
.hero-tech-strip span {
  padding: 4px 12px; background: var(--accent-dim); border-radius: 100px;
  font-size: 10px; color: var(--text-dim); font-family: var(--font-mono);
  white-space: nowrap; border: 1px solid var(--border);
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards, bounce 2s infinite;
  animation-delay: 1.3s, 2s;
}
.hero-scroll .line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-mute), transparent); }
.hero-scroll .text { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 2px; writing-mode: vertical-rl; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============ SECTION COMMON ============ */
.section { padding: 140px 0; position: relative; overflow: hidden; }
.section-header { margin-bottom: 64px; }
.section-tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px);
  font-weight: 600; letter-spacing: -1.5px; line-height: 1.1;
}
.section-desc { font-size: 16px; color: var(--text-dim); max-width: 600px; margin-top: 16px; }
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============ ABOUT ============ */
.about { background: var(--bg); position: relative; }
.about-bg-deco {
  position: absolute; top: 50%; right: -100px; transform: translateY(-50%);
  width: 500px; height: 700px;
  background-image: url('images/oguri_tamamo_2.jpg'); background-size: cover; background-position: center;
  opacity: 0.08; filter: blur(4px) saturate(0.6); z-index: 0; pointer-events: none; border-radius: 30px;
}
.about .container { position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-avatar { position: relative; }
.avatar-frame {
  width: 100%; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); position: relative;
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%) contrast(1.05); transition: filter 0.4s, transform 0.6s; }
.avatar-frame:hover img { filter: grayscale(0%) contrast(1.1); transform: scale(1.03); }
.avatar-frame::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
  background: linear-gradient(to top, rgba(244,241,247,0.9), transparent);
}
.avatar-badge {
  position: absolute; bottom: 24px; left: 24px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: rgba(255,255,255,0.6); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 100px;
}
.avatar-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.avatar-badge span { font-family: var(--font-mono); font-size: 11px; color: #4ade80; }
.about-info h3 { font-family: var(--font-display); font-size: 36px; font-weight: 600; margin-bottom: 8px; }
.about-info .role { font-size: 14px; color: var(--accent); margin-bottom: 24px; font-family: var(--font-mono); letter-spacing: 1px; }
.about-info .bio { font-size: 15px; line-height: 1.8; color: var(--text-dim); margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.contact-item { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-dim); }
.contact-item .label { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1.5px; min-width: 70px; }
.contact-item .value { color: var(--text); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-card { text-align: left; }
.stat-card .num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-card .label { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ============ EXPERIENCE ============ */
.experience { background: var(--bg-elevated); position: relative; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-soft), transparent);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -32px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg-elevated);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(154,134,200,0.12);
  z-index: 1;
}
.timeline-content {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 28px; transition: all 0.3s;
}
.timeline-content:hover { border-color: var(--border-hover); box-shadow: 0 8px 32px rgba(120,100,145,0.08); }
.timeline-date {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 8px;
}
.timeline-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}
.timeline-desc {
  font-size: 14px; line-height: 1.7; color: var(--text-dim); margin-bottom: 16px;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-tags span {
  padding: 4px 12px; background: var(--accent-dim); border: 1px solid var(--border);
  border-radius: 100px; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono);
}

/* ============ PROJECTS ============ */
.projects { background: #f0ece6; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; }
.projects-bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('images/oguri_cap_2.jpg'); background-size: cover; background-position: center;
  opacity: 0.08; filter: blur(3px) saturate(0.5); z-index: 0; pointer-events: none;
}
.projects .container { position: relative; z-index: 1; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; position: relative;
  box-shadow: 0 2px 12px rgba(120,100,145,0.04);
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(120,100,145,0.10); }
.project-card.large { grid-column: span 2; }
.project-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(240,236,230,0.95) 100%);
}
.project-body { padding: 32px; }
.project-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.project-category { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.project-year { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.project-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.5px; }
.project-desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span { padding: 4px 12px; background: rgba(120,100,145,0.04); border: 1px solid var(--border); border-radius: 100px; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
.project-arrow {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-dim); transition: all 0.3s; z-index: 3;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(10px);
}
.project-card:hover .project-arrow { border-color: var(--accent); color: var(--accent); transform: rotate(-45deg); background: var(--accent-glow); }

/* ============ SKILLS ============ */
.skills { background: var(--bg); position: relative; }
.skills-bg-img {
  position: absolute; bottom: 0; left: 0; width: 60%; height: 100%;
  background-image: url('images/m28.jpg'); background-size: cover; background-position: left center;
  opacity: 0.06; filter: blur(5px) saturate(0.5); z-index: 0; pointer-events: none;
  mask-image: linear-gradient(to right, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 80%);
}
.skills .container { position: relative; z-index: 1; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 36px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(120,100,145,0.04);
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.skill-card:hover { border-color: var(--border-hover); background: var(--bg-elevated); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(120,100,145,0.08); }
.skill-card:hover::before { opacity: 1; }
.skill-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; color: var(--accent); }
.skill-card h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.skill-card .skill-sub { font-size: 12px; color: var(--accent); font-family: var(--font-mono); margin-bottom: 16px; letter-spacing: 1px; }
.skill-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-list span { padding: 4px 10px; background: rgba(120,100,145,0.04); border-radius: 6px; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

/* ============ ARTICLES ============ */
.articles { background: #f0ece6; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; }
.articles-bg-deco {
  position: absolute; top: 10%; left: -80px; width: 400px; height: 500px;
  background-image: url('images/oguri_tamamo_1.jpg'); background-size: cover; background-position: center;
  opacity: 0.06; filter: blur(5px) saturate(0.5); z-index: 0; pointer-events: none; border-radius: 30px;
}
.articles .container { position: relative; z-index: 1; }
.articles-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; position: relative;
  box-shadow: 0 2px 12px rgba(120,100,145,0.04);
}
.article-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: 0 16px 50px rgba(120,100,145,0.10); }
.article-cover { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.article-card:hover .article-cover img { transform: scale(1.06); }
.article-cover::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent 50%, rgba(240,236,230,0.8) 100%); }
.article-body { padding: 24px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article-cat { font-family: var(--font-mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; }
.article-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }
.article-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; letter-spacing: -0.3px; }
.article-excerpt { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-tags span { padding: 3px 10px; background: rgba(120,100,145,0.04); border: 1px solid var(--border); border-radius: 100px; font-size: 10px; color: var(--text-dim); font-family: var(--font-mono); }
.article-pinned { position: absolute; top: 12px; right: 12px; padding: 4px 10px; background: var(--accent); color: #fff; border-radius: 100px; font-size: 10px; font-weight: 600; font-family: var(--font-mono); z-index: 1; }

/* ============ CHANGELOG ============ */
.changelog { background: var(--bg); position: relative; }
.changelog .container { position: relative; z-index: 1; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--accent-dim) 0%, var(--border) 50%, transparent 100%); }
.log-item { position: relative; padding-bottom: 40px; }
.log-item:last-child { padding-bottom: 0; }
.log-dot { position: absolute; left: -32px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent-dim); transition: all 0.3s; }
.log-item:hover .log-dot { background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.log-date { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 1px; margin-bottom: 6px; }
.log-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.3px; }
.log-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s; box-shadow: 0 2px 8px rgba(120,100,145,0.04); }
.log-item:hover .log-desc { border-color: var(--border-hover); }
.log-badge { display: inline-block; padding: 2px 10px; background: var(--accent-glow); border: 1px solid var(--accent-dim); border-radius: 100px; font-size: 10px; color: var(--accent); font-family: var(--font-mono); margin-left: 8px; vertical-align: middle; }

/* ============ FRIEND LINKS ============ */
.friends { background: var(--bg); position: relative; }
.friends .container { position: relative; z-index: 1; }
.friends-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.friend-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 32px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); text-align: center; cursor: pointer;
  box-shadow: 0 2px 12px rgba(120,100,145,0.04);
}
.friend-card:hover { border-color: var(--border-hover); background: var(--bg-elevated); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(120,100,145,0.08); }
.friend-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); transition: border-color 0.3s; position: relative; }
.friend-card:hover .friend-avatar { border-color: var(--accent); }
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-avatar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 12px rgba(0,0,0,0.08); }
.friend-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); }
.friend-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.friend-url { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.5px; }

/* ============ MOMENTS ============ */
.moments { background: var(--bg); position: relative; }
.moments .container { position: relative; z-index: 1; }
.moments-feed { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.moment-card { display: flex; gap: 16px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all 0.3s; box-shadow: 0 2px 12px rgba(120,100,145,0.04); }
.moment-card:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.moment-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.moment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.moment-body { flex: 1; min-width: 0; }
.moment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.moment-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); }
.moment-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.moment-text { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.moment-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: 12px; overflow: hidden; }
.moment-images img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s; cursor: pointer; }
.moment-images img:hover { transform: scale(1.05); }
.moment-images.single img { aspect-ratio: 16/9; grid-column: span 3; }
.moment-actions { display: flex; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.moment-action { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mute); font-family: var(--font-mono); cursor: pointer; transition: color 0.25s; }
.moment-action:hover { color: var(--accent); }
.moment-action .icon { font-size: 14px; }

/* ============ GUESTBOOK ============ */
.guestbook { background: #f0ece6; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; }
.guestbook .container { position: relative; z-index: 1; }
.guestbook-input { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 40px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: border-color 0.3s; box-shadow: 0 2px 12px rgba(120,100,145,0.04); }
.guestbook-input:focus-within { border-color: var(--border-hover); }
.gb-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); background: var(--accent-glow); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent); }
.gb-form { flex: 1; }
.gb-textarea { width: 100%; min-height: 80px; background: transparent; border: none; color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.7; resize: vertical; outline: none; }
.gb-textarea::placeholder { color: var(--text-mute); }
.gb-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.gb-btn { padding: 8px 24px; background: var(--accent); color: #fff; border: none; border-radius: 100px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: var(--font-body); }
.gb-btn:hover { box-shadow: 0 0 20px var(--accent-dim); transform: translateY(-1px); }
.gb-btn.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.gb-btn.ghost:hover { color: var(--text); border-color: var(--accent); }
.guestbook-list { display: flex; flex-direction: column; gap: 16px; }
.gb-message { display: flex; gap: 14px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; transition: border-color 0.3s; box-shadow: 0 2px 8px rgba(120,100,145,0.04); }
.gb-message:hover { border-color: var(--border-hover); }
.gb-msg-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.gb-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gb-msg-body { flex: 1; }
.gb-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.gb-msg-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); }
.gb-msg-device { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }
.gb-msg-text { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.gb-msg-foot { display: flex; gap: 16px; margin-top: 10px; }
.gb-msg-action { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); cursor: pointer; transition: color 0.25s; }
.gb-msg-action:hover { color: var(--accent); }

/* ============ CONTACT ============ */
.contact { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: #ede8e1; }
.contact-bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('images/tw_44.jpg'); background-size: cover; background-position: center;
  opacity: 0.12; filter: blur(3px) saturate(0.7); z-index: 0;
}
.contact-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.contact-bg::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(204,130,174,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(204,130,174,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.contact-bg::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%; filter: blur(40px);
}
.contact-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 48px; }
.contact-content .section-tag { text-align: center; }
.contact-title { font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -2px; line-height: 1.1; margin-bottom: 24px; }
.contact-title .accent { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.contact-desc { font-size: 16px; color: var(--text-dim); max-width: 500px; margin: 0 auto 48px; }
.contact-methods { display: flex; justify-content: center; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.contact-method { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 40px; border: 1px solid var(--border); border-radius: 18px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); min-width: 220px; background: rgba(255,255,255,0.5); backdrop-filter: blur(10px); }
.contact-method:hover { border-color: var(--accent); background: var(--accent-glow); transform: translateY(-4px); }
.contact-method .icon { font-size: 28px; color: var(--accent); }
.contact-method .label { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 2px; }
.contact-method .value { font-size: 15px; color: var(--text); }
.contact-cta { display: inline-flex; align-items: center; gap: 10px; padding: 18px 48px; background: var(--accent); color: #fff; border: none; border-radius: 100px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.contact-cta:hover { box-shadow: 0 0 40px var(--accent-dim); transform: translateY(-2px); }

/* ============ FOOTER ============ */
.footer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; padding: 32px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-stats { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.footer-stats span b { color: var(--text-dim); font-weight: 500; }
.footer-tech { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.footer-tech span { color: var(--accent); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.5px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 12px; color: var(--text-dim); transition: color 0.25s; }
.footer-nav a:hover { color: var(--accent); }

/* ============ FOOTER (sub-pages, static) ============ */
.footer-static { padding: 32px 48px; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-static .footer-inner { position: static; }

/* ============ PAGE WRAP ============ */
.page-wrap { padding-top: 120px; position: relative; min-height: 100vh; }

/* ============ PAGE BG ELEMENTS ============ */
.page-bg-full {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0.08; filter: blur(4px) saturate(0.6);
  z-index: 0; pointer-events: none;
}
.page-bg-right {
  position: absolute; top: 15%; right: -120px; width: 500px; height: 600px;
  background-size: cover; background-position: center;
  opacity: 0.06; filter: blur(5px) saturate(0.5);
  z-index: 0; pointer-events: none; border-radius: 30px;
}
.page-bg-left {
  position: absolute; bottom: 10%; left: -120px; width: 500px; height: 600px;
  background-size: cover; background-position: center;
  opacity: 0.06; filter: blur(5px) saturate(0.5);
  z-index: 0; pointer-events: none; border-radius: 30px;
}
.page-bg-top-right {
  position: absolute; top: 5%; right: -80px; width: 380px; height: 480px;
  background-size: cover; background-position: center;
  opacity: 0.07; filter: blur(4px) saturate(0.6);
  z-index: 0; pointer-events: none; border-radius: 24px;
}
.page-bg-bottom-left {
  position: absolute; bottom: 5%; left: -80px; width: 380px; height: 480px;
  background-size: cover; background-position: center;
  opacity: 0.07; filter: blur(4px) saturate(0.6);
  z-index: 0; pointer-events: none; border-radius: 24px;
}
.page-bg-bottom-right {
  position: absolute; bottom: 5%; right: -80px; width: 380px; height: 480px;
  background-size: cover; background-position: center;
  opacity: 0.07; filter: blur(4px) saturate(0.6);
  z-index: 0; pointer-events: none; border-radius: 24px;
}
.page-bg-top-left {
  position: absolute; top: 5%; left: -80px; width: 380px; height: 480px;
  background-size: cover; background-position: center;
  opacity: 0.07; filter: blur(4px) saturate(0.6);
  z-index: 0; pointer-events: none; border-radius: 24px;
}
.page-wrap > .container { position: relative; z-index: 1; }

/* ============ CATEGORY TABS ============ */
.cat-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.cat-tab { padding: 6px 16px; background: rgba(120,100,145,0.04); border: 1px solid var(--border); border-radius: 100px; font-size: 12px; color: var(--text-dim); cursor: pointer; transition: all 0.25s; font-family: var(--font-body); }
.cat-tab:hover { color: var(--text); border-color: var(--border-hover); }
.cat-tab.active { background: var(--accent-glow); border-color: var(--accent-dim); color: var(--accent); }
.cat-tab .count { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); margin-left: 4px; }

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
html { scroll-padding-top: 100px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .hero-content { gap: 40px; }
  .hero-right { width: 300px; }
  .hero-bottom-bar { left: 48px; right: 48px; }
}
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 120px; }
  .hero-right { width: 100%; max-width: 480px; }
  .hero-top-bar { top: 88px; }
  .hero-bottom-bar { bottom: 60px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -24px; width: 12px; height: 12px; }
  .timeline-content { padding: 18px 20px; }
  .timeline-title { font-size: 17px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .friends-grid { grid-template-columns: repeat(2,1fr); }
  .moment-images { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 16px; }
  .navbar { height: 56px; }
  .navbar.scrolled { left: 8px; right: 8px; top: 8px; }
  .navbar.scrolled .nav-inner { padding: 0 12px; }
  .nav-logo-text { display: none; }
  .nav-logo-mark { width: 32px; height: 32px; font-size: 13px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 8px; font-size: 11px; }
  .nav-right { gap: 8px; }
  .theme-toggle { width: 32px; height: 32px; font-size: 13px; }
  .nav-cta { padding: 7px 14px; font-size: 11px; }
  .footer { padding: 24px; }
  .hero-content { padding: 0 24px; flex-direction: column; padding-top: 100px; }
  .hero-right { display: none; }
  .hero-top-bar { left: 24px; right: 24px; top: 84px; }
  .hero-vol-jp { display: none; }
  .hero-bottom-bar { left: 24px; right: 24px; bottom: 50px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 22px; }
  .hero-cn-name { font-size: 36px; }
  .hero-title { font-size: clamp(40px, 10vw, 64px); }
  .articles-grid { grid-template-columns: 1fr; }
  .friends-grid { grid-template-columns: 1fr 1fr; }
  .guestbook-input { flex-direction: column; }
  .gb-avatar { align-self: center; }
  .section { padding: 80px 0; }
  .page-wrap { padding-top: 100px; }
  .contact-methods { gap: 16px; }
  .hero-orb-1, .hero-orb-2, .hero-orb-3 { display: none; }
}
