/* ============================================================
   BLAXE // GLASS NIGHT — styles.css
   Black canvas · white outlines · moonlit glassmorphism
   ============================================================ */

:root {
  --bg: #050505;
  --white: #f5f5f5;
  --dim: rgba(245, 245, 245, 0.55);
  --faint: rgba(245, 245, 245, 0.28);
  --line: rgba(245, 245, 245, 0.14);
  --line-strong: rgba(245, 245, 245, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-2: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

::selection { background: var(--white); color: #000; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
a { color: inherit; text-decoration: none; }

/* ============ GLASS SYSTEM (matte, low sheen) ============ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}
.glass-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
}

/* ============ CINEMATIC INTRO ============ */
.intro {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  overflow: hidden;
}
.intro__logo {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  position: relative; z-index: 3;
  animation: introLift 0.9s 1.55s var(--ease) forwards;
}
@keyframes introLift {
  40% { opacity: 1; transform: translateY(0) scale(0.96); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-40px) scale(0.9); filter: blur(6px); }
}
.intro__mark { width: 110px; height: 110px; }
.intro__draw { animation: drawBox 1.1s 0.15s var(--ease) forwards; }
@keyframes drawBox { to { stroke-dashoffset: 0; } }
.intro__b {
  opacity: 0; filter: blur(8px);
  animation: bIn 0.55s 0.85s var(--ease) forwards;
}
@keyframes bIn { to { opacity: 1; filter: blur(0); } }
.intro__word {
  font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 0.55em;
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  animation: wordIn 0.7s 1s var(--ease) forwards;
}
.intro__sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.4em; color: var(--faint);
  opacity: 0; animation: wordIn 0.7s 1.25s var(--ease) forwards;
}
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* expanding circle wipe */
.intro__ring {
  position: absolute; top: 50%; left: 50%;
  width: 140vmax; height: 140vmax; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #050505 0 60%, transparent 61%);
  z-index: 1;
}
.intro__ring--2 {
  width: 141vmax; height: 141vmax;
  background: radial-gradient(circle, transparent 0 59.4%, rgba(255,255,255,.65) 59.8% 60.4%, transparent 60.8%);
  animation: ringExpand 1.25s 1.5s var(--ease) forwards;
}
.intro__ring { animation: ringExpand 1.25s 1.62s var(--ease) forwards; }
@keyframes ringExpand {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.intro.done { opacity: 0; visibility: hidden; transition: opacity 0.5s 0.9s, visibility 0.5s 0.9s; pointer-events: none; }
.intro__ring, .intro__logo { pointer-events: none; }

/* ============ NIGHT SKY ============ */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.nebula {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.nebula--1 {
  width: 70vw; height: 50vh; top: -12vh; left: -14vw;
  background: radial-gradient(ellipse, rgba(140, 150, 255, 0.12), transparent 65%);
  animation: nebulaDrift 46s ease-in-out infinite alternate;
}
.nebula--2 {
  width: 60vw; height: 46vh; bottom: -14vh; right: -12vw;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07), transparent 65%);
  animation: nebulaDrift 58s ease-in-out infinite alternate-reverse;
}
@keyframes nebulaDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 4vh) scale(1.14); }
}

.moon { position: absolute; top: 7vh; right: 9vw; width: 150px; height: 150px; z-index: 1; }
.moon__svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(255,255,255,.25)); animation: moonFloat 9s ease-in-out infinite; }
@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.moon__halo {
  position: absolute; inset: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 62%);
  animation: haloBreathe 7s ease-in-out infinite;
}
@keyframes haloBreathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}
@media (max-width: 760px) { .moon { width: 92px; height: 92px; top: 9vh; right: 7vw; } }

/* --- moonlit clouds (CSS matte glass puffs) --- */
.clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute;
  width: 340px; height: 110px; border-radius: 100px;
  background:
    radial-gradient(38px 38px at 22% 62%, rgba(255,255,255,.13), transparent 70%),
    radial-gradient(52px 52px at 40% 40%, rgba(255,255,255,.17), transparent 70%),
    radial-gradient(46px 46px at 58% 55%, rgba(255,255,255,.12), transparent 70%),
    radial-gradient(60px 40px at 76% 60%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(closest-side, rgba(255,255,255,.07), transparent);
  filter: blur(6px);
  opacity: 0.8;
}
.cloud--1 { top: 12vh; left: -360px; animation: cloudDrift 70s linear infinite; }
.cloud--2 { top: 26vh; left: -520px; transform: scale(1.5); animation: cloudDrift 95s linear infinite; animation-delay: -30s; opacity: 0.5; }
.cloud--3 { top: 5vh; left: -300px; transform: scale(0.8); animation: cloudDrift 55s linear infinite; animation-delay: -14s; opacity: 0.65; }
@keyframes cloudDrift {
  from { transform: translateX(0) var(--extra, scaleX(1)); }
  to { transform: translateX(calc(100vw + 700px)) var(--extra, scaleX(1)); }
}
.cloud--2 { --extra: scale(1.5); }
.cloud--3 { --extra: scale(0.8); }
@media (max-width: 760px) { .cloud--2 { display: none; } }

/* ============ NOISE ============ */
.noise { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05; mix-blend-mode: screen; }
.noise::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: noiseShift 0.6s steps(3) infinite;
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-15px, 10px); }
  66% { transform: translate(10px, -15px); }
  100% { transform: translate(0, 0); }
}

/* ============ CURSOR ============ */
.cursor { position: fixed; z-index: 9999; top: 0; left: 0; pointer-events: none; }
.cursor__dot {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: var(--white); transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
.cursor__ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.cursor.hover .cursor__ring { width: 56px; height: 56px; border-color: var(--white); box-shadow: 0 0 24px rgba(255,255,255,.15); }
.cursor.click .cursor__ring { width: 24px; height: 24px; }
@media (hover: none) { .cursor { display: none; } }

/* ============ HUD ============ */
.hud { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.hud__corner { position: absolute; width: 28px; height: 28px; border: 1px solid var(--line-strong); }
.hud__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: 10px 22px; border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.nav.scrolled { background: rgba(8, 8, 8, 0.6); }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--white); border-radius: 9px;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.nav__logo:hover .nav__logo-box { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 22px rgba(255,255,255,.25); }
.logo-pulse { animation: logoGlow 3.2s ease-in-out infinite; }
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 18px 2px rgba(255,255,255,.22); }
}
.nav__logo-text { font-weight: 700; letter-spacing: 0.12em; font-size: 14px; }
.nav__logo-text i { font-style: normal; color: var(--dim); font-weight: 400; }
.nav__links { display: flex; gap: clamp(12px, 2vw, 26px); }
.nav__links a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--dim); position: relative; padding: 4px 0; transition: color 0.3s;
}
.nav__links a b { color: var(--faint); font-weight: 400; margin-right: 4px; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ============ PROGRESS / SIDES ============ */
.progress-rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.07); z-index: 101; }
.progress-rail__fill { height: 100%; width: 0%; background: linear-gradient(90deg, #fff, #999); box-shadow: 0 0 12px rgba(255,255,255,.5); }
.scroll-pct {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--dim);
}
.side-label {
  position: fixed; top: 50%; z-index: 40; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.3em; color: var(--faint); white-space: nowrap; pointer-events: none;
}
.side-label--left { left: 12px; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.side-label--right { right: 12px; transform: translateY(-50%); writing-mode: vertical-rl; }
@media (max-width: 900px) { .side-label { display: none; } }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px clamp(20px, 6vw, 80px) 110px; overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { 0% { background-position: 0 0, 0 0; } 100% { background-position: 64px 64px, 64px 64px; } }
.hero__content { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%; }

.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--dim);
  padding: 9px 18px; margin-bottom: 30px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: statusBlink 1.6s ease-in-out infinite; }
@keyframes statusBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(255,255,255,.8); }
  50% { opacity: 0.25; box-shadow: none; }
}

.hero__main { display: flex; gap: clamp(24px, 5vw, 70px); align-items: center; }
.hero__text { flex: 1; min-width: 0; }
.hero__title { font-size: clamp(38px, 6.6vw, 92px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
.hero__line { display: block; }
.hero__name { position: relative; }
.hero__name::after {
  content: ''; position: absolute; left: 0; bottom: 6%; width: 100%; height: 3px;
  background: var(--white); transform: scaleX(0); transform-origin: left;
  animation: nameUnderline 1.1s 1.9s var(--ease) forwards;
}
@keyframes nameUnderline { to { transform: scaleX(1); } }
.hero__title em { font-style: italic; color: var(--dim); }
.hero__title em.outline { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--white); }

.hero__role {
  margin-top: 24px; padding: 10px 18px;
  display: inline-block;
  font-family: var(--mono); font-size: clamp(11px, 1.4vw, 14px); letter-spacing: 0.14em;
}
.type-caret { animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.hero__desc { margin-top: 20px; max-width: 560px; color: var(--dim); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.7; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  padding: 15px 26px; overflow: hidden; border-radius: 12px;
  transition: color 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--white); color: #000; border: 1px solid var(--white); }
.btn--solid:hover { color: var(--white); }
.btn--solid::before {
  content: ''; position: absolute; inset: 0; background: #000;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.35s var(--ease); z-index: 0;
}
.btn--solid:hover::before { transform: scaleY(1); }
.btn--solid span { position: relative; z-index: 1; }
.btn--solid .btn__arrow { transition: transform 0.35s var(--ease); }
.btn--solid:hover .btn__arrow { transform: translateX(6px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--white); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn--ghost::before {
  content: ''; position: absolute; inset: 0; background: var(--white);
  transform: translateY(101%); transition: transform 0.35s var(--ease); z-index: 0;
}
.btn--ghost:hover { color: #000; }
.btn--ghost:hover::before { transform: translateY(0); }
.btn--ghost span { position: relative; z-index: 1; }

/* --- animated PFP --- */
.hero__pfp { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pfp-frame {
  width: clamp(170px, 18vw, 240px); height: clamp(170px, 18vw, 240px);
  border-radius: 26px; overflow: hidden; position: relative; z-index: 2;
  animation: pfpFloat 7s ease-in-out infinite;
}
.pfp-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.15) contrast(1.05); }
.pfp-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 42%);
  mix-blend-mode: overlay; pointer-events: none;
}
@keyframes pfpFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.pfp-orbit {
  position: absolute; top: 50%; left: 50%;
  width: clamp(210px, 22vw, 300px); height: clamp(210px, 22vw, 300px);
  margin: calc(clamp(210px, 22vw, 300px) / -2);
  border: 1px dashed var(--line-strong); border-radius: 50%;
  animation: spin 22s linear infinite; z-index: 1;
}
.pfp-orbit--2 {
  width: clamp(250px, 26vw, 350px); height: clamp(250px, 26vw, 350px);
  margin: calc(clamp(250px, 26vw, 350px) / -2);
  border-color: var(--line); animation-duration: 34s; animation-direction: reverse;
}
.pfp-orbit::after {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 12px rgba(255,255,255,.8);
}
@keyframes spin { to { transform: rotate(360deg); } }
.pfp-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--dim);
  padding: 8px 16px; z-index: 2;
}
@media (max-width: 860px) {
  .hero__main { flex-direction: column-reverse; }
  .hero__pfp { display: none; }
}

.hero__stats {
  display: flex; gap: clamp(24px, 4vw, 60px); margin-top: 56px;
  flex-wrap: wrap; padding: 26px clamp(20px, 3vw, 40px); justify-content: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; min-width: 86px;
}
.stat__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--dim); }

.hero__scroll-cue {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: var(--faint); z-index: 2;
}
.hero__scroll-line { width: 1px; height: 52px; overflow: hidden; background: rgba(255,255,255,.12); position: relative; }
.hero__scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--white); animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }
.hero__scroll-arrow { animation: bounceY 1.6s ease-in-out infinite; }
@keyframes bounceY { 50% { transform: translateY(5px); } }
@media (max-width: 640px) { .hero__scroll-cue { display: none; } }

/* ============ MARQUEE ============ */
.marquee {
  position: absolute; bottom: 0; left: 0; right: 0; border-top: 1px solid var(--line);
  padding: 13px 0; overflow: hidden; z-index: 2; background: rgba(0,0,0,.35); backdrop-filter: blur(6px);
}
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--dim); white-space: nowrap; }
.marquee__track span::after { content: '◆'; margin-left: 48px; color: var(--faint); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer__marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 13px 0; }
.footer__marquee .marquee__track { animation-duration: 26s; }

/* ============ SECTIONS ============ */
.section {
  position: relative; z-index: 2;
  padding: clamp(90px, 11vw, 150px) clamp(20px, 6vw, 80px);
  max-width: 1400px; margin: 0 auto;
}
.section__head { margin-bottom: clamp(44px, 5vw, 72px); }
.section__index {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; color: var(--dim);
  display: inline-block; margin-bottom: 18px; padding: 7px 16px;
}
.section__title { font-size: clamp(32px, 5.2vw, 66px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.section__title--big { font-size: clamp(36px, 7vw, 96px); }
.section__sub { margin-top: 16px; color: var(--dim); max-width: 640px; line-height: 1.7; font-size: clamp(14px, 1.4vw, 16px); }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about__lead { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; font-weight: 500; margin-bottom: 26px; }
.about__lead em { font-style: italic; color: var(--dim); }
.about__text p:not(.about__lead) { color: var(--dim); line-height: 1.75; margin-bottom: 16px; }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  padding: 9px 16px; color: var(--dim); transition: all 0.3s var(--ease);
}
.tag:hover { border-color: var(--white); color: #000; background: var(--white); transform: translateY(-3px); }
.about__panel { display: flex; flex-direction: column; gap: 22px; }
.panel__head { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel__head .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); }
.panel__head .dot:nth-child(1) { background: rgba(255,255,255,.5); }
.panel__title { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.08em; }
.panel__body { padding: 20px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--dim); white-space: pre-wrap; min-height: 250px; }
.panel__body .tk { color: var(--white); }
.about__meta { overflow: hidden; }
.meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
}
.meta-row:last-child { border-bottom: 0; }
.meta-row span { color: var(--faint); }
.meta-row b { font-weight: 500; }
.blink { animation: statusBlink 1.8s ease-in-out infinite; }

/* ============ ARSENAL ============ */
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.ars-card {
  position: relative; padding: 26px 24px 22px; overflow: hidden;
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.ars-card.shown { opacity: 1; transform: none; }
.ars-card:hover { border-color: rgba(255,255,255,.35); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.ars-card::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease); pointer-events: none;
}
.ars-card:hover::before { left: 130%; }
.ars-card__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ars-card__logo svg { width: 34px; height: 34px; flex: 0 0 auto; filter: drop-shadow(0 0 8px rgba(255,255,255,.15)); }
.ars-card__top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--faint);
  margin-bottom: 12px;
}
.ars-card h3 { font-size: 19px; margin-bottom: 10px; }
.ars-card p { color: var(--dim); font-size: 13.5px; line-height: 1.65; }
.ars-card__app {
  margin-top: 16px; padding: 12px 14px; border-left: 2px solid var(--line-strong);
  background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0;
  font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--dim);
}
.ars-card__app b { color: var(--white); font-weight: 500; letter-spacing: 0.06em; }
.ars-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ars-card__chips span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; color: var(--dim);
}
.ars-card__bar { margin-top: 18px; height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; position: relative; }
.ars-card__bar i {
  position: absolute; inset: 0; background: linear-gradient(90deg, #888, #fff);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease);
  border-radius: 2px;
}
.ars-card.shown .ars-card__bar i { transform: scaleX(var(--level)); }
.ars-card__pct { margin-top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--faint); text-align: right; }

/* ============ PROJECTS ============ */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 22px;
}
@media (max-width: 480px) { .projects-grid { grid-template-columns: 1fr; } }
.proj {
  position: relative; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(44px) scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.proj.shown { opacity: 1; transform: none; }
.proj:hover { border-color: rgba(255,255,255,.4); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.proj__shot { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); aspect-ratio: 16/10; }
.proj__shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02); filter: grayscale(0.35) contrast(1.05) brightness(0.92);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.proj:hover .proj__shot img { transform: scale(1.09); filter: grayscale(0.05) contrast(1.08) brightness(1.02); }
.proj__shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,5,.88));
  pointer-events: none;
}
.proj__live {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: #000;
  background: var(--white); padding: 6px 12px; border-radius: 100px; font-weight: 700;
}
.proj__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj__type { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--faint); }
.proj h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12; }
.proj__desc { color: var(--dim); font-size: 13.5px; line-height: 1.7; flex: 1; }
.proj__stack { display: flex; flex-wrap: wrap; gap: 8px; }
.proj__stack span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; color: var(--dim);
}
.proj__link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--white);
  padding-top: 14px; border-top: 1px solid var(--line); margin-top: 4px;
}
.proj__link i { font-style: normal; transition: transform 0.3s var(--ease); }
.proj__link:hover i { transform: translateX(6px); }

/* ============ TIMELINE ============ */
.timeline { position: relative; display: flex; flex-direction: column; gap: 40px; max-width: 900px; margin: 0 auto; padding: 10px 0; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__line::after {
  content: ''; position: absolute; left: -1px; width: 3px; height: 80px;
  background: var(--white); box-shadow: 0 0 14px rgba(255,255,255,.5);
  animation: lineSweep 3.4s var(--ease) infinite;
}
@keyframes lineSweep {
  0% { top: -10%; opacity: 0; }
  12% { opacity: 1; } 88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.t-item { position: relative; width: calc(50% - 34px); display: flex; justify-content: flex-end; }
.t-item--right { align-self: flex-end; justify-content: flex-start; }
.t-item__dot {
  position: absolute; top: 30px; width: 11px; height: 11px;
  background: var(--bg); border: 1px solid var(--white); transform: rotate(45deg); z-index: 2;
}
.t-item:not(.t-item--right) .t-item__dot { right: -40px; }
.t-item--right .t-item__dot { left: -40px; }
.t-item__card { padding: 24px 26px; width: 100%; transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease); }
.t-item__card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.t-item__year { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--faint); }
.t-item__card h3 { margin: 10px 0; font-size: 20px; }
.t-item__card p { color: var(--dim); font-size: 13.5px; line-height: 1.7; }
@media (max-width: 760px) {
  .timeline__line { left: 8px; }
  .t-item, .t-item--right { width: calc(100% - 44px); margin-left: 44px; align-self: stretch; }
  .t-item:not(.t-item--right) .t-item__dot, .t-item--right .t-item__dot { left: -41px; right: auto; }
}

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; margin-bottom: clamp(60px, 7vw, 100px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__form { padding: clamp(22px, 3vw, 34px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form__field span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--faint); }
.form__field input, .form__field textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px;
  color: var(--white); font-family: var(--sans); font-size: 14px; padding: 13px 15px;
  outline: none; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  resize: vertical; min-height: 0;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: var(--faint); }
.form__field input:focus, .form__field textarea:focus {
  border-color: var(--white); background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.form__status.err { color: #ff9a9a; }
.form__status.ok { color: #b8f5c9; }

.contact__side { display: grid; gap: 16px; }
.contact__card { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.35s, transform 0.3s var(--ease); }
.contact__card:hover { border-color: var(--white); }
.contact__card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.09), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.contact__card:hover::after { opacity: 1; }
.contact__icon { font-size: 22px; }
.contact__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; color: var(--faint); margin-top: 8px; }
.contact__value { font-size: 17px; font-weight: 600; }
.contact__hint {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--faint);
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s var(--ease);
}
.contact__card:hover .contact__hint { opacity: 1; transform: none; }

.contact__big {
  text-align: center; font-weight: 700;
  font-size: clamp(20px, 4.4vw, 56px); line-height: 1.18;
  padding: clamp(34px, 6vw, 72px) 20px; overflow: hidden;
}
.contact__big span {
  background: linear-gradient(90deg, #777 0%, #fff 30%, #777 60%, #777 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0; } }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: rgba(2,2,2,.6); backdrop-filter: blur(10px); position: relative; z-index: 2; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto; padding: 24px clamp(20px, 6vw, 80px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint);
}
.footer__left { display: flex; align-items: center; gap: 12px; }
.footer__left .nav__logo-box { width: 28px; height: 28px; font-size: 13px; }
.footer__right { display: flex; gap: 22px; }

/* ============ REVEALS ============ */
[data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
[data-reveal='up'] { transform: translateY(46px); }
[data-reveal='down'] { transform: translateY(-46px); }
[data-reveal='left'] { transform: translateX(-56px); }
[data-reveal='right'] { transform: translateX(56px); }
[data-reveal='zoom'] { transform: scale(0.86); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
