*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0e0e0f;
  --surface:   #161618;
  --surface2:  #1c1c1f;
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(74,222,128,0.4);
  --text:      #e2e2e2;
  --muted:     #6b7280;
  --muted2:    #52525b;
  --green:     #4ade80;
  --green-dim: rgba(74,222,128,0.09);
  --cyan:      #67e8f9;
  --mono:      'JetBrains Mono', monospace;
  --pad-x:     clamp(1.5rem, 4vw, 3.5rem);
  --nav-h:     58px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.022) 2px, rgba(0,0,0,0.022) 4px);
  pointer-events: none; z-index: 0;
}

#meteor-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.shell { display:flex; flex-direction:column; flex:1; position:relative; z-index:1; }

/* ══ NAV ══ */
.site-header {
  position: sticky; top: 0; z-index: 100; flex-shrink: 0;
  height: var(--nav-h);
  background: rgba(14,14,15,0.92);
  backdrop-filter: blur(16px);
  border-bottom: .5px solid var(--border);
}
.navbar {
  display: flex; align-items: center;
  height: 100%; padding: 0 var(--pad-x); gap: 1rem;
}

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; flex-shrink: 0;
}
.logo-svg { width: 26px; height: 26px; color: var(--green); flex-shrink: 0; }
.nav-logo-text { font-size: 13px; font-weight: 500; color: var(--green); letter-spacing: .02em; }

.nav-links {
  display: flex; align-items: center; list-style: none;
  gap: .1rem; margin: 0 auto;
}
.nav-links li a {
  display: block; font-size: 12px; color: var(--muted); text-decoration: none;
  letter-spacing: .07em; padding: 5px 14px; border-radius: 5px;
  transition: color .2s, background .2s; cursor: pointer;
}
.nav-links li a:hover  { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links li a.active { color: var(--green); background: var(--green-dim); }

.nav-right {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--muted); flex-shrink: 0;
}
.nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: navPulse 2.5s ease-in-out infinite;
}
@keyframes navPulse {
  0%,100% { box-shadow: 0 0 5px var(--green); }
  50%      { box-shadow: 0 0 13px var(--green); opacity: .7; }
}

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 6px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted); border-radius: 2px; transition: .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--green); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--green); }

/* ══ PAGES ══ */
.page {
  display: none; flex: 1; flex-direction: column;
  padding: clamp(2.25rem,5vw,4rem) var(--pad-x) clamp(2rem,4vw,3.5rem);
  min-height: calc(100vh - var(--nav-h) - 76px);
}
.page.active { display: flex; animation: fadeUp .3s ease both; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

.slabel {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(1.5rem,3vw,2.25rem);
}
.slabel::after { content: ''; flex: 1; height: .5px; background: var(--border); }

/* ══ ABOUT ══ */
#page-about { flex-direction: column !important; gap: 0; }

.about-left {
  flex: 1; min-width: 0; max-width: 720px;
  display: flex; flex-direction: column; gap: clamp(1.8rem,3.5vw,2.6rem);
}

.name-wrap {
  font-size: clamp(34px,5.5vw,64px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05; display: block;
  animation: nameBreathe 4.5s ease-in-out infinite; animation-delay: 1.5s;
}
@keyframes nameBreathe {
  0%,100% { filter: drop-shadow(0 0 0px transparent); }
  50%      { filter: drop-shadow(0 0 22px rgba(74,222,128,.35)) drop-shadow(0 0 5px rgba(74,222,128,.15)); }
}

.ink-char {
  display: inline-block; opacity: 0;
  animation: inkSettle 1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d);
}
@keyframes inkSettle {
  0%   { opacity:0; filter:blur(14px); transform:scale(1.2);  color:rgba(74,222,128,.95); }
  40%  { opacity:1; filter:blur(3px);  transform:scale(1.03); color:rgba(180,240,210,.9); }
  100% { opacity:1; filter:blur(0);    transform:scale(1);    color:#e2e2e2; }
}
.ink-char.br { animation-name: inkSettleBr; text-shadow: 0 0 16px rgba(74,222,128,.6), 0 0 4px rgba(74,222,128,.3); }
@keyframes inkSettleBr {
  0%   { opacity:0; filter:blur(14px); transform:scale(1.2); }
  40%  { opacity:1; filter:blur(3px);  transform:scale(1.03); }
  100% { opacity:1; filter:blur(0);    transform:scale(1); color:var(--green); }
}

.role  { font-size:11.5px; color:var(--muted); letter-spacing:.1em; text-transform:uppercase; margin-top:.75rem; }
.role2 { font-size:clamp(15px,2vw,20px); color:var(--text); letter-spacing:.28em; text-transform:uppercase; margin-top:.85rem; text-shadow:0 0 28px rgba(74,222,128,.1); }
.bio   { font-size:clamp(13px,1.35vw,14.5px); color:var(--muted); line-height:2; margin-top:.5rem; }
.bio .hl { color: var(--green); }

.skills { display:flex; flex-wrap:wrap; gap:7px; }
.tag {
  font-size:12px; padding:5px 13px;
  border:.5px solid var(--border); border-radius:5px;
  color:var(--muted); letter-spacing:.04em;
  transition: border-color .2s, color .2s, background .2s; cursor:default;
}
.tag:hover { border-color:var(--green); color:var(--green); background:var(--green-dim); }
.tag.f { border-color:rgba(74,222,128,.3); color:var(--green); background:var(--green-dim); }

.socials { display:flex; flex-wrap:wrap; gap:.6rem; }
.soc-btn {
  display:flex; align-items:center; gap:8px; font-size:12px;
  font-family:var(--mono); color:var(--muted); text-decoration:none;
  border:.5px solid var(--border); border-radius:5px; padding:7px 14px;
  transition: color .2s, border-color .2s, background .2s;
}
.soc-btn:hover { color:var(--green); border-color:var(--border-h); background:var(--green-dim); }
.soc-btn svg { width:15px; height:15px; fill:currentColor; flex-shrink:0; }

.aside-label { font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:rgba(107,114,128,.4); margin-bottom:.5rem; }
.aside-divider { height:.5px; background:var(--border); }
.listen-track  { font-size:12.5px; color:var(--text); }
.listen-artist { font-size:11px; color:var(--muted); margin-top:3px; }
.listen-bars   { display:flex; align-items:flex-end; gap:2px; height:16px; margin-top:.65rem; }
.lb { width:3px; border-radius:2px 2px 0 0; background:rgba(74,222,128,.4); animation:lbDance var(--d) ease-in-out infinite alternate; animation-delay:var(--dl); }
@keyframes lbDance { from{height:var(--lo)} to{height:var(--hi); background:rgba(74,222,128,.65)} }
.genre-list { display:flex; flex-direction:column; gap:.35rem; }
.genre-item { font-size:11px; color:var(--muted); }
.genre-item::before { content:'— '; color:rgba(107,114,128,.3); }
.mood { font-size:11px; color:rgba(107,114,128,.5); line-height:1.8; }

/* ══ PROJECTS ══ */
#page-projects { gap:0; }

.empty-state {
  display:flex; flex-direction:column; align-items:flex-start;
  gap:1.1rem; max-width:440px;
  padding:2.5rem;
  background:var(--surface);
  border:.5px dashed rgba(255,255,255,0.09);
  border-radius:12px;
}
.empty-icon { color:rgba(107,114,128,.3); line-height:1; }
.empty-title { font-size:17px; font-weight:500; color:var(--muted2); }
.empty-desc { font-size:13px; color:var(--muted); line-height:1.9; }
.empty-desc a { color:var(--green); text-decoration:none; }
.empty-desc a:hover { text-decoration:underline; }
.empty-cta {
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-family:var(--mono); color:var(--green); text-decoration:none;
  border:.5px solid rgba(74,222,128,.3); border-radius:5px; padding:7px 16px;
  background:var(--green-dim); transition:background .2s, border-color .2s; margin-top:.25rem;
}
.empty-cta:hover { background:rgba(74,222,128,.15); border-color:rgba(74,222,128,.55); }

/* ══ INTERESTS ══ */
#page-interests { gap:0; }

.interests-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 780px;
}

.ic.music {
  grid-column: 1 / -1;
}

/* ── shared base ── */
.ic {
  position: relative; overflow: hidden; cursor: default;
  border: .5px solid var(--border);
  transition: border-color .3s;
}
.ic:hover { border-color: rgba(255,255,255,0.13); }

/* ── MUSIC — wide horizontal bar ── */
.ic.music {
  background: var(--surface);
  border-radius: 12px 12px 4px 4px;
  padding: 2rem 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.ic.music .ic-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.ic.music .ic-info { flex: 1; }
.ic.music .ic-num {
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -.04em;
  user-select: none;
  flex-shrink: 0;
}
.ic.music .ic-title {
  font-size: 18px; font-weight: 500; color: var(--text);
  letter-spacing: -.01em;
}
.ic.music .ic-desc {
  font-size: 13px; color: var(--muted); line-height: 1.85;
  margin-top: .5rem; max-width: 480px;
}

.ic.music .ic-tag-row {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.ic.music .ic-tag {
  font-size: 10px; color: rgba(74,222,128,.5);
  border: .5px solid rgba(74,222,128,.15);
  border-radius: 3px; padding: 2px 9px;
  letter-spacing: .06em;
}

/* ── ANIME — tall with ghost title ── */
.ic.anime {
  background: var(--surface);
  border-radius: 4px;
  padding: 2rem 2rem 1.8rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.ic.anime .ic-ghost {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  letter-spacing: -.05em;
  user-select: none;
  flex-shrink: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ic.anime .ic-body { flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.ic.anime .ic-label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,114,182,.35);
}
.ic.anime .ic-title {
  font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: -.01em;
}
.ic.anime .ic-desc {
  font-size: 13px; color: var(--muted); line-height: 1.85;
}
.ic.anime .ic-accent-line {
  width: 32px; height: 1px;
  background: linear-gradient(to right, rgba(244,114,182,.5), transparent);
  margin-top: .4rem;
}
.anilist-btn {
  display: inline-block;
  margin-top: 1rem;
  font-size: 11px;
  font-family: var(--mono);
  color: rgba(244,114,182,.5);
  text-decoration: none;
  letter-spacing: .08em;
  border: .5px solid rgba(244,114,182,.15);
  border-radius: 4px;
  padding: 4px 12px;
  transition: color .2s, border-color .2s, background .2s;
}
.anilist-btn:hover {
  color: rgba(244,114,182,.9);
  border-color: rgba(244,114,182,.35);
  background: rgba(244,114,182,.06);
}

/* ── GAMES — minimal stat row ── */
.ic.games {
  background: var(--surface);
  border-radius: 4px 4px 12px 12px;
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.ic.games .ic-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ic.games .ic-title {
  font-size: 18px; font-weight: 500; color: var(--text); letter-spacing: -.01em;
}
.ic.games .ic-ping {
  font-size: 11px; color: rgba(103,232,249,.5);
  letter-spacing: .1em;
  display: flex; align-items: center; gap: 6px;
}
.ic.games .ic-ping::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(103,232,249,.5);
  animation: pingPulse 1.8s ease-in-out infinite;
}
@keyframes pingPulse {
  0%,100% { opacity: .4; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.3); }
}
.ic.games .ic-desc {
  font-size: 13px; color: var(--muted); line-height: 1.85;
}
.ic.games .ic-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: .8rem;
  border-top: .5px solid var(--border);
}
.ic.games .stat { display: flex; flex-direction: column; gap: .2rem; }
.ic.games .stat-val {
  font-size: 15px; font-weight: 500; color: var(--text);
}
.ic.games .stat-key {
  font-size: 10px; color: var(--muted2); letter-spacing: .08em; text-transform: uppercase;
}

.interests-note { margin-top: 1.25rem; }
.interests-note-line { font-size:11px; color:var(--muted2); font-style:italic; }

/* ══ CONTACT ══ */
#page-contact { gap:0; max-width:560px; }
.contact-intro { font-size:clamp(13.5px,1.4vw,15px); color:var(--muted); line-height:2; margin-bottom:2.25rem; }
.contact-intro .hl { color:var(--green); }
.contact-links { display:flex; flex-direction:column; gap:.8rem; }
.contact-link {
  display:flex; align-items:center; gap:1rem;
  padding:1.1rem 1.3rem;
  background:var(--surface); border:.5px solid var(--border); border-radius:10px;
  text-decoration:none; color:var(--text);
  transition:border-color .2s, transform .2s, background .2s;
}
.contact-link:hover { border-color:var(--border-h); transform:translateX(5px); background:var(--surface2); }
.contact-link svg { width:16px; height:16px; fill:var(--green); flex-shrink:0; }
.cl-label { font-size:10.5px; color:var(--muted); letter-spacing:.1em; text-transform:uppercase; }
.cl-value { font-size:13px; color:var(--text); margin-top:3px; word-break:break-all; }
.cl-arrow { margin-left:auto; color:var(--muted); font-size:14px; transition:color .2s, transform .2s; flex-shrink:0; }
.contact-link:hover .cl-arrow { color:var(--green); transform:translate(2px,-2px); }

/* ══ FOOTER ══ */
.bottombar {
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:.4rem; padding:.85rem var(--pad-x);
  border-top:.5px solid var(--border);
  font-size:11px; color:var(--muted); letter-spacing:.06em; flex-shrink:0;
}
.sg { color:var(--green); }
.cursor {
  display:inline-block; width:7px; height:13px;
  background:var(--green); margin-left:3px; vertical-align:middle;
  animation:blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.footer {
  text-align:center; font-size:11px; color:var(--muted); letter-spacing:.06em;
  padding:.6rem var(--pad-x) 1.4rem;
  border-top:.5px solid var(--border); flex-shrink:0;
}

/* ══ RESPONSIVE ══ */

/* Tablet */
@media (max-width:860px) {
  #page-about { gap:2rem; }
}

/* Mobile */
@media (max-width:640px) {
  .nav-links {
    display:none; flex-direction:column; align-items:stretch; gap:.2rem;
    position:absolute; top:var(--nav-h); left:0; right:0;
    background:rgba(14,14,15,.98);
    padding:1rem var(--pad-x) 1.5rem;
    border-bottom:.5px solid var(--border);
  }
  .nav-links.open { display:flex; }
  .nav-links li a { padding:10px 14px; font-size:13px; }
  .nav-hamburger { display:flex; }
  .nav-right { margin-left:auto; }
  .nav-status-text { display:none; }

  .interests-grid { grid-template-columns:1fr; }
  .interests-stack { grid-template-columns: 1fr; }
  .ic.music { grid-column: 1; }
  #page-contact { max-width:100%; }
  .cl-value { font-size:12px; }
  .bottombar { flex-direction:column; align-items:flex-start; gap:.25rem; }
  .empty-state { padding:1.75rem 1.5rem; }
}

/* Small mobile */
@media (max-width:380px) {
  :root { --pad-x:1rem; }
  .name-wrap { font-size:30px; }
  .role2 { font-size:13px; letter-spacing:.18em; }
  .soc-btn { padding:6px 11px; font-size:11px; }
}

/* Wide screens */
@media (min-width:1400px) {
  :root { --pad-x: 4rem; }
}