/* ══════════════════════════════════════════════
   POSAWEE.DESIGN — Glitch × Manga
   ══════════════════════════════════════════════ */

:root {
  --bg:      #030010;
  --bg2:     #08051c;
  --bg3:     #030512;
  --cyan:    #00FFF0;
  --magenta: #FF00A0;
  --red:     #FF003C;
  --white:   #FFFFFF;
  --grey:    #9999A6;
  --muted:   #525259;
  --dim:     #180F27;
  --font:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; }

/* ─── Utility colors ────────────────────────── */
.c-cyan    { color: var(--cyan); }
.c-magenta { color: var(--magenta); }

/* ─── Scan-lines overlay ────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.038) 0px,
    rgba(255,255,255,0.038) 1px,
    transparent 1px,
    transparent 20px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* Ambient glow — left cyan, right magenta */
.hero::before {
  content: '';
  position: absolute;
  left: -80px; top: 44px;
  width: 780px; height: 360px;
  background: radial-gradient(ellipse, rgba(0,255,240,0.13) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  right: -40px; top: 60px;
  width: 740px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,0,160,0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* ── Ticker top ──────────────────────────── */
.ticker-top {
  position: relative;
  z-index: 10;
  background: var(--bg2);
  border-bottom: 1px solid rgba(0,255,240,0.22);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.09em;
}
.ticker-left  { color: var(--cyan); }
.ticker-right { color: var(--muted); }
.load-bar     { color: var(--cyan); opacity: 0.7; }
.cursor {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Hero body: 56% | 44% grid ───────────── */
.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 56% 44%;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 82px);
}

/* Zone divider: cyan (top) → magenta (bottom) */
.zone-divider {
  position: absolute;
  left: 56%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan) 50%, var(--magenta) 50%);
  z-index: 20;
}

/* ── LEFT: Glitch Terminal ───────────────── */
.hero-left {
  padding: 52px 80px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Glitch name */
.glitch-wrap { margin-bottom: 28px; }

.glitch-name {
  font-size: clamp(72px, 8vw, 110px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -3px;
  line-height: 1;
  position: relative;
  display: inline-block;
  animation: glitch-jitter 3.2s infinite;
}

/* Red ghost — offset right */
.glitch-name::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--red);
  opacity: 0.55;
  transform: translateX(6px);
  clip-path: polygon(0 10%, 100% 10%, 100% 42%, 0 42%);
  animation: glitch-r 6s infinite;
}

/* Cyan ghost — offset left */
.glitch-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--cyan);
  opacity: 0.45;
  transform: translateX(-5px) translateY(4px);
  clip-path: polygon(0 55%, 100% 55%, 100% 82%, 0 82%);
  animation: glitch-c 6s infinite;
}

@keyframes glitch-jitter {
  0%,80%,100% { transform:none; filter:none; text-shadow:none; }
  81% { transform:translate(-6px,2px) skewX(-4deg);
        text-shadow: 5px 0 #ff00a0, -5px 0 #00fff0;
        filter:brightness(1.4); }
  82% { transform:translate(6px,-3px) skewX(3deg);
        text-shadow: -4px 0 #ff00a0, 4px 0 #00fff0; }
  83% { transform:translate(-3px,1px);
        filter:brightness(0.7) contrast(1.5); }
  84% { transform:none; filter:none; text-shadow:none; }
  85% { transform:translate(8px,0);
        text-shadow: -6px 0 #ff00a0;
        filter:brightness(1.2); }
  86% { transform:translate(-4px,2px); text-shadow:none; }
  87% { transform:none; filter:none; }
  93% { transform:translate(3px,-1px);
        text-shadow: 3px 0 #00fff0;
        filter:brightness(1.1); }
  94% { transform:translate(-2px,2px); }
  95% { transform:none; filter:none; text-shadow:none; }
}
@keyframes glitch-r {
  0%,80%,100% { clip-path:polygon(0 8%,100% 8%,100% 40%,0 40%); transform:translateX(8px); opacity:.7; }
  81% { clip-path:polygon(0 20%,100% 20%,100% 52%,0 52%); transform:translate(12px,-4px); opacity:1; }
  82% { clip-path:polygon(0 3%, 100% 3%, 100% 32%,0 32%); transform:translateX(-4px); opacity:.5; }
  83% { clip-path:polygon(0 8%,100% 8%,100% 40%,0 40%); transform:translateX(8px); opacity:.7; }
  84% { clip-path:polygon(0 60%,100% 60%,100% 72%,0 72%); transform:translateX(10px); opacity:.8; }
  85% { clip-path:polygon(0 8%,100% 8%,100% 40%,0 40%); transform:translateX(8px); opacity:.7; }
}
@keyframes glitch-c {
  0%,80%,100% { clip-path:polygon(0 52%,100% 52%,100% 80%,0 80%); transform:translate(-7px,5px); opacity:.65; }
  81% { clip-path:polygon(0 58%,100% 58%,100% 92%,0 92%); transform:translate(-12px,8px); opacity:1; }
  82% { clip-path:polygon(0 45%,100% 45%,100% 75%,0 75%); transform:translate(5px,2px); opacity:.4; }
  83% { clip-path:polygon(0 52%,100% 52%,100% 80%,0 80%); transform:translate(-7px,5px); opacity:.65; }
  85% { clip-path:polygon(0 10%,100% 10%,100% 22%,0 22%); transform:translate(-9px,3px); opacity:.8; }
  86% { clip-path:polygon(0 52%,100% 52%,100% 80%,0 80%); transform:translate(-7px,5px); opacity:.65; }
}

/* Role */
.role {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 14px;
}

/* Accent line */
.h-accent {
  height: 1px;
  width: min(400px, 80%);
  background: rgba(0,255,240,0.45);
  margin-bottom: 18px;
}

/* Terminal data */
.init-text {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.terminal-data { margin-bottom: 28px; }
.td-line {
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--grey);
  line-height: 2.2;
  opacity: 0;
  animation: fadeIn 0.4s forwards;
}
.td-line:nth-child(1) { animation-delay: 0.8s; }
.td-line:nth-child(2) { animation-delay: 1.1s; }
.td-line:nth-child(3) { animation-delay: 1.4s; }
@keyframes fadeIn { to { opacity:1 } }

/* Skill matrix */
.skill-matrix { margin-bottom: 36px; }
.section-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sn {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--grey);
  width: 108px;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  max-width: 280px;
  height: 8px;
  background: var(--dim);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  transition: width 1.3s cubic-bezier(0.4,0,0.2,1);
}
.cyan-fill { background: var(--cyan); }
.dim-fill  { background: var(--muted); }

.pct {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--grey);
  width: 34px;
  flex-shrink: 0;
}

/* CTA */
.btn-cyan {
  display: inline-block;
  padding: 0 28px;
  height: 56px;
  line-height: 56px;
  background: rgba(0,255,240,0.07);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  align-self: flex-start;
  margin-bottom: 18px;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-cyan:hover {
  background: rgba(0,255,240,0.15);
  box-shadow: 0 0 28px rgba(0,255,240,0.28);
}

.press-key {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── RIGHT: Manga Panel ──────────────────── */
.hero-right {
  display: flex;
  align-items: stretch;
  padding: 50px 24px 50px 26px;
}

.manga-panel {
  border: 2px solid var(--magenta);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(255,0,160,0.14),
    inset 0 0 40px rgba(255,0,160,0.04);
}

/* Corner marks */
.mp-corner {
  position: absolute; width: 12px; height: 12px; z-index: 3;
  pointer-events: none;
}
.mp-tl { top: -1px;  left: -1px;  border-top: 3px solid var(--cyan); border-left: 3px solid var(--cyan); }
.mp-tr { top: -1px;  right: -1px; border-top: 3px solid var(--cyan); border-right: 3px solid var(--cyan); }
.mp-bl { bottom: -1px; left: -1px;  border-bottom: 3px solid var(--cyan); border-left: 3px solid var(--cyan); }
.mp-br { bottom: -1px; right: -1px; border-bottom: 3px solid var(--cyan); border-right: 3px solid var(--cyan); }

/* Speech bubble */
.speech-bubble {
  margin: 24px 20px 0;
  padding: 18px 22px 16px;
  border: 1.5px solid rgba(255,0,160,0.5);
  border-top: 3px solid var(--magenta);
  background: rgba(24,15,39,0.9);
  position: relative;
  flex-shrink: 0;
}
.speech-bubble p {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
}
.bubble-rule {
  height: 1px;
  width: 100%;
  background: rgba(255,0,160,0.3);
  margin: 12px 0 10px;
}
.bubble-credit {
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em;
  color: var(--grey) !important;
}

/* Speed lines + avatar */
.speed-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
#speedCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.avatar-circle {
  position: relative;
  z-index: 2;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  background: radial-gradient(circle at 40% 35%, rgba(255,0,160,0.18), var(--dim) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px rgba(255,0,160,0.07),
    0 0 40px rgba(255,0,160,0.28),
    0 0 80px rgba(255,0,160,0.12);
  overflow: hidden;
}
.avatar-init {
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  letter-spacing: -2px;
  user-select: none;
  text-shadow: 0 0 40px rgba(255,0,160,0.5);
}
.avatar-circle img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Stat strip */
.panel-stats {
  display: flex; align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.ps-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 14px 8px;
}
.ps-divider {
  width: 1px; background: rgba(255,255,255,0.07); flex-shrink: 0;
}
.ps-val {
  font-size: 18px; font-weight: 900; letter-spacing: 0.04em; line-height: 1;
}
.ps-label {
  font-size: 8px; letter-spacing: 0.14em; color: var(--muted);
}

/* Chapter entry */
.chapter-entry {
  margin: 0 20px 20px;
  border: 1px solid rgba(255,0,160,0.35);
  border-left: 3px solid var(--magenta);
  background: var(--bg2);
  padding: 14px 18px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.chapter-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--magenta);
}
.chapter-works {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: color 0.2s;
  white-space: nowrap;
}
.chapter-works:hover { color: var(--magenta); }

/* ── Bottom ticker ───────────────────────── */
.ticker-bottom {
  background: var(--bg2);
  border-top: 1px solid var(--magenta);
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--muted);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   CASE STUDY
   ══════════════════════════════════════════════ */
.case-study {
  background: var(--bg3);
  padding: 80px 80px 100px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,255,240,0.22);
}

/* Ambient glows */
.case-study::before {
  content: '';
  position: absolute;
  left: -80px; top: 180px;
  width: 580px; height: 320px;
  background: radial-gradient(ellipse, rgba(255,0,160,0.1) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.case-study::after {
  content: '';
  position: absolute;
  right: -20px; top: 300px;
  width: 560px; height: 320px;
  background: radial-gradient(ellipse, rgba(0,255,240,0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.section-header { margin-bottom: 4px; }
.chapter-tag  { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 6px; }
.section-exe  { font-size: 32px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 28px; }

.h-rule {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 36px;
}

.project-title {
  font-size: clamp(36px,3.6vw,52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.project-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 26px;
}

.project-cover {
  background: var(--dim);
  height: 300px;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cover-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--magenta);
}
.cover-placeholder {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3-column breakdown */
.case-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}
.col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.col-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--grey);
}

/* Project subtitle */
.project-sub {
  font-size: 15px;
  color: var(--grey);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 48px;
}
.stat-item {
  background: var(--dim);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s;
}
.stat-item:hover { background: rgba(24,15,39,0.9); }
.stat-num {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* Dashboard screenshots grid */
.dash-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 52px;
}
.dash-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,255,240,0.18);
  background: var(--dim);
}
.dash-shot img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.8);
  transition: filter 0.3s, transform 0.4s;
}
.dash-shot:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.04);
}
.shot-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding: 6px 10px;
  background: rgba(0,0,0,0.6);
}

/* Project cover image (actual img) */
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-cyan-outline {
  display: inline-block;
  margin-top: 32px;
  padding: 0 28px;
  height: 44px;
  line-height: 44px;
  background: var(--dim);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-cyan-outline:hover {
  background: rgba(0,255,240,0.1);
  box-shadow: 0 0 24px rgba(0,255,240,0.26);
}

/* ── Case Study preview (index.html) ───────── */
.cs-preview-banner {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 0;
}
.cs-preview-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.cs-tag {
  font-size: 8px; letter-spacing: .16em;
  border: 1px solid rgba(0,255,240,.3); color: var(--cyan);
  padding: 3px 10px; font-family: var(--font);
}
.cs-tag.mag { border-color: rgba(255,0,160,.3); color: var(--magenta); }
.cs-hook {
  font-size: 14px; line-height: 1.75; color: var(--grey); margin-top: 16px;
}
.cs-preview-right {
  position: relative;
  border: 1px solid rgba(255,0,160,.4);
  overflow: hidden;
}
.cs-preview-right img {
  width: 100%; display: block;
  filter: brightness(.9) saturate(.85);
  transition: filter .3s;
}
.cs-preview-right:hover img { filter: brightness(1) saturate(1); }

/* Meta bar */
.cs-preview-meta {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(255,255,255,.07);
  margin: 40px 0 48px;
}
.cs-meta-col {
  background: var(--dim); padding: 16px 24px;
  display: flex; flex-direction: column; gap: 5px;
  border-bottom: 2px solid transparent;
  transition: border-color .3s;
}
.cs-meta-col:nth-child(odd) { border-bottom-color: var(--cyan); }
.cs-meta-col:nth-child(even) { border-bottom-color: var(--magenta); }
.cs-meta-label {
  font-size: 8px; letter-spacing: .18em; color: var(--muted);
}
.cs-meta-value {
  font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--white);
}

/* ══════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════ */
.about {
  background: var(--bg);
  padding: 80px 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--magenta);
}

.about::before {
  content: '';
  position: absolute;
  right: -40px; top: 80px;
  width: 620px; height: 320px;
  background: radial-gradient(ellipse, rgba(0,255,240,0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.about::after {
  content: '';
  position: absolute;
  left: -60px; top: 220px;
  width: 520px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,0,160,0.1) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.whoami      { font-size: 11px; letter-spacing: 0.08em; margin-bottom: 6px; }
.char-title  { font-size: 26px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 28px; }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 70px;
}

/* Header row: avatar + name/attrs */
.about-header {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 28px;
}
.about-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.avatar-box {
  width: 188px;
  height: 188px;
  background: var(--dim);
  border: 2px solid var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  box-shadow: 0 0 36px rgba(255,0,160,0.25);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }

/* Avatar column */
.about-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.avatar-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.avatar-handle {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.avatar-status {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #00e676;
  font-weight: 700;
}

/* Specialty list (left col) */
.about-spec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
}
.about-spec {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.about-spec:nth-child(odd)  { border-color: rgba(0,255,240,0.18);  color: rgba(0,255,240,0.65); }
.about-spec:nth-child(even) { border-color: rgba(255,0,160,0.18);  color: rgba(255,0,160,0.65); }

/* Attribute strip */
.about-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.about-attr {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--dim);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 10px 16px;
  min-width: 90px;
}
.attr-label {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
}
.attr-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.attr-value.available { color: #00e676; }

.about-name  { font-size: 22px; font-weight: 900; letter-spacing: 0.04em; color: var(--white); margin-bottom: 10px; }
.about-meta  { font-size: 16px; color: var(--grey); margin-bottom: 4px; }
.about-rule  {
  height: 1px;
  background: rgba(255,255,255,0.1);
  max-width: 560px;
  margin: 18px 0;
}
.about-bio   { font-size: 13px; color: var(--grey); line-height: 1.8; max-width: 620px; margin-bottom: 0; }

/* About 2-col inner layout */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-col-left  { display: flex; flex-direction: column; gap: 0; }
.about-col-right { display: flex; flex-direction: column; gap: 0; }

.about-skills { margin: 0 0 28px; }

/* Contact buttons (About section) */
.contact-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn-contact {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-contact:hover { opacity: 0.8; }
.contact-btns--vertical {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.btn-email {
  background: rgba(255,0,160,0.15);
  border: 1px solid var(--magenta);
  color: var(--magenta);
}
.btn-linkedin {
  background: rgba(19,0,190,0.15);
  border: 1px solid #4664da;
  color: #fff;
}
.btn-tel {
  background: rgba(19,0,190,0.15);
  border: 1px solid #a9b61b;
  color: #fff;
}
.btn-line {
  background: rgba(6,199,85,0.1);
  border: 1px solid #06c755;
  color: #06c755;
}

.btn-magenta {
  display: inline-block;
  padding: 0 28px;
  height: 48px;
  line-height: 48px;
  background: var(--dim);
  border: 2px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.3s, box-shadow 0.3s;
}
.btn-magenta:hover {
  background: rgba(255,0,160,0.1);
  box-shadow: 0 0 28px rgba(255,0,160,0.3);
}

/* ═══════════════════════════════════════════════════
   HERO WOW EFFECTS
═══════════════════════════════════════════════════ */


/* ── Avatar ring pulse ── */
@keyframes ring-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255,0,160,.07),
                0 0 40px rgba(255,0,160,.28),
                0 0 80px rgba(255,0,160,.12);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255,0,160,.03),
                0 0 70px rgba(255,0,160,.55),
                0 0 150px rgba(255,0,160,.22);
  }
}
.avatar-circle { animation: ring-pulse 2.4s ease-in-out infinite; }

/* ── Sonar rings ── */
.sonar-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 164px; height: 164px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,240,0.65);
  transform: translate(-50%,-50%) scale(1);
  animation: sonar-expand 2s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}
@keyframes sonar-expand {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2.8); opacity: 0; }
}

/* ── Panel border flicker ── */
@keyframes border-flicker {
  0%, 94%, 100% { border-color: var(--magenta); box-shadow: 0 0 60px rgba(255,0,160,.14), inset 0 0 40px rgba(255,0,160,.04); }
  95% { border-color: rgba(255,0,160,.9);  box-shadow: 0 0 90px rgba(255,0,160,.5); }
  96% { border-color: rgba(255,0,160,.1);  box-shadow: 0 0 20px rgba(255,0,160,.05); }
  97% { border-color: rgba(255,0,160,.85); box-shadow: 0 0 80px rgba(255,0,160,.4); }
  98% { border-color: rgba(255,0,160,.3);  }
}
.manga-panel { animation: border-flicker 5s infinite; }

/* ── [NAT] title — continuous neon glow pulse ── */
@keyframes name-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(0,255,240,.4), 0 0 60px rgba(0,255,240,.15); }
  50%       { text-shadow: 0 0 40px rgba(0,255,240,.8), 0 0 100px rgba(0,255,240,.3), 0 0 160px rgba(0,255,240,.1); }
}
.glitch-name { animation: glitch-jitter 3.2s infinite, name-glow 2.8s ease-in-out infinite; }

/* ── CTA button glow pulse ── */
@keyframes btn-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 22px rgba(0,255,240,.3), 0 0 45px rgba(0,255,240,.1); }
}
.btn-cyan { animation: btn-glow 2.2s ease-in-out infinite; }

/* ── Terminal boot: lines hidden until JS triggers ── */
.td-line { opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.td-line.visible { opacity: 1; transform: none; }


/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0 26px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
  display: flex;
  gap: 8px;
}
.footer-mid { color: var(--muted); }

/* ══════════════════════════════════════════════
   Responsive (tablet/mobile — basic)
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .zone-divider { display: none; }
  .hero-right { padding: 0 24px 24px; }
  .manga-panel { min-height: 440px; }

  .ticker-top  { padding: 0 24px; }
  .hero-left   { padding: 40px 24px 40px; }

  .case-study,
  .about { padding-left: 24px; padding-right: 24px; }

  /* Case study: stack vertically on mobile */
  .cs-preview-banner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cs-preview-right { order: -1; }

  .case-cols   { grid-template-columns: 1fr; }
  .stats-bar   { grid-template-columns: repeat(2, 1fr); }
  .dash-shots  { grid-template-columns: repeat(2, 1fr); }

  /* About me */
  .about-body         { padding-bottom: 40px; }
  .about-rule         { max-width: 100%; }

  /* Header: stack vertically on mobile */
  .about-header       { flex-direction: column; align-items: center; gap: 16px; margin-bottom: 20px; text-align: center; }
  .avatar-box         { width: 140px; height: 140px; flex-shrink: 0; }
  .about-header-info  { align-items: center; }
  .about-name         { font-size: 18px; text-align: center; }
  .avatar-status      { text-align: center; }

  /* Attrs: 2-col grid */
  .about-attrs        { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .about-attr         { min-width: unset; }

  /* Inner cols: single col */
  .about-cols         { grid-template-columns: 1fr; gap: 20px; }
  .contact-btns--vertical { flex-direction: column; margin-top: 16px; }
  .contact-btns--vertical .btn-contact { width: 100%; box-sizing: border-box; }

  .project-title { font-size: 36px; }
  .btn-cyan-outline { margin-top: 28px; }
}
