/* =================================================================
   Gul Hameed — Portfolio
   Premium dark / terminal-inspired security aesthetic
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #06070a;
  --bg-2:      #0a0c11;
  --surface:   rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #e8edf5;
  --text-soft: #b6bfce;
  --muted:     #7d869a;
  --faint:     #565e70;

  --accent:    #00ffa3;   /* terminal green */
  --accent-2:  #38d6ff;   /* cyan */
  --accent-3:  #a07bff;   /* violet */
  --warn:      #ffb454;   /* amber */

  --accent-glow: rgba(0, 255, 163, 0.35);

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: auto;
}

@media (pointer: fine) {
  body { cursor: none; }
  a, button, input, [data-cursor] { cursor: none; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #04110b; }

.accent { color: var(--accent); }
.hl {
  color: var(--text);
  background: linear-gradient(transparent 62%, rgba(0,255,163,0.18) 62%);
  padding: 0 2px;
}

/* =================================================================
   Background layers
   ================================================================= */
.bg-rain, .bg-aurora, .bg-grid, .bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.bg-rain { z-index: -3; opacity: 0.5; }

.bg-aurora {
  z-index: -4;
  background:
    radial-gradient(50% 50% at 18% 8%,  rgba(0,255,163,0.10), transparent 70%),
    radial-gradient(45% 45% at 85% 18%, rgba(56,214,255,0.09), transparent 70%),
    radial-gradient(55% 55% at 70% 95%, rgba(160,123,255,0.10), transparent 70%);
  filter: blur(10px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.15); }
}

.bg-grid {
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 80%);
}

.bg-noise {
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =================================================================
   Custom cursor
   ================================================================= */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: width .25s var(--ease), height .25s var(--ease),
              border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(0,255,163,0.08);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =================================================================
   Scroll progress
   ================================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1000;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* =================================================================
   Preloader
   ================================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader__terminal {
  font-family: var(--font-mono);
  font-size: clamp(13px, 3.5vw, 16px);
  color: var(--text-soft);
  max-width: 90vw;
}
.preloader__prompt { color: var(--accent); }
.preloader__path { color: var(--accent-2); }
.preloader__cmd { color: var(--text); }
.preloader__cursor { color: var(--accent); animation: blink 1s step-end infinite; }
.preloader__out { color: var(--muted); margin-top: 8px; white-space: pre-line; }
@keyframes blink { 50% { opacity: 0; } }

/* =================================================================
   Navigation
   ================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: transform .4s var(--ease), background .4s var(--ease),
              backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,7,10,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav.hidden { transform: translateY(-110%); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.nav__logo {
  color: var(--accent);
  font-family: var(--font-mono);
  text-shadow: 0 0 16px var(--accent-glow);
}
.nav__name { color: var(--text); }

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid rgba(0,255,163,0.4);
  border-radius: 100px;
  color: var(--text);
  background: rgba(0,255,163,0.07);
  transition: all .3s var(--ease);
}
.nav__cta-mark { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.nav__cta-arrow { transition: transform .3s var(--ease); opacity: .65; }
.nav__cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,255,163,0.13);
  box-shadow: 0 0 28px rgba(0,255,163,0.22);
  transform: translateY(-1px);
}
.nav__cta:hover .nav__cta-arrow { transform: translate(2px, -2px); opacity: 1; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(78vw, 320px);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 850;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  padding: 10px 0;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  transition: color .25s, padding-left .25s var(--ease);
}
.mobile-menu a:hover { color: var(--accent); padding-left: 8px; }
.mobile-menu__cta { color: var(--accent) !important; }

/* =================================================================
   Layout helpers
   ================================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 56px);
}
.section__head { margin-bottom: 56px; }
.section__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section__sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 560px;
}

/* =================================================================
   Hero
   ================================================================= */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 56px) 70px;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 7px 15px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: var(--surface);
  margin-bottom: 28px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,163,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0,255,163,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,163,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(58px, 11vw, 130px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero__title span { display: block; }
.hero__title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.4vw, 22px);
  margin-top: 22px;
  color: var(--accent-2);
  min-height: 1.4em;
}
.hero__bracket { color: var(--faint); }
.type-caret { color: var(--accent); animation: blink 1s step-end infinite; }

.hero__desc {
  margin-top: 24px;
  max-width: 540px;
  color: var(--text-soft);
  font-size: clamp(15px, 2vw, 17.5px);
}
.hero__desc strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 15px 26px;
  border-radius: 100px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), color .3s;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: #04110b;
  box-shadow: 0 8px 30px rgba(0,255,163,0.22);
}
.btn--primary:hover {
  box-shadow: 0 12px 44px rgba(0,255,163,0.4);
  transform: translateY(-2px);
}
.btn--primary svg { transition: transform .3s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  border-color: var(--border-2);
  color: var(--text);
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
}
.hero__socials a { transition: color .25s; }
.hero__socials a:hover { color: var(--accent); }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* Terminal card */
.terminal {
  background: linear-gradient(180deg, rgba(13,16,22,0.92), rgba(8,10,14,0.92));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.hero__right .terminal:hover {
  box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,255,163,0.2);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.terminal__btn { width: 12px; height: 12px; border-radius: 50%; }
.terminal__btn.red { background: #ff5f57; }
.terminal__btn.yellow { background: #febc2e; }
.terminal__btn.green { background: #28c840; }
.terminal__title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.terminal__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
}
.terminal__body p { white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: var(--accent); }
.t-path { color: var(--accent-2); }
.t-out { color: var(--text-soft); }
.t-dim { color: var(--faint); }
.t-key { color: var(--accent-3); }
.t-str { color: var(--warn); }
.t-num { color: var(--accent-2); }
.t-err { color: #ff6b6b; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: scrolldown 1.8s var(--ease) infinite;
}
@keyframes scrolldown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* =================================================================
   Marquee
   ================================================================= */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 500;
  color: var(--text-soft);
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
.marquee__track span { padding: 0 4px; }
.m-dot { color: var(--accent); font-size: 0.55em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =================================================================
   Stats
   ================================================================= */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 100px) clamp(20px, 5vw, 56px) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px 26px;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.stat:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  background: var(--surface-2);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--text-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* =================================================================
   About
   ================================================================= */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.about__bio p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-soft);
  margin-bottom: 22px;
}
.about__bio strong { color: var(--text); font-weight: 600; }

.about__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px 26px;
  position: sticky;
  top: 100px;
}
.about__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.about__row--last { border-bottom: none; }
.about__k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.about__v {
  font-size: 14.5px;
  color: var(--text);
  text-align: right;
  font-weight: 500;
}
.about__link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), opacity .25s;
}
.about__link:hover { border-bottom-color: var(--accent); }

/* =================================================================
   Chains
   ================================================================= */
.chains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.chain {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  will-change: transform;
}
.chain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}
.chain:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.chain:hover::before { opacity: 1; }
.chain__mono {
  font-size: 34px;
  line-height: 1;
  color: var(--c);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 50%, transparent));
}
.chain h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.chain p { font-size: 14px; color: var(--muted); position: relative; }

/* Skills */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}
.skills__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-soft);
  background: var(--surface);
  transition: all .25s var(--ease);
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,255,163,0.12);
}

/* =================================================================
   Work / Audits
   ================================================================= */
.work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.work__card {
  grid-column: span 2;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.work__card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(130deg, transparent 40%, rgba(0,255,163,0.4), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
}
.work__card:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
}
.work__card:hover::after { opacity: 1; }
.work__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
}
.work__chain {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.work__cat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.work__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 22px 0 10px;
}
.work__desc { font-size: 14.5px; color: var(--muted); max-width: 90%; }
.work__report {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .35s;
}
.work__card:hover .work__report { color: var(--accent); }
.work__report--muted { color: var(--faint); }
.work__arrow {
  font-size: 15px;
  transition: transform .4s var(--ease);
  display: inline-block;
}
.work__card:hover .work__arrow { transform: translate(3px, -3px); }

/* Chorus / pending (non-link) card */
.work__card--pending { cursor: default; }
.work__card--pending:hover { transform: none; background: var(--surface); }
.work__card--pending:hover::after { opacity: 0; }

/* "Full audit archive" CTA card */
.work__card--more {
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,255,163,0.10), rgba(56,214,255,0.05));
  border-color: rgba(0,255,163,0.35);
}
.work__card--more:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0,255,163,0.16), rgba(56,214,255,0.09));
}
.work__card--more .work__name { margin-top: 0; color: var(--accent); }
.work__card--more .work__report { color: var(--accent); }
.work__more-mark { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }

/* ----- Web2 / CEX block ----- */
.cexblock { margin-top: 64px; }
.cexblock__head { margin-bottom: 28px; }
.cexblock__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cexblock__sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 600px;
}
.cex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cex__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.cex__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.cex__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.cex__report {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  transition: color .3s;
}
.cex__report--nda { color: var(--faint); }
.cex__card--linked:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.cex__card--more {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(0,255,163,0.10), rgba(56,214,255,0.05));
  border-color: rgba(0,255,163,0.35);
}
.cex__card--more:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0,255,163,0.16), rgba(56,214,255,0.09));
  transform: translateY(-4px);
}
.cex__more-text { display: flex; flex-direction: column; gap: 4px; }
.cex__card--more .cex__name { color: var(--accent); }
.cex__card--more .cex__report { margin-top: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .cex__card--more { flex-direction: column; align-items: flex-start; }
}

/* =================================================================
   Repos / Tools
   ================================================================= */
.repos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.repo {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.repo:hover {
  transform: translateY(-5px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.repo__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.repo__icon { color: var(--accent); flex-shrink: 0; }
.repo__name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.repo__star {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warn);
}
.repo__desc { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.repo__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.repo__tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* =================================================================
   Writing
   ================================================================= */
.writing { display: flex; flex-direction: column; }
.writing__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 8px;
  border-top: 1px solid var(--border);
  transition: padding-left .35s var(--ease), background .35s;
}
.writing__item:last-child { border-bottom: 1px solid var(--border); }
.writing__item:hover { padding-left: 14px; background: linear-gradient(90deg, var(--surface), transparent); }
.writing__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--accent);
  background: rgba(0,255,163,0.08);
  border: 1px solid rgba(0,255,163,0.2);
  flex-shrink: 0;
  width: 110px;
  text-align: center;
}
.writing__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--text-soft);
  transition: color .3s;
}
.writing__item:hover .writing__title { color: var(--text); }
.writing__arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--faint);
  transition: transform .35s var(--ease), color .35s;
}
.writing__item:hover .writing__arrow { color: var(--accent); transform: translate(4px, -4px); }

/* =================================================================
   Contact
   ================================================================= */
.section--contact {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 16px 0 22px;
}
.contact__sub {
  color: var(--text-soft);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 440px;
  margin-bottom: 38px;
}
.contact__links { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all .3s var(--ease);
}
.contact__link:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateX(6px);
}
.contact__handle { color: var(--muted); transition: color .3s; }
.contact__link:hover .contact__handle { color: var(--accent); }

.terminal--live { box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.terminal__body--live {
  min-height: 280px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.terminal__body--live::-webkit-scrollbar { width: 6px; }
.terminal__body--live::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
#liveOut p { margin-bottom: 2px; }
.terminal__input-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.terminal__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  caret-color: transparent;
}
.type-caret--input { margin-left: -6px; }

/* =================================================================
   Footer
   ================================================================= */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}
.footer__copy { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.footer__top {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  transition: all .3s var(--ease);
}
.footer__top:hover { border-color: var(--accent); color: var(--accent); }

/* =================================================================
   Reveal animation
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__panel { position: static; }
  .chains { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: 1fr 1fr; }
  .work__card { grid-column: span 1; }
  .cex { grid-template-columns: 1fr 1fr; }
  .repos { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .work { grid-template-columns: 1fr; }
  .cex { grid-template-columns: 1fr; }
  .chains { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .writing__tag { width: 84px; font-size: 10px; }
  .writing__item { gap: 14px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(52px, 17vw, 80px); }
}

/* =================================================================
   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;
  }
  .reveal { opacity: 1; transform: none; }
  .bg-rain { display: none; }
}
