/* ═══════════════════════════════════
   ROOT & RESET — LIQUID GLASS BLUE
═══════════════════════════════════ */
:root {
  --bg:        #03060f;
  --bg2:       #060c1a;
  --card:      rgba(10,20,45,0.6);
  --glass:     rgba(15,30,70,0.45);
  --glass-hv:  rgba(20,45,100,0.55);
  --border:    rgba(80,160,255,0.12);
  --border-hv: rgba(80,180,255,0.28);
  --blue:      #4da8ff;
  --blue2:     #80c3ff;
  --cyan:      #00e5ff;
  --ice:       #b8e4ff;
  --deep:      #1a4aff;
  --gold:      #ffd54f;
  --green:     #00ffb0;
  --pink:      #c084fc;      /* subtle accent only */
  --text:      #7aaecf;
  --white:     #ddf0ff;
  --muted:     #2a4a6a;
  --glow-b:    rgba(77,168,255,0.35);
  --glow-c:    rgba(0,229,255,0.3);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* Animated deep space grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(77,168,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,168,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* Radial depth vignette */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(26,74,255,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,229,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════
   GLASS UTILITY
═══════════════════════════════════ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.glass:hover {
  background: var(--glass-hv);
  border-color: var(--border-hv);
}

/* ═══════════════════════════════════
   CURSOR
═══════════════════════════════════ */
.cursor {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px var(--cyan), 0 0 30px rgba(0,229,255,0.4);
  transition: transform 0.12s, width 0.2s, height 0.2s, background 0.2s;
}
.cursor-trail {
  width: 32px; height: 32px;
  border: 1px solid rgba(77,168,255,0.35);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s;
}

/* ═══════════════════════════════════
   SAKURA → ICE SHARDS (keep class, restyle)
═══════════════════════════════════ */
#sakura { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute; top: -20px;
  border-radius: 50% 10% 50% 10%;
  animation: petal-fall linear infinite;
  opacity: 0;
  mix-blend-mode: screen;
}
@keyframes petal-fall {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg) translateX(0); }
  8%   { opacity: 0.4; }
  92%  { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(105vh) rotate(720deg) translateX(60px); }
}

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(3,6,15,0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(77,168,255,0.1);
  z-index: 100;
  transition: box-shadow 0.4s, border-color 0.4s;
}
#navbar.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.6), 0 1px 0 rgba(77,168,255,0.2);
  border-color: rgba(77,168,255,0.2);
}
.nav-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 19px; font-weight: 700; letter-spacing: 3px;
  color: var(--white);
}
.nav-logo span { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-link {
  font-size: 10px; letter-spacing: 2.5px; color: var(--muted);
  text-decoration: none; transition: color 0.2s, text-shadow 0.2s;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
  border-bottom-color: rgba(77,168,255,0.5);
  text-shadow: 0 0 10px rgba(77,168,255,0.6);
}
.nav-burger { display: none; font-size: 22px; color: var(--blue); cursor: pointer; }
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(3,6,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 40px; color: var(--text); text-decoration: none;
  font-size: 11px; letter-spacing: 3px;
  border-bottom: 1px solid var(--border); transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); background: rgba(77,168,255,0.04); }

/* ═══════════════════════════════════
   SECTIONS
═══════════════════════════════════ */
section { min-height: 100vh; padding: 100px 80px 60px; position: relative; z-index: 2; }
.section-tag {
  font-size: 11px; color: var(--cyan); letter-spacing: 4px;
  margin-bottom: 52px; display: flex; align-items: center; gap: 12px;
  text-shadow: 0 0 16px rgba(0,229,255,0.5);
}
.section-tag::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(0,229,255,0.3), transparent);
}

/* ═══════════════════════════════════
   SCROLL ANIMATION
═══════════════════════════════════ */
.ani {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.ani.show { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; text-align: center; flex-direction: column;
  overflow: hidden;
}

/* Orb background lights */
#hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,74,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orb-pulse 6s ease-in-out infinite;
}
#hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  top: 30%; left: 60%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orb-pulse 8s ease-in-out infinite reverse;
}
@keyframes orb-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  50%      { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cinzel', serif;
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 900; color: transparent;
  -webkit-text-stroke: 1px rgba(77,168,255,0.07);
  pointer-events: none; white-space: nowrap;
  letter-spacing: 20px; user-select: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 2; }
.hero-greeting {
  font-size: 11px; color: var(--cyan); letter-spacing: 7px;
  margin-bottom: 22px; font-family: 'Zen Kaku Gothic New', sans-serif;
  text-shadow: 0 0 20px rgba(0,229,255,0.4);
}
.hero-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 900; line-height: 1.1;
  color: var(--white); margin-bottom: 22px;
}
.hero-name span {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 50%, var(--blue2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.5));
  background-size: 200% 200%;
  animation: name-shimmer 4s ease-in-out infinite;
}
@keyframes name-shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ROTATING ROLES */
.hero-roles {
  height: 28px; margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.hero-roles .role {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) translateY(12px);
  font-size: 12px; color: var(--blue2);
  letter-spacing: 3px; white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-roles .role.active { opacity: 1; transform: translateX(-50%) translateY(0); }
.hero-roles .role.exit  { opacity: 0; transform: translateX(-50%) translateY(-12px); }

.hero-motto {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13px; color: var(--text);
  font-style: italic; margin-bottom: 36px; opacity: 0.85;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-bottom: 36px;
}
.hstat { text-align: center; }
.hstat-num {
  font-family: 'Cinzel', serif; font-size: 30px; font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0,229,255,0.5);
}
.hstat-label { font-size: 9px; color: var(--muted); letter-spacing: 2px; margin-top: 3px; }
.hstat-divider { width: 1px; height: 44px; background: rgba(77,168,255,0.2); }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 30px; font-size: 10px;
  color: var(--muted); letter-spacing: 4px;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn-primary {
  padding: 12px 30px;
  border: 1px solid rgba(0,229,255,0.5);
  color: var(--cyan);
  border-radius: 8px; text-decoration: none; font-size: 11px;
  letter-spacing: 2px;
  background: rgba(0,229,255,0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  font-family: 'Share Tech Mono', monospace; cursor: pointer; display: inline-block;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(77,168,255,0.08));
  opacity: 0; transition: opacity 0.3s;
  border-radius: 8px;
}
.btn-primary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,229,255,0.3), inset 0 1px 0 rgba(0,229,255,0.15);
  transform: translateY(-2px);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  padding: 12px 30px;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px; text-decoration: none; font-size: 11px;
  letter-spacing: 2px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  font-family: 'Share Tech Mono', monospace; display: inline-block;
}
.btn-secondary:hover {
  border-color: rgba(77,168,255,0.4);
  color: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(77,168,255,0.15);
}

/* ═══════════════════════════════════
   ABOUT
═══════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.about-img-wrap { text-align: center; }
.about-img-ring {
  width: 190px; height: 190px; border-radius: 50%;
  margin: 0 auto 18px; padding: 3px;
  background: conic-gradient(var(--cyan), var(--blue), var(--deep), var(--cyan));
  animation: ring-spin 7s linear infinite;
  box-shadow: 0 0 50px rgba(0,229,255,0.2), 0 0 80px rgba(77,168,255,0.1);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.about-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.about-img-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--card); display: none;
  align-items: center; justify-content: center;
  font-size: 56px; border: 3px solid var(--bg);
  font-family: 'Noto Serif JP', serif; color: var(--cyan);
}
.about-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--green); letter-spacing: 2px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px var(--green); }
  50%      { box-shadow: 0 0 18px var(--green), 0 0 32px rgba(0,255,176,0.3); }
}
.about-socials { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.soc-btn {
  font-size: 9px; padding: 5px 11px;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted); text-decoration: none; letter-spacing: 1px;
  transition: all 0.2s; background: var(--glass); backdrop-filter: blur(8px);
}
.soc-btn:hover { border-color: rgba(0,229,255,0.4); color: var(--cyan); background: rgba(0,229,255,0.06); }

.about-name { font-family: 'Cinzel', serif; font-size: 30px; font-weight: 700; margin-bottom: 6px; color: var(--white); }
.about-name span { color: var(--cyan); }
.about-jp { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 11px; color: var(--muted); letter-spacing: 4px; margin-bottom: 22px; }

.intro-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.intro-card {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 13px;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.intro-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.intro-card:hover {
  border-color: rgba(0,229,255,0.25);
  background: var(--glass-hv);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.08);
}
.intro-card:hover::before { opacity: 1; }
.intro-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.intro-card-title { font-size: 11px; color: var(--blue2); letter-spacing: 1.5px; margin-bottom: 3px; }
.intro-card-sub { font-size: 10px; color: var(--muted); line-height: 1.6; }

.about-bio {
  font-size: 13px; line-height: 2; color: var(--text); margin-bottom: 22px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.about-bio strong { color: var(--blue2); }
.about-info { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; gap: 16px; font-size: 12px; color: var(--text); }
.info-label { color: var(--muted); min-width: 100px; font-size: 10px; letter-spacing: 1px; }

/* ═══════════════════════════════════
   EXPERIENCE
═══════════════════════════════════ */
.exp-timeline { display: flex; flex-direction: column; }
.exp-card { display: flex; gap: 26px; padding-bottom: 44px; }
.exp-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.exp-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px rgba(0,229,255,0.7);
  margin-top: 4px; animation: pulse 2s ease-in-out infinite;
}
.exp-line {
  width: 1px; flex: 1;
  background: linear-gradient(to bottom, rgba(0,229,255,0.4), transparent);
  margin-top: 7px;
}
.exp-content {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 26px; flex: 1;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.exp-content::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), transparent);
  opacity: 0.5;
}
.exp-content:hover {
  border-color: rgba(0,229,255,0.25);
  background: var(--glass-hv);
  transform: translateX(4px);
  box-shadow: 0 10px 40px rgba(0,229,255,0.06);
}
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 13px; flex-wrap: wrap; }
.exp-role { font-size: 15px; font-weight: 700; color: var(--white); font-family: 'Noto Serif JP', serif; margin-bottom: 4px; }
.exp-company { font-size: 11px; color: var(--blue2); text-decoration: none; letter-spacing: 2px; transition: color 0.2s; }
.exp-company:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(0,229,255,0.5); }
.exp-date {
  font-size: 10px; color: var(--muted); letter-spacing: 2px; white-space: nowrap;
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px;
  background: rgba(77,168,255,0.05);
}
.exp-desc { font-size: 13px; color: var(--text); line-height: 1.8; margin-bottom: 14px; font-family: 'Zen Kaku Gothic New', sans-serif; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-tags span {
  font-size: 9px; padding: 3px 10px;
  border: 1px solid rgba(77,168,255,0.18); border-radius: 20px;
  color: rgba(77,168,255,0.6); letter-spacing: 1px;
  background: rgba(77,168,255,0.04);
}

/* ═══════════════════════════════════
   SKILLS
═══════════════════════════════════ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.skill-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue)); opacity: 0.5;
}
.skill-card::after {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.skill-card:hover {
  border-color: rgba(0,229,255,0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,229,255,0.08), 0 0 0 1px rgba(0,229,255,0.1);
  background: var(--glass-hv);
}
.skill-card-title { font-size: 12px; color: var(--blue2); letter-spacing: 3px; margin-bottom: 22px; }
.skill-bars { display: flex; flex-direction: column; gap: 15px; }
.skill-name { display: flex; justify-content: space-between; font-size: 11px; color: var(--text); margin-bottom: 7px; }
.bar-track {
  height: 3px;
  background: rgba(77,168,255,0.08);
  border-radius: 2px; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.bar-fill {
  height: 100%; width: 0;
  background: var(--bar-color, linear-gradient(90deg, var(--blue), var(--cyan)));
  border-radius: 2px;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px currentColor;
  position: relative;
}
.bar-fill::after {
  content: '';
  position: absolute; right: 0; top: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bar-color, var(--cyan));
  box-shadow: 0 0 8px var(--bar-color, var(--cyan));
  opacity: 0.8;
}

/* ═══════════════════════════════════
   PROJECTS
═══════════════════════════════════ */
.projects-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; padding: 7px 18px;
  border-radius: 20px; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  background: var(--glass); backdrop-filter: blur(10px);
  letter-spacing: 2px; transition: all 0.25s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: rgba(0,229,255,0.5);
  color: var(--cyan);
  background: rgba(0,229,255,0.07);
  box-shadow: 0 0 16px rgba(0,229,255,0.1);
}
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 26px;
  position: relative; overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  display: flex; flex-direction: column; gap: 13px;
}
/* Glimmer sweep on hover */
.project-card::before {
  content: '';
  position: absolute; top: 0; left: -100%; bottom: 0; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.05), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.project-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover {
  border-color: rgba(0,229,255,0.28);
  transform: translateY(-6px);
  background: var(--glass-hv);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.08);
}
.project-card:hover::before { left: 140%; }
.project-card:hover::after  { opacity: 1; }
.project-card.hidden { display: none; }

.project-top { display: flex; justify-content: space-between; align-items: flex-start; }
.project-icon { font-size: 26px; }
.project-links { display: flex; gap: 7px; }
.plink {
  font-size: 10px; padding: 4px 11px;
  border: 1px solid var(--border); border-radius: 5px;
  color: var(--muted); text-decoration: none; letter-spacing: 1px;
  transition: all 0.2s; background: var(--glass);
}
.plink:hover { border-color: rgba(0,229,255,0.4); color: var(--cyan); background: rgba(0,229,255,0.06); }
.project-name { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 700; color: var(--white); }
.project-desc { font-size: 12px; line-height: 1.9; color: var(--text); font-family: 'Zen Kaku Gothic New', sans-serif; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-tags span {
  font-size: 9px; padding: 3px 9px;
  border: 1px solid rgba(77,168,255,0.15); border-radius: 3px;
  color: rgba(77,168,255,0.5); letter-spacing: 1px;
  background: rgba(77,168,255,0.04);
}

/* ═══════════════════════════════════
   REEL
═══════════════════════════════════ */
.reel-tabs { display: flex; gap: 8px; margin-bottom: 30px; }
.reel-tab {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; padding: 9px 22px;
  border-radius: 7px; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  background: var(--glass); backdrop-filter: blur(10px);
  letter-spacing: 2px; transition: all 0.25s;
}
.reel-tab:hover, .reel-tab.active {
  border-color: rgba(255,213,79,0.4);
  color: var(--gold);
  background: rgba(255,213,79,0.06);
  box-shadow: 0 0 16px rgba(255,213,79,0.1);
}
.reel-tab-content { display: none; }
.reel-tab-content.active { display: block; }
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.reel-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.reel-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,213,79,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,213,79,0.06);
}
.reel-thumb { width: 100%; aspect-ratio: 16/9; background: var(--bg); overflow: hidden; }
.reel-thumb iframe { width: 100%; height: 100%; border: none; }
.reel-info { padding: 14px 18px; }
.reel-title { font-family: 'Noto Serif JP', serif; font-size: 13px; color: var(--white); margin-bottom: 4px; }
.reel-tools { font-size: 10px; color: var(--muted); letter-spacing: 2px; }

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 46px); font-weight: 700;
  line-height: 1.2; margin-bottom: 18px;
}
.contact-title span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-bio { font-size: 13px; color: var(--text); line-height: 1.9; margin-bottom: 34px; font-family: 'Zen Kaku Gothic New', sans-serif; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--text);
  padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 9px;
  font-size: 12px; letter-spacing: 1px;
  transition: all 0.25s;
  background: var(--glass); backdrop-filter: blur(16px);
}
.contact-link:hover {
  border-color: rgba(0,229,255,0.35);
  color: var(--cyan); transform: translateX(5px);
  background: rgba(0,229,255,0.05);
  box-shadow: 0 4px 20px rgba(0,229,255,0.06);
}
.clink-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--blue2); flex-shrink: 0;
  background: rgba(77,168,255,0.06);
}
.contact-form {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 30px;
  position: relative; overflow: hidden;
}
.contact-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--deep));
  opacity: 0.6;
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 9px; color: var(--muted); letter-spacing: 3px; margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: rgba(3,6,15,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 7px; padding: 12px 14px;
  color: var(--blue2);
  font-family: 'Share Tech Mono', monospace; font-size: 13px;
  outline: none; transition: all 0.2s; resize: vertical;
}
.form-field select option { background: var(--bg2); color: var(--text); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 0 16px rgba(0,229,255,0.12);
  background: rgba(3,6,15,0.8);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-note { font-size: 11px; text-align: center; margin-top: 12px; min-height: 18px; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  text-align: center; padding: 52px 20px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 2;
  background: rgba(3,6,15,0.5);
}
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.footer-logo span { color: var(--cyan); text-shadow: 0 0 12px rgba(0,229,255,0.4); }
.footer-motto { font-size: 11px; color: var(--muted); font-style: italic; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 10px; color: var(--muted); text-decoration: none; letter-spacing: 2px; transition: all 0.2s; }
.footer-links a:hover { color: var(--blue2); text-shadow: 0 0 8px rgba(77,168,255,0.4); }
.footer-copy { font-size: 10px; color: var(--muted); letter-spacing: 2px; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 900px) {
  section { padding: 100px 32px 60px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-img-ring { margin: 0 auto; }
  .intro-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 600px) {
  section { padding: 90px 20px 50px; }
  .hero-name { font-size: 36px; }
  .hero-stats { gap: 14px; }
  .hstat-num { font-size: 24px; }
  .projects-grid, .reel-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════
   THANK YOU OVERLAY
═══════════════════════════════════ */
.kisu-thankyou {
  position: fixed; inset: 0;
  background: rgba(3,6,15,0.95);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(20px);
}
.kisu-thankyou.show { display: flex; }
.ty-box {
  text-align: center; max-width: 400px;
  padding: 52px 40px;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 20px;
  position: relative; overflow: hidden;
  animation: ty-pop 0.45s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 80px rgba(0,229,255,0.12);
}
.ty-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--deep));
}
@keyframes ty-pop {
  from { transform: scale(0.75) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}
.ty-sakura { font-size: 36px; animation: ty-spin 4s linear infinite; margin-bottom: 12px; display: block; }
@keyframes ty-spin {
  0%,100% { transform: rotate(-10deg) scale(1); }
  50%      { transform: rotate(10deg)  scale(1.1); }
}
.ty-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,255,176,0.08);
  border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--green);
  margin: 0 auto 20px;
  box-shadow: 0 0 28px rgba(0,255,176,0.3);
  animation: ty-glow 2s ease-in-out infinite;
}
@keyframes ty-glow {
  0%,100% { box-shadow: 0 0 28px rgba(0,255,176,0.3); }
  50%      { box-shadow: 0 0 48px rgba(0,255,176,0.6); }
}
.ty-title { font-family: 'Cinzel', serif; font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.ty-sub { font-size: 13px; color: var(--text); line-height: 1.8; margin-bottom: 28px; font-family: 'Zen Kaku Gothic New', sans-serif; }