:root {
  --bg: #F0F6FF;
  --bg2: #E0EAFF;
  --t1: #0F172A;
  --t2: #475569;
  --t3: #94A3B8;
  --ac: #2563EB;
  --ac2: #6366F1;
  --navbg: rgba(240, 246, 255, .92);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --good: #22C55E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, .2); border-radius: 2px; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 44px; }

/* ---------- Glass card ---------- */
.gc {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 24px 60px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  border-radius: 20px;
}
.neon { text-shadow: 0 0 30px rgba(37, 99, 235, .65), 0 0 80px rgba(37, 99, 235, .22); }
.neon-btn { box-shadow: 0 0 22px rgba(37, 99, 235, .4), 0 0 60px rgba(37, 99, 235, .14); }

/* ---------- Background canvas + orb ---------- */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#bg-orb {
  position: fixed; pointer-events: none; z-index: 0; left: 50%; top: 48%;
  width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, .13) 0%, rgba(79, 70, 229, .06) 38%, transparent 68%);
  border-radius: 50%; animation: orb-drift 9s ease-in-out infinite; transition: opacity .6s;
}
@keyframes orb-drift { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-48%, -52%) scale(1.06); } }

/* ---------- Floating avatar ---------- */
#fav {
  position: fixed; z-index: 152; border-radius: 50%; overflow: hidden; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .35), 0 0 40px rgba(37, 99, 235, .22);
  left: 50%; top: 320px; width: 180px; height: 180px; transform: translateX(-50%);
  opacity: 0;
  transition: left .28s cubic-bezier(.22,.61,.36,1), top .28s cubic-bezier(.22,.61,.36,1),
              width .28s cubic-bezier(.22,.61,.36,1), height .28s cubic-bezier(.22,.61,.36,1),
              opacity .35s ease, box-shadow .3s;
  will-change: left, top, width, height, opacity;
}
#fav.ready { opacity: 1; }
#fav-fb {
  position: absolute; inset: 0; background: linear-gradient(135deg, #0D1425 0%, #1A2744 100%);
  z-index: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; color: rgba(37, 99, 235, .85); font-size: 28px;
}
#fav-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  border-radius: 50%; z-index: 2;
}

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav__inner { max-width: 1320px; margin: 0 auto; padding: 0 44px; height: 64px; display: flex; align-items: center; }
.nav__logo { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--ac); letter-spacing: -.02em; flex-shrink: 0; }
.nav__links { display: flex; gap: 1px; margin-left: 28px; flex: 1; }
.nav__links a {
  font-size: 13px; color: var(--t2); padding: 5px 10px; border-radius: 8px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav__links a:hover { color: var(--t1); background: rgba(255, 255, 255, .07); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav__btn {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--t2);
  background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  border-radius: 7px; padding: 5px 12px; letter-spacing: .12em; transition: all .2s;
}
.nav__btn:hover { color: var(--ac); box-shadow: 0 0 0 1px rgba(37, 99, 235, .4); }
.nav__icon {
  font-size: 14px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: var(--t2); transition: all .2s;
}
.nav__icon:hover { color: var(--ac); box-shadow: 0 0 0 1px rgba(37, 99, 235, .4); }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; z-index: 1; padding: 80px 44px;
}
.hero__inner { position: relative; z-index: 2; max-width: 800px; width: 100%; animation: float-in .85s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero__kicker { font-family: var(--mono); font-size: 11px; color: var(--ac); letter-spacing: .22em; text-transform: uppercase; opacity: .55; margin-bottom: 36px; }
.hero__title { font-family: var(--mono); line-height: .9; letter-spacing: -.05em; margin-bottom: 24px; font-size: clamp(48px, 9vw, 118px); }
.hero__last { font-weight: 300; color: var(--t1); }
.hero__first { font-weight: 700; color: var(--ac); }
.hero__cursor { animation: cursor-blink 1.1s step-end infinite; font-weight: 300; opacity: .7; font-size: .72em; margin-left: 5px; }
@keyframes cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero__rings-wrap { height: 210px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 24px; }
.hero__rings { position: relative; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring--1 { inset: -38px; border: 1px dashed rgba(37, 99, 235, .18); animation: spin-cw 28s linear infinite; }
.ring--2 { inset: -20px; border: 1px solid rgba(37, 99, 235, .07); animation: spin-ccw 18s linear infinite; }
@keyframes spin-cw { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
.dot { position: absolute; border-radius: 50%; flex-shrink: 0; }
.dot--top { top: -10px; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; background: var(--ac); animation: glow-pulse 2s ease-in-out infinite; }
.dot--right { right: -10px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--ac2); opacity: .85; }
.dot--bottom { bottom: -10px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; background: var(--ac); opacity: .45; }
.dot--left { left: -10px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background: var(--ac2); opacity: .6; }
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 12px rgba(37, 99, 235, .5); } 50% { box-shadow: 0 0 28px rgba(37, 99, 235, 1), 0 0 60px rgba(37, 99, 235, .35); } }

.hero__role-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.hero__role-row .rule { width: 36px; height: 1px; background: var(--ac); opacity: .3; }
.hero__role { font-size: 16px; color: var(--t2); letter-spacing: .04em; }
.hero__badges { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 44px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 11px; color: var(--ac); background: rgba(37, 99, 235, .08);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .22); border-radius: 6px; padding: 4px 11px; letter-spacing: .08em;
}
.hero__cta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-primary {
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: #070B18; background: var(--ac);
  border-radius: 11px; padding: 13px 30px; display: inline-flex; align-items: center; gap: 8px; transition: all .25s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); }
.btn-ghost {
  font-family: var(--mono); font-size: 13px; color: var(--t1); background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); border-radius: 11px; padding: 13px 30px;
  display: inline-flex; align-items: center; gap: 8px; transition: all .25s;
}
.btn-ghost:hover { box-shadow: 0 0 0 1px rgba(37, 99, 235, .4); color: var(--ac); }
.hero__loc { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--t3); }
.hero__loc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; box-shadow: 0 0 10px rgba(34, 197, 94, .9); flex-shrink: 0; }

.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--ac), transparent); animation: scroll-drip 2.6s ease-in-out infinite; opacity: .55; transform-origin: top; }
@keyframes scroll-drip { 0%, 100% { opacity: .35; transform: scaleY(1); } 50% { opacity: .8; transform: scaleY(1.25); } }
.hero__scroll-label { font-family: var(--mono); font-size: 9px; color: var(--t3); letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Bento dashboard ---------- */
.bento { position: relative; z-index: 2; padding: 0 44px 72px; }
.bento__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.bento-card { padding: 26px; }
.bento-card__label { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }

.card-greeting { grid-column: span 1; padding: 32px; position: relative; overflow: hidden; min-height: 190px; }
.card-greeting__label { font-family: var(--mono); font-size: 10px; color: var(--ac); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; opacity: .75; }
.card-greeting__title { font-family: var(--mono); font-size: clamp(20px, 2.2vw, 30px); font-weight: 300; color: var(--t1); line-height: 1.18; letter-spacing: -.03em; margin-bottom: 12px; white-space: pre-line; }
.card-greeting__desc { font-size: 14px; color: var(--t2); line-height: 1.65; max-width: 340px; position: relative; z-index: 1; }
.card-greeting__link {
  font-family: var(--mono); font-size: 11px; color: var(--ac); background: rgba(37, 99, 235, .09);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .22); border-radius: 7px; padding: 5px 13px;
  display: inline-flex; align-items: center; gap: 5px; transition: all .2s; margin-top: 18px;
}
.card-greeting__link:hover { background: rgba(37, 99, 235, .16); }

.card-status__row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px rgba(34, 197, 94, .9); flex-shrink: 0; }
.card-status__label { font-size: 14px; font-weight: 500; color: var(--t1); }
.card-status__desc { font-size: 13px; color: var(--t2); line-height: 1.55; margin-bottom: 20px; }
.card-status__foot { padding-top: 18px; box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
.card-status__foot-label { font-family: var(--mono); font-size: 9px; color: var(--t3); letter-spacing: .14em; margin-bottom: 5px; }
.card-status__foot-value { font-size: 14px; color: var(--t1); }
.card-status__foot-sub { font-size: 12px; color: var(--t3); }

.stack-bar { margin-bottom: 11px; }
.stack-bar:last-child { margin-bottom: 0; }
.stack-bar__row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.stack-bar__name { font-family: var(--mono); font-size: 12px; color: var(--t1); }
.stack-bar__pct { font-family: var(--mono); font-size: 11px; color: var(--ac); }
.stack-bar__track { height: 3px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.stack-bar__fill { height: 100%; background: linear-gradient(to right, var(--ac), var(--ac2)); border-radius: 2px; box-shadow: 0 0 8px rgba(37, 99, 235, .5); }

.card-activity__num { font-family: var(--mono); font-size: 52px; font-weight: 700; color: var(--ac); line-height: 1; margin-bottom: 3px; text-shadow: 0 0 30px rgba(37, 99, 235, .5); }
.card-activity__label { font-size: 13px; color: var(--t2); margin-bottom: 18px; }
.card-activity__bars { display: flex; align-items: flex-end; gap: 4px; height: 42px; }
.card-activity__bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--ac), var(--ac2)); box-shadow: 0 0 5px rgba(37, 99, 235, .25); }

.card-blog { cursor: pointer; transition: transform .3s; }
.card-blog:hover { transform: translateY(-4px); }
.card-blog__tag {
  font-family: var(--mono); font-size: 10px; color: var(--ac); background: rgba(37, 99, 235, .09);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .2); border-radius: 4px; padding: 3px 8px; letter-spacing: .08em;
  display: inline-block; margin-bottom: 10px;
}
.card-blog__title { font-size: 14px; font-weight: 500; color: var(--t1); line-height: 1.42; margin-bottom: 7px; }
.card-blog__date { font-family: var(--mono); font-size: 11px; color: var(--t3); }
.card-blog__read { font-family: var(--mono); font-size: 11px; color: var(--ac); margin-top: 14px; }

.card-now { position: relative; overflow: hidden; }
.card-now__label { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.card-now__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 8px rgba(37, 99, 235, 1); display: inline-block; }
.card-now__row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-now__art {
  width: 42px; height: 42px; border-radius: 9px; background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(79, 70, 229, .2));
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.card-now__art img { width: 100%; height: 100%; object-fit: cover; }
.card-now__track { font-size: 13px; font-weight: 500; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-now__artist { font-size: 11px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.eq span { width: 5px; border-radius: 2px 2px 0 0; background: var(--ac); box-shadow: 0 0 6px rgba(37, 99, 235, .5); }
.eq span:nth-child(1) { animation: eq1 1.2s ease-in-out infinite; }
.eq span:nth-child(2) { animation: eq2 .95s ease-in-out infinite; }
.eq span:nth-child(3) { animation: eq3 1.4s ease-in-out infinite; background: var(--ac2); box-shadow: 0 0 6px rgba(79, 70, 229, .5); }
.eq span:nth-child(4) { animation: eq4 .88s ease-in-out infinite; background: var(--ac2); box-shadow: 0 0 6px rgba(79, 70, 229, .5); }
.eq span:nth-child(5) { animation: eq5 1.1s ease-in-out infinite; }
.eq span:nth-child(6) { animation: eq1 1.35s ease-in-out infinite .2s; }
@keyframes eq1 { 0%, 100% { height: 6px; } 50% { height: 28px; } }
@keyframes eq2 { 0%, 100% { height: 22px; } 33% { height: 7px; } 66% { height: 30px; } }
@keyframes eq3 { 0%, 100% { height: 12px; } 40% { height: 34px; } 70% { height: 9px; } }
@keyframes eq4 { 0%, 100% { height: 8px; } 25% { height: 26px; } 75% { height: 14px; } }
@keyframes eq5 { 0%, 100% { height: 20px; } 60% { height: 5px; } }
.card-now--empty { color: var(--t3); font-size: 13px; text-align: center; padding: 12px 0; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; padding: 72px 44px; }
.section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; }
.section__num { font-family: var(--mono); font-size: 12px; color: var(--ac); font-weight: 500; }
.section__dot { color: var(--t3); font-size: 18px; line-height: 1; }
.section__label { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: .22em; text-transform: uppercase; }
.section__rule { flex: 1; height: 1px; background: rgba(255, 255, 255, .07); margin-left: 8px; }
.section__link { font-family: var(--mono); font-size: 11px; color: var(--ac); transition: opacity .2s; }
.section__link:hover { opacity: .65; }
.section__title {
  font-family: var(--mono); font-size: clamp(24px, 3vw, 44px); font-weight: 300; color: var(--t1);
  line-height: 1.18; letter-spacing: -.035em; margin-bottom: 28px; white-space: pre-line;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: start; }
.about__p1 { font-size: 16px; line-height: 1.8; color: var(--t2); max-width: 520px; margin-bottom: 16px; white-space: pre-line; }
.about__p2 { font-size: 14px; line-height: 1.75; font-style: italic; color: var(--t3); max-width: 510px; white-space: pre-line; }
.facts-card { padding: 26px; position: sticky; top: 80px; }
.facts-card__label { font-family: var(--mono); font-size: 10px; color: var(--ac); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; opacity: .8; }
.facts__item { padding: 11px 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.facts__item-label { font-family: var(--mono); font-size: 9px; color: var(--t3); letter-spacing: .14em; margin-bottom: 4px; }
.facts__item-value { font-size: 14px; color: var(--t1); }

/* ---------- Interests ---------- */
.interests-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.interest-card { padding: 28px 22px; text-align: center; cursor: default; transition: transform .3s; }
.interest-card:hover { transform: translateY(-6px); }
.interest-card__icon { font-size: 30px; margin-bottom: 14px; }
.interest-card__name { font-size: 15px; font-weight: 500; color: var(--t1); margin-bottom: 6px; }
.interest-card__desc { font-size: 12px; color: var(--t3); line-height: 1.55; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.skill-card { padding: 24px 26px; }
.skill-card__cat { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--ac2); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.skill-card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  font-family: var(--mono); font-size: 11px; color: var(--t2); background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); border-radius: 6px; padding: 4px 10px; transition: all .2s;
}
.skill-tag:hover { box-shadow: 0 0 0 1px rgba(37, 99, 235, .38); color: var(--ac); }
.skill-tag--hl { color: var(--ac); box-shadow: 0 0 0 1px rgba(37, 99, 235, .3); }

/* ---------- Education ---------- */
.edu-list { display: flex; flex-direction: column; gap: 18px; }
.edu-card { padding: 28px 30px; }
.edu-card__period { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ac); margin-bottom: 10px; }
.edu-card__inst { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--t1); margin-bottom: 6px; letter-spacing: -.02em; }
.edu-card__major { font-size: 14px; color: var(--t2); margin-bottom: 12px; }
.edu-card__desc { font-size: 14px; color: var(--t2); line-height: 1.75; max-width: 640px; white-space: pre-line; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.project-card {
  padding: 30px; cursor: default; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(37, 99, 235, .2), 0 32px 72px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12); }
.project-card__num {
  position: absolute; top: 16px; right: 20px; font-family: var(--mono); font-size: 68px; font-weight: 700;
  color: var(--ac); opacity: .042; line-height: 1; pointer-events: none; user-select: none;
}
.project-card__tag { font-family: var(--mono); font-size: 10px; color: var(--ac); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.project-card__title { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--t1); margin-bottom: 12px; letter-spacing: -.022em; line-height: 1.22; }
.project-card__metrics { font-family: var(--mono); font-size: 11px; color: var(--ac2); margin-bottom: 10px; }
.project-card__desc { font-size: 14px; color: var(--t2); line-height: 1.68; margin-bottom: 22px; flex: 1; }
.project-card__stack { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.project-card__stack span { font-family: var(--mono); font-size: 11px; color: var(--t3); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); border-radius: 5px; padding: 3px 9px; }
.project-card__link { font-family: var(--mono); font-size: 12px; color: var(--ac); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; transition: opacity .2s; position: relative; z-index: 1; }
.project-card__link:hover { opacity: .7; }

/* ---------- Blog ---------- */
.blog-feed { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.blog-empty { color: var(--t3); font-size: 14px; padding: 20px 0; }
.post-card { padding: 32px; }
.post-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.post-card__meta-date { font-family: var(--mono); font-size: 11px; color: var(--t3); }
.post-card__title { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--t1); letter-spacing: -.022em; margin-bottom: 12px; line-height: 1.3; }
.post-card__body { font-size: 14px; color: var(--t2); line-height: 1.7; margin-bottom: 22px; white-space: pre-wrap; }
.post-card__photos { display: grid; gap: 6px; margin-bottom: 20px; grid-template-columns: repeat(2, 1fr); }
.post-card__photos--n1 { grid-template-columns: 1fr; }
.post-card__photo { position: relative; display: block; padding: 0; border: none; background: rgba(255, 255, 255, .04); cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; }
.post-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.post-card__photo:hover img { transform: scale(1.04); }
.reactions { display: flex; gap: 7px; flex-wrap: wrap; }
.reaction {
  display: flex; align-items: center; gap: 5px; font-size: 13px; background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); border-radius: 7px; padding: 5px 11px; color: var(--t2);
  transition: all .2s; cursor: pointer; min-height: 34px;
}
.reaction:hover { box-shadow: 0 0 0 1px rgba(37, 99, 235, .32); }
.reaction--active { box-shadow: 0 0 0 1px rgba(37, 99, 235, .5); color: var(--ac); }
.reaction__count { font-family: var(--mono); font-size: 11px; color: var(--t3); }
.reaction--active .reaction__count { color: var(--ac); }
.blog-more-wrap { text-align: center; }
.ghost-btn {
  font-family: var(--mono); font-size: 13px; color: var(--t1); background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); border-radius: 10px; padding: 12px 34px; transition: all .2s;
  min-height: 44px;
}
.ghost-btn:hover { box-shadow: 0 0 0 1px rgba(37, 99, 235, .4); color: var(--ac); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4, 6, 14, .94); display: flex; align-items: center; justify-content: center; }
.lightbox.hidden { display: none; }
.lightbox__img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  border: none; color: var(--t1); cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px; transition: all .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(37, 99, 235, .16); color: var(--ac); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--t3); }

/* ---------- Music ---------- */
.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.music-now-card { padding: 32px; position: relative; overflow: hidden; }
.music-now-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, .07), transparent 55%); pointer-events: none; }
.music-now-card__label { font-family: var(--mono); font-size: 10px; color: var(--ac); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; opacity: .8; }
.music-now-card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px rgba(37, 99, 235, .9); display: inline-block; animation: glow-pulse 1.6s ease-in-out infinite; }
.music-now-card__row { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; position: relative; z-index: 1; }
.music-now-card__art { width: 76px; height: 76px; border-radius: 12px; background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(79, 70, 229, .22)); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; box-shadow: 0 0 24px rgba(37, 99, 235, .18); overflow: hidden; }
.music-now-card__art img { width: 100%; height: 100%; object-fit: cover; }
.music-now-card__track { font-size: 18px; font-weight: 600; color: var(--t1); margin-bottom: 4px; }
.music-now-card__artist { font-size: 14px; color: var(--t2); margin-bottom: 4px; }
.music-now-card__link { font-family: var(--mono); font-size: 12px; color: var(--ac); margin-top: 14px; display: inline-block; position: relative; z-index: 1; }
.music-now-card--empty { color: var(--t3); text-align: center; padding: 30px 0; position: relative; z-index: 1; }
.music-now-card--empty .music-now-card__ph { font-size: 32px; margin-bottom: 10px; opacity: .5; }

.music-top-card { padding: 30px; }
.music-top-card__label { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.top-cols { display: grid; grid-template-columns: 1fr; gap: 20px; }
.top-col__label { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.top-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; cursor: default; transition: background .2s; }
.top-item:hover { background: rgba(255, 255, 255, .04); }
.top-item__rank { font-family: var(--mono); font-size: 11px; color: var(--t3); width: 18px; text-align: center; flex-shrink: 0; }
.top-item__img { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(79, 70, 229, .15)); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; overflow: hidden; }
.top-item__img img { width: 100%; height: 100%; object-fit: cover; }
.top-item__text { flex: 1; min-width: 0; }
.top-item__name { font-size: 14px; font-weight: 500; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item__sub { font-size: 12px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item__count { font-family: var(--mono); font-size: 11px; color: var(--t3); flex-shrink: 0; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.contacts__title { font-family: var(--mono); font-size: clamp(24px, 3vw, 42px); font-weight: 300; color: var(--t1); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 22px; }
.contacts__desc { font-size: 15px; color: var(--t2); line-height: 1.7; margin-bottom: 32px; max-width: 380px; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.social-card { padding: 14px 16px; display: flex; align-items: center; gap: 10px; transition: transform .25s; }
.social-card:hover { transform: translateY(-2px); }
.social-card__icon { font-size: 19px; }
.social-card__label { font-size: 13px; font-weight: 500; color: var(--t1); }
.social-card__handle { font-family: var(--mono); font-size: 10px; color: var(--t3); }

.cform { padding: 34px; }
.cform__label { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; }
.cform__fields { display: flex; flex-direction: column; gap: 13px; }
.cform__field-label { font-family: var(--mono); font-size: 10px; color: var(--t3); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 7px; }
.cform__input {
  width: 100%; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--t1); outline: none;
  font-family: var(--sans); transition: box-shadow .2s;
}
.cform__input::placeholder { color: var(--t3); }
.cform__input:focus { box-shadow: 0 0 0 1px rgba(37, 99, 235, .6), 0 0 22px rgba(37, 99, 235, .14); }
.cform__area { resize: vertical; }
.cform__btn {
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: #070B18; background: var(--ac);
  border-radius: 10px; padding: 13px; width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: all .25s; min-height: 46px;
}
.cform__btn:hover { opacity: .88; transform: translateY(-1px); }
.cform__btn:disabled { opacity: .5; cursor: default; transform: none; }
.cform__status { font-family: var(--mono); font-size: 12px; color: var(--t3); text-align: center; }
.cform__status--ok { color: var(--good); }
.cform__status--err { color: #F87171; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; padding: 24px 44px; box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
.footer__inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer span, .footer div { font-family: var(--mono); font-size: 12px; color: var(--t3); }
.footer a { color: var(--ac); transition: opacity .2s; }
.footer a:hover { opacity: .65; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99; padding: 12px 20px 20px;
  background: var(--navbg); backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu.hidden { display: none; }
.mobile-menu a {
  font-family: var(--mono); font-size: 13px; color: var(--t2); padding: 12px 10px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--t1); background: rgba(255, 255, 255, .07); }

/* ---------- Fade-in ---------- */
[data-fade] { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s ease; }
[data-fade].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento__grid { grid-template-columns: 1fr 1fr; }
  .card-greeting { grid-column: span 2; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .interests-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .facts-card { position: static; }
  .music-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container, .nav__inner, .footer__inner { padding-left: 20px; padding-right: 20px; }
  .hero, .section, .bento { padding-left: 20px; padding-right: 20px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .bento__grid { grid-template-columns: 1fr; }
  .card-greeting { grid-column: span 1; }
  .projects-grid, .skills-grid, .interests-grid { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .post-card, .project-card, .cform, .edu-card { padding: 22px; }
  .hero__title { font-size: clamp(40px, 13vw, 72px); }
}
@media (max-width: 480px) {
  .cform__row { flex-direction: column; }
}
