/* ─── Font Faces ─── */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─── Custom Properties ─── */
:root {
  --bg:      #04080c;
  --bg2:     #070e12;
  --em:      #34d399;
  --em2:     #6ee7b7;
  --em3:     #10b981;
  --border:  rgba(52,211,153,.15);
  --surface: rgba(10,22,16,.65);
  --text:    #c8ffe8;
  --muted:   #607060;
  --mono:    'Geist Mono', monospace;
  --sans:    'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --terminal:'Geist Mono','Consolas','Monaco','Courier New', monospace;
  --clock-font:'Geist Mono', monospace;
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: url('../img/cursor.png'), auto;
}
a, button, .btn, .sk-card, .pj-card, .soc-card, .easter-close, .ac-card {
  cursor: url('../img/finger.png'), pointer;
}

/* ─── Canvas / Background Effects ─── */
#bg-matrix { position: fixed; inset: 0; opacity: 0.04; pointer-events: none; z-index: 0; }
#mc { position: absolute; inset: 0; opacity: 0.22; pointer-events: none; z-index: 0; }

body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg,transparent,transparent 3px,rgba(0,0,0,.08) 3px,rgba(0,0,0,.08) 4px);
  pointer-events: none; z-index: 1;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle,rgba(52,211,153,.09) 1px,transparent 1px);
  background-size: 28px 28px;
  pointer-events: none; z-index: 0;
}

main { position: relative; z-index: 2; }
.container { width: min(1100px, 92vw); margin-inline: auto; }

/* ─── SVG Icon Helper ─── */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}
.icon-lg { font-size: 1.6rem; }
.icon-md { font-size: 1.1rem; }
.icon-sm { font-size: .85rem; }

/* ─── Boot Screen ─── */
#boot {
  position: fixed; inset: 0; z-index: 9999;
  background: #04080c; color: var(--em);
  font-family: var(--terminal); font-size: 0.9rem; line-height: 1.65;
  padding: 40px 6vw; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
}
#boot.done { animation: bootFade .55s ease forwards; }
@keyframes bootFade { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#boot::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(52,211,153,.05) 2px,rgba(52,211,153,.05) 3px);
  pointer-events: none;
}
.boot-hdr { color: var(--em2); margin-bottom: 14px; letter-spacing: .04em; }
.boot-hdr .boot-ver { color: var(--muted); }
#boot-log div { white-space: pre-wrap; opacity: 0; animation: bootLine .18s ease forwards; }
@keyframes bootLine { to { opacity: 1; } }
.boot-ok { color: var(--em); }
.boot-warn { color: #fbbf24; }
.boot-dim { color: var(--muted); }
.boot-white { color: #e5e7eb; }
.boot-skip {
  position: absolute; bottom: 24px; right: 28px;
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  letter-spacing: .15em; border: 1px solid var(--border);
  padding: 8px 14px; background: transparent; text-transform: uppercase;
}
.boot-skip:hover { color: var(--em); border-color: var(--em); }

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(4,8,12,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1100px, 92vw); margin-inline: auto; gap: 16px;
}
.nav-logo {
  font-family: var(--mono); color: var(--em); font-size: 1rem;
  letter-spacing: .1em; text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--muted); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: .72rem; color: var(--muted);
  text-decoration: none; letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s; position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--em); transition: width .25s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--em); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 4px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--em);
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero Section ─── */
#hero {
  padding: 120px 0 80px; position: relative;
  overflow: hidden; min-height: 100vh; display: flex; align-items: center;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(52,211,153,.12) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
  animation: glow 6s ease-in-out infinite; z-index: 1;
}
@keyframes glow { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: var(--mono); font-size: .7rem; color: var(--em3);
  letter-spacing: .25em; text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 40px; height: 1px; background: var(--em3); }
h1.hero-name { font-size: clamp(3.2rem,7vw,6.5rem); font-weight: 800; line-height: .95; letter-spacing: -.02em; color: #fff; margin-bottom: 8px; }
h1.hero-name .em { color: var(--em); }
.hero-handle { font-family: var(--mono); font-size: 1rem; color: var(--muted); margin-bottom: 32px; }
.hero-handle span { color: var(--em2); }
.hero-type {
  font-family: var(--terminal); font-size: 1.05rem; color: #9ca3af;
  line-height: 1.7; max-width: 540px; margin-bottom: 44px; min-height: 3.4em;
}
.hero-type .tw-cur {
  display: inline-block; width: 9px; height: 1.1em; background: var(--em);
  vertical-align: text-bottom; animation: blink .9s step-end infinite; margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-family: var(--mono); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: all .25s; border: 0;
}
.btn-primary {
  background: var(--em); color: #000;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover { background: var(--em2); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(52,211,153,.3); }
.btn-ghost { border: 1px solid var(--border); color: var(--em); background: transparent; }
.btn-ghost:hover { border-color: var(--em); background: rgba(52,211,153,.08); transform: translateY(-2px); }
.av-wrap { position: relative; flex-shrink: 0; z-index: 10; }
.av-spin { width: 220px; height: 220px; border-radius: 50%; position: relative; }
.av-spin::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--em), transparent, var(--em3), transparent, var(--em));
  animation: spinring 4s linear infinite;
}
@keyframes spinring { to { transform: rotate(360deg); } }
.av-spin img { position: relative; z-index: 1; width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.av-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: var(--bg2); border: 1px solid var(--em); border-radius: 6px;
  padding: 4px 10px; font-family: var(--mono); font-size: .65rem; color: var(--em);
  letter-spacing: .05em; z-index: 20;
}

/* ─── Section Shared ─── */
section { padding: 96px 0; position: relative; }
.sh-eye {
  font-family: var(--mono); font-size: .68rem; color: var(--em3);
  letter-spacing: .25em; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.sh-eye::before { content: ''; width: 28px; height: 1px; background: var(--em3); }
.sh-title { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 48px; }
.sh-title span { color: var(--em); }
.divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(52,211,153,.25), transparent); position: relative; z-index: 2; }
.alt-bg { background: rgba(6,14,10,.75); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── Skills Cards ─── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.sk-card, .pj-card {
  background: var(--surface); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s; border: 1px solid transparent;
}
.sk-card::before, .pj-card::before {
  content: ''; position: absolute; inset: 0; padding: 1px;
  background: radial-gradient(350px circle at var(--mouse-x) var(--mouse-y), rgba(52,211,153,0.8), transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
.sk-card::after, .pj-card::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--border); z-index: 1; pointer-events: none; }
.sk-card:hover::before, .pj-card:hover::before { opacity: 1; }
.sk-card { padding: 28px 28px 24px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.sk-card:hover, .pj-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 15px rgba(52,211,153,0.05); }
.sk-card > *, .pj-card > * { position: relative; z-index: 2; }
.sk-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; color: var(--em); }
.sk-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sk-desc { font-size: .82rem; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.sk-bar { height: 3px; background: rgba(52,211,153,.12); border-radius: 99px; overflow: hidden; }
.sk-fill { height: 100%; background: linear-gradient(90deg, var(--em3), var(--em2)); border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }

/* ─── Project Cards ─── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.pj-card { padding: 32px; display: flex; flex-direction: column; }
.pj-num { font-family: var(--mono); font-size: .65rem; color: var(--em3); letter-spacing: .2em; margin-bottom: 16px; }
.pj-name { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.pj-tag, .pj-archived { font-family: var(--mono); font-size: .6rem; padding: 2px 8px; border-radius: 3px; white-space: nowrap; margin-top: 3px; flex-shrink: 0; }
.pj-tag { color: var(--em); border: 1px solid rgba(52,211,153,.3); }
.pj-archived { color: #ffd600; border: 1px solid #ffd600; }
.pj-desc { font-size: .86rem; color: #9ca3af; line-height: 1.65; flex: 1; margin-bottom: 22px; }
.pj-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill { font-family: var(--mono); font-size: .65rem; color: var(--em2); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2); padding: 3px 10px; border-radius: 3px; letter-spacing: .05em; }
.pj-link {
  font-family: var(--mono); font-size: .72rem; color: var(--em);
  text-decoration: none; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px; transition: gap .2s; margin-top: auto;
}
.pj-link:hover { gap: 12px; }

/* ─── Activity (GitHub Stats) ─── */
.act-sub-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-family: var(--mono); font-size: .78rem;
  color: var(--em2); letter-spacing: .12em; text-transform: uppercase;
  border-left: 3px solid var(--em); padding-left: 12px;
}
.act-sub-head + .gh-grid { margin-top: 0; }

.gh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.gh-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px; display: flex; align-items: center; justify-content: center;
  min-height: 190px; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.gh-card img { max-width: 100%; height: auto; display: block; }
.gh-streak { grid-column: 1 / -1; }
.gh-fallback {
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
  text-align: center; padding: 24px;
}

/* ─── Academic Cards ─── */
.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.ac-card {
  background: rgba(8,18,14,.85);
  border: 1px solid rgba(52,211,153,.12);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ac-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 14px;
  background: radial-gradient(ellipse 60% 40% at 20% 80%, rgba(52,211,153,.06), transparent);
  pointer-events: none;
}
.ac-card:hover { transform: translateY(-4px); border-color: rgba(52,211,153,.3); box-shadow: 0 12px 40px rgba(52,211,153,.08); }

.ac-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }

.ac-icon-wrap { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.ac-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--em);
}
.ac-icon-badge {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(8,18,14,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem;
}
.ac-badge-done { background: #14532d; color: #4ade80; border-color: rgba(8,18,14,.9); }
.ac-badge-prog { background: #78350f; color: #fbbf24; border-color: rgba(8,18,14,.9); }

.ac-status-info { text-align: right; }
.ac-status {
  display: inline-block;
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
  margin-bottom: 5px;
}
.ac-status-done { background: rgba(20,83,45,.6); color: #4ade80; border: 1px solid rgba(74,222,128,.25); }
.ac-status-prog { background: rgba(120,53,15,.6); color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.ac-period {
  display: block; font-family: var(--mono); font-size: .65rem;
  color: var(--muted); letter-spacing: .05em;
}

.ac-title {
  font-size: 2rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin-bottom: 18px;
}

.ac-label-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.ac-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--em); flex-shrink: 0;
}
.ac-dot-prog { background: #f59e0b; }
.ac-label {
  font-family: var(--mono); font-size: .6rem;
  color: rgba(200,255,232,.5); letter-spacing: .18em; text-transform: uppercase;
}

.ac-subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .68rem;
  padding: 5px 12px; border-radius: 8px;
  color: var(--em2);
  background: rgba(52,211,153,.07);
  border: 1px solid rgba(52,211,153,.2);
  letter-spacing: .03em; transition: background .2s;
}
.ac-chip:hover { background: rgba(52,211,153,.12); }
.ac-chip-prog {
  color: #fbbf24;
  background: rgba(251,191,36,.06);
  border-color: rgba(251,191,36,.25);
}

/* ─── About / Stats / Terminal ─── */
.stats-row { display: flex; gap: 0; border: 1px solid var(--border); overflow: hidden; margin-bottom: 56px; }
.stat-box { flex: 1; padding: 28px 24px; border-right: 1px solid var(--border); text-align: center; }
.stat-box:last-child { border-right: none; }
.stat-n { font-family: var(--mono); font-size: 2.2rem; font-weight: 800; color: var(--em); display: block; }
.stat-n.has-plus::after { content: '+'; font-size: 1rem; vertical-align: middle; margin-left: 2px; }
.stat-l { font-family: var(--mono); font-size: .65rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; margin-top: 6px; }

.terminal { background: #080d11; border: 1px solid rgba(52,211,153,.25); border-radius: 0; overflow: hidden; max-width: 700px; box-shadow: 0 0 80px rgba(52,211,153,.08); }
.term-bar {
  background: #111820; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(52,211,153,.15);
  cursor: url('../img/finger.png'), pointer;
  user-select: none;
  transition: background .2s;
}
.term-bar:hover { background: #162030; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.d-r { background: #ef4444; } .d-y { background: #f59e0b; } .d-g { background: var(--em); }
.term-title { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-left: 8px; }
.term-body { padding: 24px 28px; font-family: var(--mono); font-size: .85rem; line-height: 2; color: #9ca3af; }
.t-p { color: var(--em); } .t-c { color: #fff; } .t-s { color: #fbbf24; } .t-k { color: var(--em2); } .t-v { color: #93c5fd; } .t-dim { color: var(--muted); }
.t-cur { display: inline-block; width: 8px; height: 16px; background: var(--em); vertical-align: middle; animation: blink .9s step-end infinite; }

/* ─── Updates Cards ─── */
.upd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.upd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.upd-card::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--border); z-index: 1; pointer-events: none; }
.upd-card:hover { transform: translateY(-3px); border-color: rgba(52,211,153,.3); }
.upd-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; flex-wrap: wrap; }
.upd-time { font-family: var(--mono); font-size: .62rem; color: var(--muted); letter-spacing: .05em; display: flex; align-items: center; gap: 5px; }
.upd-time .icon { color: var(--em3); }
.upd-new {
  font-family: var(--mono); font-size: .55rem; letter-spacing: .18em;
  text-transform: uppercase; background: var(--em); color: #000;
  padding: 2px 8px; border-radius: 3px; font-weight: 700;
}
.upd-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.upd-desc { font-size: .82rem; color: #9ca3af; line-height: 1.6; margin-bottom: 10px; }
.upd-content { font-size: .78rem; color: var(--muted); line-height: 1.6; font-family: var(--mono); border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 6px; }
.upd-empty { font-family: var(--mono); color: var(--muted); font-size: .8rem; }

/* ─── Social Grid ─── */
.soc-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-start; }
.soc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; background: var(--surface);
  border: 1px solid var(--border); text-decoration: none;
  transition: border-color .25s, transform .25s, background .25s;
  flex: 0 1 auto; min-width: 180px;
}
.soc-card:hover { border-color: var(--em); background: rgba(52,211,153,.1); transform: translateY(-3px); }
.soc-ic { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.2); border-radius: 4px; font-size: 1rem; flex-shrink: 0; color: var(--em); }
.soc-plat { font-family: var(--mono); font-size: .6rem; color: var(--em3); letter-spacing: .15em; text-transform: uppercase; }
.soc-handle { font-family: var(--terminal); font-size: .8rem; font-weight: 600; color: #e5e7eb; white-space: nowrap; }

/* ─── Clock Widget ─── */
#clock-widget {
  position: fixed; top: 90px; right: 24px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); padding: 10px 18px; border-radius: 12px;
  z-index: 90; text-align: right;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); pointer-events: none;
}
#clock-time { font-family: var(--clock-font); color: var(--em); font-size: 1.25rem; font-weight: 700; display: block; letter-spacing: .05em; }
#clock-date { font-family: var(--mono); color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; display: block; margin-top: 2px; }

/* ─── Easter Egg Modal ─── */
#easter {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(4,8,12,.88); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
#easter.open { display: flex; animation: bootLine .25s ease forwards; }
.easter-term {
  width: min(720px, 100%);
  background: #080d11; border: 1px solid var(--em);
  box-shadow: 0 0 80px rgba(52,211,153,.35); overflow: hidden; position: relative;
}
.easter-close {
  position: absolute; top: 10px; right: 14px;
  background: transparent; border: 0;
  color: var(--muted); font-family: var(--mono); font-size: .75rem; letter-spacing: .1em;
}
.easter-close:hover { color: var(--em); }
.easter-body {
  padding: 28px 28px 32px; font-family: var(--mono);
  font-size: .88rem; line-height: 1.95; color: #9ca3af; min-height: 280px;
}
.easter-body .line { white-space: pre-wrap; }
#egg-toast {
  position: fixed;
  bottom: 72px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(7,14,18,.96);
  border: 1px solid var(--em);
  color: var(--em);
  font-family: var(--mono);
  font-size: .72rem;
  padding: 10px 22px;
  border-radius: 4px;
  letter-spacing: .1em;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 9990;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(52,211,153,.15);
}
#egg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Footer ─── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; position: relative; z-index: 2; }
.ft-sig { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.ft-sig a { color: var(--em); text-decoration: none; }
.ft-sig a:hover { text-decoration: underline; }
.ft-hint { font-family: var(--mono); font-size: .65rem; color: var(--muted); letter-spacing: .12em; margin-top: 10px; opacity: .5; }

/* ─── Fade-in Animations ─── */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: none; }

/* ─── Focus-visible ─── */
:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
.boot-skip:focus-visible,
.easter-close:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 2px;
}

/* ─── Mobile ─── */
@media(max-width:760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .av-wrap { justify-self: center; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4,8,12,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px calc(min(1100px, 92vw) * 0.04);
    font-size: .8rem;
  }
  .stats-row { flex-wrap: wrap; }
  .stat-box { flex: 1 1 50%; }
  #clock-widget { top: 80px; right: 16px; padding: 8px 14px; }
  .soc-grid { justify-content: center; }
  .ac-grid { grid-template-columns: 1fr; }
  .gh-grid { grid-template-columns: 1fr; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-glow { animation: none; opacity: .8; }
  .av-spin::before { animation: none; }
  .fade { opacity: 1; transform: none; transition: none; }
  #boot { display: none; }
  #mc, #bg-matrix { display: none; }
  body::after, body::before { display: none; }
  .tw-cur { animation: none; opacity: 1; }
  .t-cur { animation: none; opacity: 1; }
}
