/* ============================================================
   AYOCODES PORTFOLIO — STYLES.CSS
   Palette: black / white / dark green / cream
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (data)
============================================================ */

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

:root {
  --bg: #0a0b09;
  --bg2: #111310;
  --bg3: #161914;
  --cream: #f2ecdd;
  --ink: #f6f4ee;
  --green: #163f2c;
  --green-bright: #3a8a5c;
  --green-glow: #4fae78;
  --alert: #b5443a;
  --dim: rgba(246, 244, 238, 0.42);
  --dim2: rgba(246, 244, 238, 0.2);
  --hair: rgba(246, 244, 238, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.77, 0, 0.175, 1);
  --f-display: 'Space Grotesk', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family: var(--f-body);
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .cine-inner,
  .cine-vortex {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

body.no-cine .cine-inner,
body.no-cine .cine-vortex {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ── PROGRESS BAR ─────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 99999;
  pointer-events: none;
  background: linear-gradient(90deg, var(--green-bright), var(--cream));
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(79, 174, 120, 0.5);
}

/* ── CURSOR ───────────────────────────────────────────── */
#cd {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--green-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: background .3s, width .22s, height .22s;
  mix-blend-mode: difference;
}

#cr {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(79, 174, 120, 0.28);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .5s var(--ease), height .5s var(--ease), border-color .3s, border-radius .4s;
}

#cr-label {
  font-family: var(--f-mono);
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--cream);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
}

body.hov #cd {
  width: 10px;
  height: 10px;
  background: var(--cream);
}

body.hov #cr {
  width: 64px;
  height: 64px;
  border-color: rgba(242, 236, 221, 0.4);
  border-radius: 4px;
}

body.hov-label #cr {
  width: 84px;
  height: 28px;
  border-radius: 3px;
}

body.hov-label #cr-label {
  opacity: 1;
}

/* ── NOISE ────────────────────────────────────────────── */
#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.022;
  mix-blend-mode: screen;
}

/* ── CURRENTLY BUILDING WIDGET ───────────────────────── */
#building-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 4990;
  transform: translateY(100px);
  opacity: 0;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}

#building-widget.show {
  transform: translateY(0);
  opacity: 1;
}

.bw-inner {
  background: rgba(10, 11, 9, 0.95);
  border: 1px solid rgba(79, 174, 120, 0.22);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 260px;
  backdrop-filter: blur(20px);
  position: relative;
}

.bw-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-glow);
  flex-shrink: 0;
  animation: corePulse 2s ease-in-out infinite;
}

.bw-content {
  flex: 1;
  min-width: 0;
}

.bw-label {
  font-family: var(--f-mono);
  font-size: 7px;
  letter-spacing: 3px;
  color: rgba(79, 174, 120, 0.55);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bw-project {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1;
}

.bw-bar-wrap {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
  position: relative;
  overflow: hidden;
}

.bw-bar {
  height: 100%;
  width: var(--progress, 50%);
  background: linear-gradient(90deg, var(--green), var(--green-glow));
  position: relative;
}

.bw-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 8px var(--green-glow);
}

.bw-meta {
  font-family: var(--f-mono);
  font-size: 8px;
  color: rgba(246, 244, 238, 0.25);
  letter-spacing: 1px;
}

.bw-close {
  background: none;
  border: none;
  color: rgba(246, 244, 238, 0.2);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
  transition: color .3s;
  flex-shrink: 0;
}

.bw-close:hover {
  color: var(--alert);
}

/* ── PRELOADER ────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 70000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#preloader.hide {
  pointer-events: none;
}

.pre-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(79, 174, 120, 0.006) 2px, rgba(79, 174, 120, 0.006) 3px);
  pointer-events: none;
  z-index: 1;
}

.pre-br {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity .4s;
}

.pre-br.tl {
  top: 28px;
  left: 28px;
  border-top: 1px solid rgba(79, 174, 120, 0.4);
  border-left: 1px solid rgba(79, 174, 120, 0.4);
}

.pre-br.tr {
  top: 28px;
  right: 28px;
  border-top: 1px solid rgba(79, 174, 120, 0.4);
  border-right: 1px solid rgba(79, 174, 120, 0.4);
}

.pre-br.bl {
  bottom: 28px;
  left: 28px;
  border-bottom: 1px solid rgba(79, 174, 120, 0.4);
  border-left: 1px solid rgba(79, 174, 120, 0.4);
}

.pre-br.br2 {
  bottom: 28px;
  right: 28px;
  border-bottom: 1px solid rgba(79, 174, 120, 0.4);
  border-right: 1px solid rgba(79, 174, 120, 0.4);
}

.pre-name-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
}

.pre-letter {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 11vw, 108px);
  letter-spacing: 0.01em;
  color: var(--ink);
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) scaleY(1.3);
}

.pre-letter.accent {
  color: var(--green-glow);
}

.pre-letter.space {
  width: 0.4em;
}

.pre-letter.in {
  animation: letterIn .6s var(--ease2) forwards;
}

.pre-letter.glitch {
  animation: letterGlitch .3s steps(1) forwards;
}

.pre-line {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--green-glow), transparent);
  transition: width 1s var(--ease) .8s;
  z-index: 2;
}

.pre-line.grow {
  width: 100%;
}

.pre-status {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(79, 174, 120, 0.55);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .4s .6s;
  height: 16px;
}

.pre-status.show {
  opacity: 1;
}

.pre-progress-wrap {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  width: min(260px, 50vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity .4s .7s;
}

.pre-progress-wrap.show {
  opacity: 1;
}

.pre-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-glow));
  transition: width .05s;
  position: relative;
}

.pre-progress::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 10px var(--green-glow);
}

.pre-pct {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(79, 174, 120, 0.5);
  opacity: 0;
  transition: opacity .4s .7s;
}

.pre-pct.show {
  opacity: 1;
}

.pre-wipe {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--bg);
  transform-origin: bottom;
}

.pre-wipe.go {
  animation: wipeUp .9s var(--ease2) forwards;
}

.pre-wipe-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(79, 174, 120, 0.08);
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  transition: background .5s, border-color .5s;
}

nav.sc {
  background: rgba(10, 11, 9, 0.94);
  backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--hair);
}

.nav-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo em {
  color: var(--green-glow);
  font-style: normal;
  transition: color .4s;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(246, 244, 238, 0.35);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .3s;
  font-family: var(--f-mono);
}

.nav-links a:hover {
  color: var(--green-glow);
}

.nav-hire {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--bg) !important;
  background: var(--cream);
  padding: 9px 20px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all .35s;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
}

.nav-hire:hover {
  background: var(--green-glow) !important;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%);
  color: var(--bg) !important;
}

/* ── SOUND TOGGLE ────────────────────────────────────── */
.nav-sound-btn {
  background: rgba(79, 174, 120, 0.06);
  border: 1px solid rgba(79, 174, 120, 0.18);
  color: rgba(79, 174, 120, 0.6);
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  font-size: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
}

.nav-sound-btn:hover {
  background: rgba(79, 174, 120, 0.16);
  color: var(--green-glow);
}

.nav-sound-btn.active {
  color: var(--green-glow);
  background: rgba(79, 174, 120, 0.14);
}

.nav-sound-btn.active .sound-icon {
  animation: soundWave 1.5s ease-in-out infinite;
}

.nav-sound-btn .sound-icon {
  transition: transform 0.3s ease;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

/* Sound wave animation */
@keyframes soundWave {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  75% {
    transform: scale(0.9);
    opacity: 0.9;
  }
}

/* Sound pulse ring when active */
.nav-sound-btn.active::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 4px;
  border: 1px solid rgba(79, 174, 120, 0.2);
  animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* Volume indicator (optional) */
.nav-sound-btn.active .sound-icon::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 2px;
  background: var(--green-glow);
  border-radius: 1px;
  animation: volumeBar 2s ease-in-out infinite;
}

@keyframes volumeBar {
  0%, 100% {
    width: 4px;
  }
  50% {
    width: 12px;
  }
}

/* ── CINEMATIC SCROLL ─────────────────────────────────── */
.cine {
  position: relative;
}

.cine-inner {
  transform: perspective(1400px)
    rotateX(calc(var(--cp, 0) * 7deg * var(--cdir, 1)))
    scale(calc(1 - var(--cp, 0) * 0.14))
    translateZ(calc(var(--cp, 0) * -60px));
  opacity: calc(1 - var(--cp, 0) * 0.6);
  filter: blur(calc(var(--cp, 0) * 3px));
  will-change: transform, opacity, filter;
}

.cine-vortex {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(circle at 50% 50%,
      transparent 0%,
      transparent calc(38% - var(--cp, 0) * 30%),
      rgba(22, 63, 44, calc(var(--cp, 0) * 0.55)) calc(58% - var(--cp, 0) * 15%),
      transparent 78%);
  transform: rotate(calc(var(--cp, 0) * 220deg * var(--cdir, 1))) scale(calc(1 + var(--cp, 0) * 1.6));
  opacity: var(--cp, 0);
  will-change: transform, opacity;
}

/* ── HERO ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(24px, 6vw, 100px) 60px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 0;
}

#hcanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* LIVE CODE EDITOR */
.hero-code-editor {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 38vw);
  background: var(--bg2);
  border: 1px solid rgba(79, 174, 120, 0.16);
  z-index: 3;
  opacity: 0;
  animation: up .8s var(--ease) 1.8s forwards;
  box-shadow: 0 0 60px rgba(79, 174, 120, 0.05), 0 40px 80px rgba(0, 0, 0, 0.6);
}

.hce-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
}

.hce-dots {
  display: flex;
  gap: 6px;
}

.hce-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hce-filename {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(246, 244, 238, 0.3);
  margin-left: 8px;
  flex: 1;
}

.hce-lang {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(79, 174, 120, 0.5);
  text-transform: uppercase;
}

.hce-body {
  display: flex;
  overflow: hidden;
  min-height: 200px;
  max-height: 280px;
}

.hce-lines {
  width: 36px;
  flex-shrink: 0;
  padding: 14px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.7;
  color: rgba(246, 244, 238, 0.12);
  text-align: right;
  padding-right: 10px;
  padding-left: 6px;
  user-select: none;
}

.hce-code {
  flex: 1;
  padding: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(246, 244, 238, 0.78);
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
  scrollbar-width: none;
}

.hce-code::-webkit-scrollbar {
  display: none;
}

.hce-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.2);
}

.hce-status {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(58, 138, 92, 0.8);
}

.hce-output {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--green-glow);
  letter-spacing: 1px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hce-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--green-glow);
  vertical-align: text-bottom;
  animation: blink .9s step-end infinite;
  margin-left: 1px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  will-change: transform;
}

.h-eye {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 6px;
  color: var(--green-glow);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  opacity: 0;
  animation: up .8s var(--ease) .3s forwards;
}

.h-eye::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green-glow);
}

.h-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 152px);
  line-height: 0.92;
  letter-spacing: -2px;
  opacity: 0;
  animation: up 1s var(--ease) .5s forwards;
}

.ht1 {
  color: var(--ink);
}

.ht2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 238, 0.14);
}

.ht3 {
  display: block;
  color: var(--green-glow);
  min-height: 1em;
  transition: color .6s;
}

.h-cur {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  background: currentColor;
  vertical-align: middle;
  margin-left: 3px;
  animation: blinkSmooth 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.h-sub {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--dim);
  max-width: 520px;
  line-height: 1.8;
  margin-top: 28px;
  margin-bottom: 44px;
  opacity: 0;
  animation: up .9s var(--ease) .8s forwards;
}

.h-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: up .8s var(--ease) 1s forwards;
}

.btn-p {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--bg);
  background: var(--cream);
  text-decoration: none;
  padding: 15px 38px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all .4s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-p:hover {
  background: var(--green-glow);
  color: var(--bg);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

.btn-g {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--dim);
  text-decoration: none;
  padding: 15px 38px;
  text-transform: uppercase;
  border: 1px solid rgba(246, 244, 238, 0.1);
  display: inline-block;
  transition: all .4s;
}

.btn-g:hover {
  border-color: var(--green-glow);
  color: var(--green-glow);
}

.h-stats {
  display: flex;
  gap: clamp(24px, 5vw, 72px);
  margin-top: 64px;
  flex-wrap: wrap;
  opacity: 0;
  animation: up .8s var(--ease) 1.2s forwards;
}

.h-sn {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -1px;
  line-height: 1;
}

.h-sl {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 5px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadein 1s ease 2.2s forwards;
}

.sc-txt {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 5px;
  color: rgba(246, 244, 238, 0.22);
}

.sc-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--green-glow), transparent);
  animation: scpulse 2.5s ease-in-out infinite;
}

/* ── MARQUEE ──────────────────────────────────────────── */
.mq-wrap {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 18px 0;
  background: var(--bg2);
  position: relative;
  width: 100%;
}

.mq-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 180s linear infinite;
  will-change: transform;
}

.mq-inner:hover {
  animation-play-state: paused;
}

.mq-item {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 5px;
  color: rgba(246, 244, 238, 0.14);
  padding: 0 36px;
  white-space: nowrap;
  transition: color 0.3s ease;
  user-select: none;
  flex-shrink: 0;
}

.mq-item.ac {
  color: var(--green-glow);
  text-shadow: 0 0 8px rgba(79, 174, 120, 0.25);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── SECTION SHARED ───────────────────────────────────── */
.section-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(246, 244, 238, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(246, 244, 238, 0.3);
}

.section-tag.seq {
  color: rgba(79, 174, 120, 0.6);
}

.section-tag.seq::before {
  background: rgba(79, 174, 120, 0.6);
}

/* ── ABOUT ────────────────────────────────────────────── */
#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(24px, 6vw, 100px);
  scroll-margin-top: 66px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(60px, 8vw, 140px);
  width: 100%;
  align-items: start;
}

.about-photo-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  background: var(--bg2);
  overflow: hidden;
}

.photo-frame::before,
.photo-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  transition: all .5s;
}

.photo-frame::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--green-glow);
  border-left: 1px solid var(--green-glow);
}

.photo-frame::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 1px solid var(--green-glow);
  border-right: 1px solid var(--green-glow);
}

.photo-frame:hover::before {
  top: 6px;
  left: 6px;
  width: 36px;
  height: 36px;
}

.photo-frame:hover::after {
  bottom: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
}

.photo-corner-tr,
.photo-corner-bl {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  transition: all .5s;
}

.photo-corner-tr {
  top: 12px;
  right: 12px;
  border-top: 1px solid rgba(79, 174, 120, 0.35);
  border-right: 1px solid rgba(79, 174, 120, 0.35);
}

.photo-corner-bl {
  bottom: 12px;
  left: 12px;
  border-bottom: 1px solid rgba(79, 174, 120, 0.35);
  border-left: 1px solid rgba(79, 174, 120, 0.35);
}

.photo-frame:hover .photo-corner-tr {
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
}

.photo-frame:hover .photo-corner-bl {
  bottom: 6px;
  left: 6px;
  width: 36px;
  height: 36px;
}

.photo-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(79, 174, 120, 0.02) 3px, rgba(79, 174, 120, 0.02) 4px);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(30%) contrast(1.05);
  transition: filter .6s, transform .8s var(--ease);
}

.photo-frame:hover .photo-img {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.03);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 4;
}

.photo-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: rgba(79, 174, 120, 0.3);
  fill: none;
  stroke-width: 1;
}

.photo-placeholder-txt {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(79, 174, 120, 0.3);
  text-transform: uppercase;
}

.photo-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 40px rgba(79, 174, 120, 0.05);
}

.photo-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.photo-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--ink);
}

.photo-role {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(79, 174, 120, 0.6);
  text-transform: uppercase;
}

.about-headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 100px);
  line-height: 0.92;
  letter-spacing: -2px;
}

.ah1 {
  color: var(--ink);
}

.ah2 {
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 238, 0.14);
}

.ah3 {
  color: var(--green-glow);
}

.about-body {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--dim);
  line-height: 1.9;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 24px 0;
  margin: 24px 0;
}

.about-note {
  font-family: var(--f-body);
  font-size: 13px;
  color: rgba(246, 244, 238, 0.35);
  line-height: 1.9;
  margin-bottom: 32px;
}

.sk-row {
  margin-bottom: 16px;
}

.sk-hd {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.sk-nm {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(246, 244, 238, 0.55);
}

.sk-pct {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--green-glow);
}

.sk-tr {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.sk-fill {
  height: 100%;
  width: 0%;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.sk-fill.lit::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: inherit;
  box-shadow: 0 0 10px currentColor;
}

/* ── STACK ────────────────────────────────────────────── */
#stack-section {
  padding: 80px clamp(24px, 6vw, 100px);
  background: var(--bg2);
}

.stack-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -1px;
  margin-bottom: 48px;
  color: var(--ink);
}

.stack-title span {
  color: var(--green-glow);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.stack-cell {
  background: var(--bg2);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .4s;
  position: relative;
  overflow: hidden;
}

.stack-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-glow);
  opacity: 0;
  transition: opacity .4s;
}

.stack-cell:hover {
  background: var(--bg3);
}

.stack-cell:hover::after {
  opacity: 0.05;
}

.stack-icon {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--green-glow);
  line-height: 1;
}

.stack-name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(246, 244, 238, 0.65);
}

.stack-cat {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(246, 244, 238, 0.22);
  text-transform: uppercase;
}

/* ── ABSTRACT SCENES ──────────────────────────────────── */
.abs-scene {
  height: clamp(200px, 28vw, 400px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abs-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.abs-text {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 5.5vw, 80px);
  letter-spacing: -1px;
  opacity: 0.05;
  color: var(--ink);
  pointer-events: none;
  text-align: center;
}

/* ── HORIZONTAL SCROLL ────────────────────────────────── */
#work-pin {
  position: relative;
  scroll-margin-top: 66px;
}

.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.work-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.work-slide {
  flex: 0 0 100vw;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.work-slide.intro-slide {
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 100px);
  background: var(--bg);
}

.ws-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 132px);
  letter-spacing: -3px;
  line-height: 0.9;
}

.ws-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 238, 0.14);
}

.ws-sub {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--dim);
  max-width: 300px;
  line-height: 1.75;
  margin-top: 20px;
}

.ws-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(246, 244, 238, 0.24);
  text-transform: uppercase;
  margin-top: 32px;
}

.ws-hint-arr {
  width: 32px;
  height: 1px;
  background: rgba(246, 244, 238, 0.24);
  position: relative;
}

.ws-hint-arr::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  border: 3px solid transparent;
  border-left: 6px solid rgba(246, 244, 238, 0.24);
}

/* ── STUDYTOOL / PREST CBT SLIDES ──────────────────────── */
.studytool-pm {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studytool-demo {
  width: calc(100% - 40px);
  max-width: 380px;
  background: var(--bg3);
  border: 1px solid rgba(79, 174, 120, 0.18);
  padding: 20px;
  position: relative;
  z-index: 2;
}

.std-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.std-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.std-logo span {
  color: var(--green-glow);
}

.std-timer {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--green-glow);
  letter-spacing: 2px;
  padding: 4px 10px;
  border: 1px solid rgba(79, 174, 120, 0.25);
  background: rgba(79, 174, 120, 0.06);
}

.std-timer.warning {
  color: var(--alert);
  border-color: rgba(181, 68, 58, 0.35);
  animation: timerPulse .5s ease-in-out infinite;
}

.std-qnum {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(79, 174, 120, 0.5);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.std-qtext {
  font-family: var(--f-body);
  font-size: 13px;
  color: rgba(246, 244, 238, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
}

.std-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.std-opt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(246, 244, 238, 0.6);
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: all .3s;
  border-radius: 2px;
}

.std-opt:hover {
  border-color: rgba(79, 174, 120, 0.35);
  color: var(--green-glow);
  background: rgba(79, 174, 120, 0.06);
}

.std-opt.correct {
  border-color: var(--green-glow);
  background: rgba(79, 174, 120, 0.12);
  color: var(--green-glow);
}

.std-opt.wrong {
  border-color: var(--alert);
  background: rgba(181, 68, 58, 0.1);
  color: var(--alert);
}

.std-opt:disabled {
  cursor: default;
}

.std-feedback {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1px;
  min-height: 20px;
  transition: all .3s;
}

.std-feedback.correct {
  color: var(--green-glow);
}

.std-feedback.wrong {
  color: var(--alert);
}

.std-footer {
  margin-top: 14px;
}

.std-progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.std-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-glow));
  transition: width .5s var(--ease);
}

.std-status {
  font-family: var(--f-mono);
  font-size: 7px;
  letter-spacing: 3px;
  color: rgba(79, 174, 120, 0.4);
  text-align: center;
}

.studytool-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.std-dev-badge {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--alert);
  border: 1px solid rgba(181, 68, 58, 0.35);
  padding: 4px 9px;
  animation: devPulse 2s ease-in-out infinite;
}

.std-live-badge {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--green-glow);
  border: 1px solid rgba(79, 174, 120, 0.4);
  padding: 4px 9px;
}

.std-progress-chip {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--green-glow);
  background: rgba(79, 174, 120, 0.08);
  border: 1px solid rgba(79, 174, 120, 0.22);
  padding: 4px 9px;
}

.studytool-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.stf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(246, 244, 238, 0.45);
  letter-spacing: 1px;
}

.stf-icon {
  color: var(--green-glow);
  font-size: 12px;
}

/* ── PROJECT SLIDE SHARED ─────────────────────────────── */
.ws-pm {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}

.ws-pm img,
.ws-pm video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  transition: opacity .9s, transform 1.1s;
  transform: scale(1.06);
  filter: grayscale(35%);
}

.work-slide:hover .ws-pm img,
.work-slide:hover .ws-pm video {
  opacity: 0.55;
  transform: scale(1);
  filter: grayscale(0%);
}

.ws-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 11, 9, 0.6) 100%);
}

.work-slide:hover .ws-overlay {
  opacity: 1;
}

.ws-bignum {
  position: absolute;
  bottom: 0;
  right: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(76px, 11vw, 150px);
  color: rgba(255, 255, 255, 0.035);
  line-height: 0.8;
  pointer-events: none;
  transition: color .5s;
}

.work-slide:hover .ws-bignum {
  color: rgba(255, 255, 255, 0.07);
}

.ws-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s;
}

.work-slide:hover .ws-view {
  opacity: 1;
}

.ws-vbtn {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bg);
  padding: 13px 28px;
  text-decoration: none;
  display: inline-block;
  background: var(--cream);
}

.ws-pi {
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg2);
  transition: background .5s;
}

.work-slide:hover .ws-pi {
  background: var(--bg3);
}

.ws-pi-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--green-glow);
}

.ws-pi-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 56px);
  letter-spacing: -1px;
  line-height: 0.95;
  margin-bottom: 18px;
  color: var(--ink);
}

.ws-pi-desc {
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.85;
  margin-bottom: 24px;
}

.ws-pi-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 11px;
  color: rgba(246, 244, 238, 0.4);
  transition: all .35s;
}

.work-slide:hover .chip {
  border-color: rgba(79, 174, 120, 0.3);
  color: var(--green-glow);
}

.ws-pi-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap .35s;
  cursor: pointer;
}

.ws-pi-link:hover {
  gap: 20px;
}

.arr {
  width: 24px;
  height: 1px;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
  transition: width .35s;
  display: inline-block;
}

.arr::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  border: 3px solid transparent;
  border-left: 6px solid currentColor;
}

.ws-pi-link:hover .arr {
  width: 44px;
}

/* ── AI TERMINAL SLIDE ────────────────────────────────── */
.ws-ai {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ai-pm-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.td {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ai-pm-title {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(246, 244, 238, 0.18);
  margin-left: 8px;
}

.ai-pm-status {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--cream);
  text-transform: uppercase;
  margin-left: auto;
}

.ai-out {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.9;
  scrollbar-width: none;
  min-height: 0;
}

.ai-out::-webkit-scrollbar {
  display: none;
}

.ai-msg {
  margin-bottom: 10px;
  animation: termup .22s var(--ease);
}

.ai-who {
  font-size: 7px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: var(--f-mono);
}

.ai-msg.user .ai-who {
  color: var(--green-glow);
}

.ai-msg.bot .ai-who {
  color: var(--cream);
}

.ai-msg.user .ai-text {
  color: rgba(246, 244, 238, 0.42);
}

.ai-msg.bot .ai-text {
  color: rgba(246, 244, 238, 0.72);
}

.ai-code-block {
  background: rgba(0, 0, 0, 0.6);
  border-left: 2px solid var(--cream);
  padding: 9px 11px;
  margin-top: 5px;
  font-size: 9.5px;
  color: rgba(246, 244, 238, 0.68);
  white-space: pre-wrap;
  overflow-x: auto;
  line-height: 1.65;
  position: relative;
}

.ai-code-copy {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(242, 236, 221, 0.14);
  border: 1px solid rgba(242, 236, 221, 0.3);
  color: var(--cream);
  padding: 4px 8px;
  font-size: 7px;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 2px;
  transition: all .3s;
  font-family: var(--f-mono);
}

.ai-code-copy:hover {
  background: rgba(242, 236, 221, 0.28);
}

.ai-sug-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-sug {
  font-size: 7px;
  letter-spacing: 2px;
  border: 1px solid rgba(242, 236, 221, 0.14);
  color: rgba(242, 236, 221, 0.4);
  padding: 4px 8px;
  cursor: pointer;
  transition: all .3s;
  background: transparent;
  font-family: var(--f-mono);
  text-transform: uppercase;
}

.ai-sug:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.ai-inp-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 9px 13px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}

#ai-inp {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink);
  caret-color: var(--cream);
}

#ai-inp::placeholder {
  color: rgba(246, 244, 238, 0.18);
}

.ai-send {
  background: var(--cream);
  color: var(--bg);
  border: none;
  padding: 6px 14px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  flex-shrink: 0;
}

.ai-send:hover {
  background: var(--green-glow);
}

.ai-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-thinking {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ai-thinking span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream);
  animation: think .9s ease-in-out infinite;
}

.ai-thinking span:nth-child(2) {
  animation-delay: .15s;
}

.ai-thinking span:nth-child(3) {
  animation-delay: .3s;
}

.ws-ai-num {
  position: absolute;
  bottom: 0;
  right: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(76px, 11vw, 150px);
  color: rgba(242, 236, 221, 0.035);
  line-height: 0.8;
  pointer-events: none;
}

.work-dots {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.wdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(246, 244, 238, 0.16);
  transition: all .4s;
  cursor: pointer;
  border: none;
}

.wdot.active {
  background: var(--green-glow);
  box-shadow: 0 0 8px var(--green-glow);
  height: 16px;
  border-radius: 2px;
}

/* ── COMPARISON MODAL ─────────────────────────────────── */
.comparison-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.comparison-modal.open {
  display: flex;
  animation: modalFadeIn .4s ease-out;
}

.comparison-modal-content {
  background: var(--bg2);
  border: 1px solid rgba(79, 174, 120, 0.22);
  padding: 40px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.comparison-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--green-glow);
  font-size: 28px;
  cursor: pointer;
  transition: color .3s;
  line-height: 1;
}

.comparison-modal-close:hover {
  color: var(--alert);
}

.comparison-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.comparison-project-card {
  background: var(--bg);
  border: 1px solid rgba(79, 174, 120, 0.16);
  padding: 16px;
  cursor: pointer;
  transition: all .3s;
}

.comparison-project-card:hover {
  border-color: var(--green-glow);
  background: rgba(79, 174, 120, 0.05);
}

.comparison-project-card.selected {
  background: rgba(79, 174, 120, 0.14);
  border-color: var(--green-glow);
  box-shadow: 0 0 20px rgba(79, 174, 120, 0.2);
}

.comparison-project-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.comparison-project-id {
  font-family: var(--f-mono);
  font-size: 8px;
  color: rgba(79, 174, 120, 0.55);
  text-transform: uppercase;
}

.comparison-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.comparison-project-detail {
  background: rgba(79, 174, 120, 0.05);
  border: 1px solid rgba(79, 174, 120, 0.16);
  padding: 20px;
}

.comparison-detail-name {
  color: var(--green-glow);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.comparison-detail-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.comparison-tech-chip {
  font-size: 7px;
  background: rgba(79, 174, 120, 0.1);
  border: 1px solid rgba(79, 174, 120, 0.22);
  color: rgba(79, 174, 120, 0.8);
  padding: 4px 8px;
  font-family: var(--f-mono);
}

.comparison-overlap {
  background: rgba(181, 68, 58, 0.05);
  border: 1px solid rgba(181, 68, 58, 0.2);
  padding: 16px;
  margin-top: 20px;
  grid-column: 1/-1;
}

.comparison-overlap-title {
  color: var(--alert);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.comparison-overlap-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── BUILD LOG ────────────────────────────────────────── */
#buildlog-section {
  padding: 100px clamp(24px, 6vw, 100px);
  background: var(--bg2);
  scroll-margin-top: 66px;
}

.bl-inner {
  max-width: 900px;
}

.bl-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 112px);
  letter-spacing: -2px;
  line-height: 0.92;
  margin-bottom: 16px;
  color: var(--ink);
}

.bl-title span {
  color: var(--green-glow);
}

.bl-sub {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--dim);
  margin-bottom: 56px;
  max-width: 480px;
}

.bl-timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--hair);
}

.bl-entry {
  position: relative;
  padding-bottom: 40px;
}

.bl-entry:last-child {
  padding-bottom: 0;
}

.bl-entry::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 0 3px var(--bg2), 0 0 8px rgba(79, 174, 120, 0.5);
}

.bl-entry-date {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(79, 174, 120, 0.6);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bl-entry-tag {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bl-entry-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink);
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.bl-entry-desc {
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 560px;
}

.bl-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 48px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green-glow);
  transition: gap .35s;
}

.bl-cta:hover {
  gap: 20px;
}

/* ── TERMINAL ─────────────────────────────────────────── */
#experimental {
  padding: 100px clamp(24px, 6vw, 100px);
  scroll-margin-top: 66px;
}

.exp-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.exp-left .section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 100px);
  letter-spacing: -2px;
  line-height: 0.92;
  margin-bottom: 28px;
}

.exp-left .section-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 238, 0.14);
}

.exp-left p {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--dim);
  line-height: 1.9;
  margin-bottom: 32px;
}

.exp-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ef-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.ef-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  width: 48px;
  flex-shrink: 0;
  line-height: 1;
  color: var(--green-glow);
}

.ef-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(246, 244, 238, 0.4);
  text-transform: uppercase;
}

.term-shell {
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.term-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(79, 174, 120, 0.005) 3px, rgba(79, 174, 120, 0.005) 4px);
  pointer-events: none;
  z-index: 0;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  position: relative;
  z-index: 1;
}

.term-title-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(246, 244, 238, 0.16);
  margin-left: 10px;
}

.term-out {
  padding: 22px 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 2.1;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
}

.term-out::-webkit-scrollbar {
  display: none;
}

.t-cmd {
  color: var(--green-glow);
}

.t-res {
  color: rgba(246, 244, 238, 0.4);
}

.t-hi {
  color: var(--cream);
}

.t-g {
  color: var(--green-bright);
}

.t-b {
  color: rgba(246, 244, 238, 0.55);
}

.t-y {
  color: var(--cream);
}

.t-cur {
  animation: blink 1s step-end infinite;
  color: var(--green-glow);
}

.t-ln {
  animation: termup .22s var(--ease);
}

/* ── WAVE VISUALIZER ──────────────────────────────────── */
.wave-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
}

/* ── CONTACT ──────────────────────────────────────────── */
#contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(24px, 6vw, 100px);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 66px;
}

#ccanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 2;
}

.contact-hl {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(50px, 10vw, 148px);
  letter-spacing: -4px;
  line-height: 0.88;
  margin-bottom: 48px;
}

.cl1 {
  color: var(--ink);
}

.cl2 {
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 238, 0.12);
}

.cl3 {
  color: var(--green-glow);
  display: block;
  cursor: default;
  transition: all .5s;
}

.cl3:hover {
  color: var(--cream);
  text-shadow: 0 0 50px rgba(242, 236, 221, 0.2);
}

.contact-links {
  display: flex;
  flex-direction: column;
  max-width: 580px;
}

.clink {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: rgba(246, 244, 238, 0.4);
  transition: all .4s;
}

.clink:hover {
  color: var(--ink);
  border-bottom-color: var(--green-glow);
  padding-left: 10px;
}

.cl-lbl {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 5px;
  color: rgba(79, 174, 120, 0.55);
  width: 64px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.cl-val {
  font-family: var(--f-body);
  font-size: 13px;
  flex: 1;
  letter-spacing: 0.2px;
}

.cl-arr {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .4s;
  font-size: 16px;
}

.clink:hover .cl-arr {
  transform: translateX(10px);
}

.footer {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--hair);
  padding-top: 24px;
}

.f-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(246, 244, 238, 0.12);
}

.f-logo em {
  color: rgba(79, 174, 120, 0.3);
  font-style: normal;
}

.f-copy {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(246, 244, 238, 0.12);
}

/* ── NAV BOT ──────────────────────────────────────────── */
#nav-bot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 5000;
}

.nb-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s;
  animation: botPulse 3s ease-in-out infinite;
}

.nb-btn:hover {
  background: var(--green-glow);
  animation: none;
  box-shadow: 0 8px 32px rgba(79, 174, 120, 0.35);
}

.nb-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nb-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 320px;
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.nb-panel.open {
  display: flex;
}

.nb-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nb-head-l {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-glow);
  animation: corePulse 2s ease-in-out infinite;
}

.nb-title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(246, 244, 238, 0.6);
  text-transform: uppercase;
}

.nb-close {
  background: none;
  border: none;
  color: rgba(246, 244, 238, 0.3);
  cursor: pointer;
  font-size: 16px;
  transition: color .3s;
  padding: 0;
}

.nb-close:hover {
  color: var(--alert);
}

.nb-msgs {
  height: 240px;
  overflow-y: auto;
  padding: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.8;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nb-msgs::-webkit-scrollbar {
  display: none;
}

.nb-msg {
  padding: 9px 12px;
  max-width: 88%;
}

.nb-msg.bot {
  background: rgba(79, 174, 120, 0.05);
  border-left: 2px solid rgba(79, 174, 120, 0.25);
  color: rgba(246, 244, 238, 0.7);
  align-self: flex-start;
}

.nb-msg.user {
  background: rgba(242, 236, 221, 0.05);
  border-right: 2px solid rgba(242, 236, 221, 0.25);
  color: rgba(246, 244, 238, 0.5);
  align-self: flex-end;
  text-align: right;
}

.nb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 14px;
  border-top: 1px solid var(--hair);
}

.nb-q {
  font-size: 8px;
  letter-spacing: 2px;
  border: 1px solid rgba(79, 174, 120, 0.18);
  color: rgba(79, 174, 120, 0.5);
  padding: 4px 8px;
  cursor: pointer;
  transition: all .3s;
  background: transparent;
  font-family: var(--f-mono);
  text-transform: uppercase;
}

.nb-q:hover {
  border-color: var(--green-glow);
  color: var(--green-glow);
}

.nb-inp-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 13px;
  display: flex;
  gap: 7px;
  align-items: center;
}

#nb-inp {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink);
  caret-color: var(--green-glow);
}

#nb-inp::placeholder {
  color: rgba(246, 244, 238, 0.18);
}

.nb-send {
  background: transparent;
  border: 1px solid rgba(79, 174, 120, 0.25);
  color: var(--green-glow);
  padding: 5px 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  cursor: pointer;
  transition: all .3s;
  flex-shrink: 0;
}

.nb-send:hover {
  background: var(--green-glow);
  color: var(--bg);
}

/* ── DEVELOPER MODE ───────────────────────────────────── */
.dev-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.dev-overlay[hidden] {
  display: none;
}

.dev-overlay-inner {
  max-width: 900px;
  width: 100%;
  padding: 40px 0;
}

.dev-close {
  background: rgba(79, 174, 120, 0.06);
  border: 1px solid rgba(79, 174, 120, 0.18);
  color: rgba(79, 174, 120, 0.5);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 3px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all .3s;
  margin-bottom: 40px;
  display: block;
}

.dev-close:hover {
  background: rgba(79, 174, 120, 0.12);
  color: var(--green-glow);
}

.dev-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 5px;
  color: var(--green-glow);
  border: 1px solid rgba(79, 174, 120, 0.35);
  padding: 6px 14px;
  margin-bottom: 20px;
  animation: devPulse 2s ease-in-out infinite;
}

.dev-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 100px);
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 0.94;
  margin-bottom: 16px;
}

.dev-sub {
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--dim);
  margin-bottom: 48px;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dev-card {
  background: rgba(79, 174, 120, 0.03);
  border: 1px solid rgba(79, 174, 120, 0.12);
  padding: 24px;
}

.dev-card-title {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(79, 174, 120, 0.5);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.dev-code {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 2;
  color: rgba(246, 244, 238, 0.55);
}

.dev-code span {
  color: var(--green-glow);
}

.dev-message {
  background: rgba(242, 236, 221, 0.04);
  border: 1px solid rgba(242, 236, 221, 0.15);
  padding: 28px;
  margin-bottom: 24px;
}

.dev-msg-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(242, 236, 221, 0.5);
  margin-bottom: 16px;
}

.dev-msg-text {
  font-family: var(--f-body);
  font-size: 16px;
  color: rgba(246, 244, 238, 0.6);
  line-height: 1.9;
}

.dev-konami-hint {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(246, 244, 238, 0.15);
  text-align: center;
}

/* ── TOAST ────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 100px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4999;
  pointer-events: none;
}

.toast {
  background: rgba(79, 174, 120, 0.16);
  border: 1px solid rgba(79, 174, 120, 0.35);
  color: var(--green-glow);
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1px;
  animation: toastIn .3s ease-out;
  pointer-events: auto;
  cursor: pointer;
}

.toast.error {
  background: rgba(181, 68, 58, 0.16);
  border-color: rgba(181, 68, 58, 0.35);
  color: var(--alert);
}

.toast:hover {
  background: rgba(79, 174, 120, 0.26);
}

/* ── REVEALS ──────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.rv.on {
  opacity: 1;
  transform: translateY(0);
}

.rl {
  opacity: 0;
  transform: translateX(-52px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.rl.on {
  opacity: 1;
  transform: translateX(0);
}

.rr {
  opacity: 0;
  transform: translateX(52px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.rr.on {
  opacity: 1;
  transform: translateX(0);
}

/* ── GLITCH TEXT ──────────────────────────────────────── */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text.glitch-active {
  animation: textGlitch .6s ease-in-out;
}

/* ── SCROLL TO TOP ────────────────────────────────────── */
#scroll-top-btn {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 4998;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(79, 174, 120, 0.08);
  border: 1px solid rgba(79, 174, 120, 0.22);
  color: var(--green-glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s, background .3s, transform .3s;
  pointer-events: none;
  transform: translateY(10px);
}

#scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scroll-top-btn:hover {
  background: rgba(79, 174, 120, 0.18);
}

#scroll-top-btn svg {
  width: 16px;
  height: 16px;
}

/* ── KEYFRAMES ────────────────────────────────────────── */
@keyframes letterIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scaleY(1.4);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scaleY(0.95);
  }
  80% {
    transform: translateY(3px) scaleY(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes letterGlitch {
  0% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  20% {
    clip-path: inset(10% 0 60% 0);
    transform: translateX(-4px);
  }
  40% {
    clip-path: inset(50% 0 20% 0);
    transform: translateX(4px);
  }
  60% {
    clip-path: inset(20% 0 40% 0);
    transform: translateX(-2px);
  }
  80% {
    clip-path: inset(0 0 80% 0);
    transform: translateX(2px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes wipeUp {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes blinkSmooth {
  0%, 45% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 0 12px var(--green-glow), 0 0 28px rgba(79, 174, 120, 0.2);
  }
  50% {
    box-shadow: 0 0 24px var(--green-glow), 0 0 56px rgba(79, 174, 120, 0.4);
  }
}

@keyframes scpulse {
  0%, 100% {
    opacity: .45;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(.5);
  }
}

@keyframes termup {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes think {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: .4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes botPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 174, 120, 0.35);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(79, 174, 120, 0);
  }
}

@keyframes livepulse {
  0%, 100% {
    opacity: .5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textGlitch {
  0% {
    text-shadow: 0 0 0 rgba(79, 174, 120, 0);
  }
  20% {
    text-shadow: -2px 0 var(--green-glow), -2px -2px var(--cream);
  }
  40% {
    text-shadow: 2px 2px var(--cream), 2px -2px var(--green-glow);
  }
  60% {
    text-shadow: -2px 2px var(--cream), -2px 0 var(--green-glow);
  }
  80% {
    text-shadow: 2px 0 var(--green-glow), 0 -2px var(--cream);
  }
  100% {
    text-shadow: 0 0 0 rgba(79, 174, 120, 0);
  }
}

@keyframes devPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 174, 120, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(79, 174, 120, 0);
  }
}

@keyframes timerPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width:1100px) {
  .hero-code-editor {
    display: none;
  }
}

@media (max-width:900px) {
  body {
    cursor: auto;
  }
  #cd,
  #cr {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .exp-wrap {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-hire) {
    display: none;
  }
  .work-slide {
    display: flex;
    flex-direction: column;
  }
  .ws-pm {
    min-height: 220px;
    flex: 0 0 220px;
  }
  .nb-panel {
    width: min(300px, 90vw);
  }
  .photo-frame {
    max-width: 280px;
  }
  .comparison-modal-content {
    padding: 20px;
  }
  #building-widget {
    display: none;
  }
  .studytool-demo {
    width: 90%;
  }
  .dev-grid {
    grid-template-columns: 1fr;
  }
  .cine-inner {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .cine-vortex {
    display: none;
  }
}

@media (max-width:600px) {
  .ws-title {
    font-size: clamp(38px, 14vw, 76px);
  }
  .contact-hl {
    letter-spacing: -2px;
  }
  .about-headline {
    letter-spacing: -1px;
  }
  .h-stats {
    gap: 20px;
  }
  .ws-pi {
    padding: 28px 20px;
  }
  nav {
    padding: 0 16px;
  }
  .bl-timeline {
    padding-left: 20px;
  }
  .bl-entry::before {
    left: -25px;
  }
}
/* ── MOBILE FIXES FOR PROJECT SLIDES ────────────────────── */
/* This completely removes the grid and gap between image and content */

@media (max-width: 768px) {
  /* COMPLETELY OVERRIDE the grid layout - NO GAPS */
  .work-slide,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh;
    overflow-y: auto !important;
    width: 100vw !important;
    background: var(--bg) !important;
  }

  /* Image container - at the top, NO margin/padding */
  .work-slide .ws-pm,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pm {
    min-height: 38vh !important;
    max-height: 42vh !important;
    height: auto !important;
    flex: 0 0 auto !important;
    position: relative !important;
    width: 100% !important;
    background: var(--bg2) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    order: 1 !important;
    display: block !important;
  }

  /* Image - full width, NO margins */
  .work-slide .ws-pm img,
  .work-slide .ws-pm video,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pm img,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pm video {
    width: 100% !important;
    height: 100% !important;
    min-height: 180px !important;
    max-height: 42vh !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 0.85 !important;
    transform: none !important;
    filter: grayscale(5%) !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
  }

  /* Content panel - directly below image with NO gap */
  .work-slide .ws-pi,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pi {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 16px 16px 25px !important;
    margin: 0 !important;
    border: none !important;
    background: var(--bg) !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  /* Remove ALL gaps between elements inside content */
  .ws-pi-tag {
    font-size: 8px !important;
    letter-spacing: 4px;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
  }

  .ws-pi-name {
    font-size: clamp(20px, 4.5vw, 28px) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2;
    padding: 0 !important;
  }

  .ws-pi-desc {
    font-size: 12px !important;
    line-height: 1.6;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
  }

  .ws-pi-stack {
    gap: 4px;
    flex-wrap: wrap;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
  }

  .chip {
    font-size: 6px !important;
    padding: 3px 8px !important;
  }

  .ws-pi-link {
    font-size: 8px !important;
    margin: 10px 0 0 0 !important;
    gap: 6px;
    padding: 0 !important;
  }

  .ws-pi-link .arr {
    width: 16px;
  }

  /* Hide unnecessary elements on mobile */
  .ws-overlay {
    display: none !important;
    opacity: 0 !important;
  }

  .ws-bignum {
    display: none !important;
  }

  .ws-view {
    display: none !important;
  }

  /* StudyTool slide - NO gaps */
  .studytool-slide {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .studytool-pm {
    min-height: 38vh !important;
    max-height: 42vh !important;
    padding: 12px;
    width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .studytool-demo {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin: 0;
    max-height: 100%;
    overflow-y: auto;
    min-height: 250px;
  }

  /* AI Terminal slide - NO gaps */
  .ai-slide {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .ws-ai {
    min-height: 38vh !important;
    max-height: 42vh !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  /* Intro slide - keep as is */
  .work-slide.intro-slide {
    padding: 30px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .ws-title {
    font-size: clamp(32px, 8vw, 48px) !important;
    margin-bottom: 8px;
  }

  .ws-sub {
    font-size: 13px !important;
    margin-top: 8px;
    max-width: 100%;
  }

  .ws-hint {
    font-size: 7px;
    margin-top: 16px;
  }

  /* Dots navigation */
  .work-dots {
    right: 8px;
    gap: 6px;
    z-index: 20;
  }

  .wdot {
    width: 3px;
    height: 3px;
  }

  .wdot.active {
    height: 14px;
    background: var(--green-glow);
  }
}

@media (max-width: 480px) {
  .work-slide .ws-pm,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pm {
    min-height: 32vh !important;
    max-height: 38vh !important;
  }

  .work-slide .ws-pm img,
  .work-slide .ws-pm video,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pm img,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pm video {
    min-height: 140px !important;
    max-height: 38vh !important;
  }

  .work-slide .ws-pi,
  .work-slide:not(.intro-slide):not(.studytool-slide):not(.ai-slide) .ws-pi {
    padding: 12px 14px 20px !important;
  }

  .ws-pi-name {
    font-size: clamp(18px, 4vw, 22px) !important;
  }

  .ws-pi-desc {
    font-size: 11px !important;
    line-height: 1.5;
  }

  .chip {
    font-size: 5px !important;
    padding: 2px 6px !important;
  }

  .studytool-pm {
    min-height: 32vh !important;
    max-height: 38vh !important;
  }

  .ws-ai {
    min-height: 32vh !important;
    max-height: 38vh !important;
  }
}
