* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --navy: #080f1e;
  --navy2: #0d1b35;
  --navy3: #112040;
  --amber: #f4d282;
  --cyan: #66bce0;
  --white: #ffffff;
  --off: #c8d8ee;
  --muted: rgba(180, 210, 240, 0.45);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: "Montserrat", sans-serif;
  --font-mono: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* warm light system */
body::before {
  content: "";
  position: fixed;
  top: -30%;
  right: -5%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 180, 41, 0.09) 0%,
    rgba(240, 140, 20, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  bottom: -25%;
  left: -8%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.045) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 24s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, -30px) scale(1.08);
  }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(8, 15, 30, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo .first {
  font-weight: 300;
  font-size: 16px;
  color: var(--off);
}
.nav-logo .last {
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-shrink: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-links a.active {
  color: var(--amber);
  text-shadow: 0 0 12px rgba(240, 180, 41, 0.5);
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 4px;
  color: var(--amber);
  cursor: pointer;
  padding: 6px 12px;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(240, 180, 41, 0.1);
  border-color: var(--amber);
}

/* ── PAGES ── */
.page {
  display: none;
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.page.active {
  display: block;
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SHARED ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.25s,
    transform 0.25s,
    background 0.25s;
}
.glass-card:hover {
  border-color: rgba(240, 180, 41, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.white-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.white-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.btn-amber {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-amber:hover {
  opacity: 0.88;
}
.btn-outline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  color: var(--off);
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(240, 180, 41, 0.06);
}

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.tag-amber {
  background: rgba(240, 180, 41, 0.12);
  color: var(--amber);
  border: 1px solid rgba(240, 180, 41, 0.2);
}
.tag-cyan {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.15);
}
.tag-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--off);
  border: 1px solid var(--glass-border);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-title span {
  color: var(--amber);
}
.section-text {
  font-size: 13.5px;
  color: var(--off);
  line-height: 1.78;
  margin-bottom: 22px;
  max-width: 420px;
}

/* photo glow */
.glow-ring {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.glow-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 210, 0.5) 0%,
    rgba(255, 255, 180, 0.08) 52%,
    transparent 72%
  );
  pointer-events: none;
}
.photo-circle {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  text-align: center;
  width: 100%;
  height: 100%;
}
.photo-ph svg {
  width: 36px;
  height: 36px;
  opacity: 0.2;
  fill: currentColor;
}

/* ════════════════════════
   HOME
════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 0 80px;
  gap: 60px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 180, 41, 0.4),
    rgba(56, 189, 248, 0.2),
    transparent
  );
  animation: border-glow 3s ease-in-out infinite alternate;
}
@keyframes border-glow {
  0% {
    opacity: 0.4;
    transform: scaleX(0.8);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}
.hero-name {
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  flex-wrap: wrap;
}
.hero-name .fn {
  font-weight: 200;
  font-size: clamp(52px, 7vw, 96px);
  color: rgba(200, 216, 238, 0.45);
  letter-spacing: -0.04em;
}
.hero-name .ln {
  font-weight: 800;
  font-size: clamp(52px, 7vw, 96px);
  color: var(--white);
  letter-spacing: -0.045em;
  position: relative;
}
.hero-name .ln::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: ul-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
@keyframes ul-in {
  to {
    transform: scaleX(1);
  }
}
.hero-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  min-height: 18px;
}
.hero-desc {
  font-size: 14px;
  color: var(--off);
  max-width: 380px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.hero-social {
  display: flex;
  gap: 10px;
}
.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--off);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.hero-social a:hover {
  border-color: rgba(240, 180, 41, 0.4);
  color: var(--amber);
}
.hero-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Dashboard metrics strip */

/* About preview */
.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px;
  gap: 80px;
  border-top: 1px solid var(--glass-border);
  margin-top: 0;
}
.about-glow-sm {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.about-glow-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 210, 0.42) 0%,
    rgba(255, 255, 180, 0.06) 52%,
    transparent 70%
  );
  pointer-events: none;
}
.about-photo-sm {
  position: relative;
  z-index: 1;
  width: 195px;
  height: 195px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy3);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Projects */
.home-projects {
  padding: 0 80px 80px;
}
.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.card-preview {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-body {
  padding: 16px 18px 18px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 3px;
}
.card-title span {
  color: #1a55d4;
}
.card-desc {
  font-size: 11.5px;
  color: #556;
  line-height: 1.55;
}
.proj-center {
  text-align: center;
  padding-top: 8px;
}

/* Mockups */
.mockup-laptop {
  width: 78%;
  background: #14142a;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.laptop-bar {
  height: 18px;
  background: #0a0a18;
  display: flex;
  align-items: center;
  padding: 0 7px;
  gap: 4px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
}
.laptop-screen {
  height: 130px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.laptop-ph {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 6px;
}
.mockup-phone {
  background: #111;
  border-radius: 14px;
  border: 2px solid #222;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.phone-notch {
  height: 13px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notch-inner {
  width: 26px;
  height: 6px;
  background: #1e1e1e;
  border-radius: 3px;
}
.phone-screen {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Footer */
.home-footer {
  background: rgba(13, 27, 53, 0.8);
  padding: 36px 48px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.footer-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.footer-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.footer-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--amber);
}

/* ════════════════════════
   ABOUT
════════════════════════ */
#about {
  padding: 60px 80px 80px;
}
.page-title {
  font-family: var(--font-display);
  line-height: 0.9;
  margin-bottom: 52px;
}
.page-title .ptl {
  display: block;
  font-weight: 300;
  font-size: clamp(34px, 5vw, 66px);
  color: var(--off);
  letter-spacing: -0.02em;
}
.page-title .ptb {
  display: block;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 66px);
  color: var(--white);
  letter-spacing: -0.03em;
}
.page-title .pta {
  color: var(--amber);
}

.about-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}
.about-glow-lg {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-glow-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 210, 0.48) 0%,
    rgba(255, 255, 180, 0.06) 52%,
    transparent 70%
  );
  pointer-events: none;
}
.about-photo-lg {
  position: relative;
  z-index: 1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy3);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-body p {
  font-size: 13.5px;
  color: var(--off);
  line-height: 1.82;
  margin-bottom: 14px;
}
.about-long {
  margin-bottom: 48px;
  max-width: 900px;
}
.about-long p {
  font-size: 13.5px;
  color: var(--off);
  line-height: 1.82;
  margin-bottom: 14px;
}

/* Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-ph {
  width: 100%;
  height: 100%;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  gap: 6px;
}
.gallery-ph svg {
  width: 24px;
  height: 24px;
  opacity: 0.2;
  fill: currentColor;
}

/* Toolkit */
.toolkit-block {
  margin-bottom: 56px;
}
.block-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}
.block-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.block-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.tools-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--off);
  padding: 9px 16px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.tool-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(240, 180, 41, 0.3);
  color: var(--white);
}

/* Skills */
.skills-block {
  margin-bottom: 56px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.skill-tag {
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.skill-tag:hover {
  background: rgba(255, 255, 255, 0.06);
}
.skill-tag-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--white);
  margin-bottom: 3px;
}
.skill-tag-level {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.skill-tag-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.skill-tag-bar {
  height: 1.5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1px;
  overflow: hidden;
}
.skill-tag-fill {
  height: 100%;
  border-radius: 1px;
}

/* Timeline */
.bg-block {
  margin-top: 8px;
}
.about-bottom-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
.side-photo-wrap {
  position: relative;
}
.side-photo-accent {
  position: absolute;
  top: -14px;
  left: -16px;
  z-index: -1;
  width: 110px;
  height: 130px;
  background: rgba(240, 180, 41, 0.06);
  border: 1px solid rgba(240, 180, 41, 0.12);
  border-radius: 2px;
}
.side-photo-inner {
  width: 176px;
  height: 240px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  gap: 6px;
}
.side-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-photo-inner svg {
  width: 24px;
  height: 24px;
  opacity: 0.2;
  fill: currentColor;
}
.tl-item {
  display: grid;
  grid-template-columns: 60px 14px 1fr;
  gap: 0 16px;
  margin-bottom: 22px;
  align-items: start;
}
.tl-yr {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--off);
  text-align: right;
  padding-top: 2px;
}
.tl-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  z-index: 1;
  margin-top: 3px;
}
.tl-dot.active {
  border-color: var(--amber);
  background: var(--amber);
}
.tl-line {
  width: 1px;
  flex: 1;
  min-height: 16px;
  background: rgba(255, 255, 255, 0.1);
}
.tl-ev {
  font-size: 13px;
  color: var(--off);
  padding-top: 2px;
  line-height: 1.4;
}
.tl-ev.amber {
  color: var(--amber);
  font-style: italic;
}

/* ════════════════════════
   WORKS
════════════════════════ */
#works {
  padding: 60px 80px 80px;
}
.works-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 118px);
  color: var(--amber);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #f0b429, #fcd34d, #f0b429);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 4s linear infinite;
}
@keyframes title-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
.works-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 52px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  max-width: 520px;
}
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Work card */
.work-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
/* shimmer */
.work-card::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -60%;
  width: 35%;
  height: 300%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 2;
}
.work-card:hover::after {
  left: 130%;
}

/* Expand overlay on hover */
.work-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.work-card:hover .work-card-overlay {
  opacity: 1;
}
.work-card-overlay-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.08em;
  transform: translateY(6px);
  transition: transform 0.3s;
}
.work-card:hover .work-card-overlay-text {
  transform: translateY(0);
}

.work-preview {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
}
.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-preview img {
  transform: scale(1.03);
}

.work-body {
  padding: 20px 22px 22px;
  position: relative;
}

/* Role badge */
.work-role-badge {
  position: absolute;
  top: -14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
}

.work-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #111;
  margin-bottom: 6px;
}
.work-card-title span {
  color: #1a55d4;
}
.work-card-desc {
  font-size: 12px;
  color: #445;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* BA section */
.work-ba-section {
  background: #f8f9ff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-left: 3px solid var(--amber);
}
.work-ba-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.work-ba-text {
  font-size: 11px;
  color: #334;
  line-height: 1.5;
}

.work-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 100px;
  background: #eef1f8;
  color: #446;
  border: 1px solid #dde;
  transition:
    background 0.2s,
    color 0.2s;
}
.work-card:hover .work-tag {
  background: #e8edff;
  color: #224;
}

/* ════════════════════════
   PROJECT DETAIL
════════════════════════ */
#project-detail {
  padding: 60px 80px 80px;
  display: none;
}
#project-detail.active {
  display: block;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 32px;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.back-btn:hover {
  color: var(--off);
}
.detail-header {
  margin-bottom: 48px;
}
.detail-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 58px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.detail-title span {
  color: var(--amber);
}
.detail-tag-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0;
}
.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.detail-meta-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--off);
}
.detail-overview-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
.detail-glow {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-glow::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 160, 0.55) 0%,
    rgba(240, 180, 41, 0.12) 45%,
    transparent 70%
  );
  pointer-events: none;
}
.detail-photo {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy3);
  border: 3px solid rgba(240, 180, 41, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.06);
}
.detail-photo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.detail-photo-ph svg {
  width: 28px;
  height: 28px;
  opacity: 0.2;
  fill: currentColor;
}

/* Feature grid in detail */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.feature-grid .feature-card:nth-child(1) {
  animation: section-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.feature-grid .feature-card:nth-child(2) {
  animation: section-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.feature-grid .feature-card:nth-child(3) {
  animation: section-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.feature-card {
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition:
    transform 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.05);
}
.feature-icon {
  font-size: 22px;
  margin-bottom: 10px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--white);
}
.feature-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-section {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: section-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.detail-section:nth-child(1) {
  animation-delay: 0.1s;
}
.detail-section:nth-child(2) {
  animation-delay: 0.2s;
}
.detail-section:nth-child(3) {
  animation-delay: 0.3s;
}
.detail-section:nth-child(4) {
  animation-delay: 0.4s;
}
.detail-section:nth-child(5) {
  animation-delay: 0.5s;
}
@keyframes section-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.detail-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 180, 41, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-section h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--amber);
  flex-shrink: 0;
}
.detail-section p {
  font-size: 13.5px;
  color: var(--off);
  line-height: 1.82;
  margin-bottom: 10px;
}
.btn-figma {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 4px;
  color: var(--off);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  margin-top: 8px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-figma:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.detail-screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.detail-screens-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-screens-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.3), transparent);
}
.screen-ph {
  aspect-ratio: 3/2;
  background: var(--navy3);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  gap: 5px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s,
    box-shadow 0.35s;
}
.screen-ph:hover {
  transform: scale(1.04) translateY(-4px);
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(240, 180, 41, 0.2);
}
.screen-ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.screen-ph:hover img {
  transform: scale(1.03);
}
.screen-ph svg {
  width: 20px;
  height: 20px;
  opacity: 0.2;
  fill: currentColor;
}

/* Screen hover overlay */
.screen-ph .screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(240, 180, 41, 0.18) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  pointer-events: none;
}
.screen-ph:hover .screen-overlay {
  opacity: 1;
}
.screen-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  transform: translateY(4px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.screen-ph:hover .screen-label {
  transform: translateY(0);
}

/* ════════════════════════
   CONTACT
════════════════════════ */
#contact {
  padding: 60px 80px 80px;
}
.contact-big-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 118px);
  color: var(--amber);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 64px;
}
.contact-intro-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-body {
  font-size: 13.5px;
  color: var(--off);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 52px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s,
    background 0.2s;
  cursor: default;
}
.contact-row:hover {
  border-color: rgba(240, 180, 41, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.contact-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 180, 41, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.contact-row:hover .contact-icon-box {
  border-color: rgba(240, 180, 41, 0.5);
}
.contact-icon-box svg {
  width: 20px;
  height: 20px;
  fill: var(--amber);
}
.contact-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--off);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-row:hover .contact-link {
  color: var(--amber);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    padding: 12px 20px;
  }
  .hero,
  .home-about {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .hero-right {
    order: -1;
  }

  .home-projects,
  .home-about {
    padding-left: 20px;
    padding-right: 20px;
  }
  .proj-grid {
    grid-template-columns: 1fr;
  }
  #about,
  #works,
  #contact,
  #project-detail {
    padding: 40px 20px 60px;
  }
  .about-top,
  .about-bottom-grid {
    grid-template-columns: 1fr;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .detail-overview-grid {
    grid-template-columns: 1fr;
  }
  .detail-screens,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── WARM LIGHT RAY behind hero photo ── */
.hero-light-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-light-wrap::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 180, 41, 0.18) 0%,
    rgba(240, 160, 30, 0.06) 45%,
    transparent 72%
  );
  animation: pulse-warm 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes pulse-warm {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* ── AMBER GLOW on section titles ── */
.glow-title {
  position: relative;
  display: inline-block;
}
.glow-title::before {
  content: "";
  position: absolute;
  inset: -10px -20px;
  background: radial-gradient(
    ellipse,
    rgba(240, 180, 41, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.glow-title:hover::before {
  opacity: 1;
}

/* ── GLASS CARDS shimmer on hover ── */
.glass-card {
  position: relative;
  overflow: hidden;
}
.glass-card::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -60%;
  width: 40%;
  height: 300%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(240, 180, 41, 0.06) 50%,
    transparent 60%
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.glass-card:hover::after {
  left: 120%;
}

/* ── WHITE CARD shimmer ── */
.white-card {
  position: relative;
  overflow: hidden;
}
.white-card::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -60%;
  width: 35%;
  height: 300%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}
.white-card:hover::after {
  left: 130%;
}

/* ── WORK CARD shimmer ── */
.work-card {
  position: relative;
  overflow: hidden;
}
.work-card::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -60%;
  width: 35%;
  height: 300%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}
.work-card:hover::after {
  left: 130%;
}

/* ── SKILL TAG warm glow ── */
.skill-tag {
  position: relative;
}
.skill-tag:hover {
  border-color: rgba(240, 180, 41, 0.5) !important;
  background: rgba(240, 180, 41, 0.07) !important;
  box-shadow: 0 0 20px rgba(240, 180, 41, 0.08);
}

/* ── CONTACT ROW glow ── */
.contact-row:hover {
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.07);
}

/* ── AMBER CURSOR DOT ── */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s,
    width 0.2s,
    height 0.2s,
    opacity 0.2s;
  mix-blend-mode: screen;
  opacity: 0.8;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s ease-out,
    width 0.25s,
    height 0.25s,
    border-color 0.2s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 44px;
  height: 44px;
  border-color: rgba(240, 180, 41, 0.7);
}

/* ── TIMELINE dot glow ── */
.tl-dot.active {
  box-shadow:
    0 0 12px var(--amber),
    0 0 24px rgba(240, 180, 41, 0.3);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,
  100% {
    box-shadow:
      0 0 8px var(--amber),
      0 0 16px rgba(240, 180, 41, 0.2);
  }
  50% {
    box-shadow:
      0 0 16px var(--amber),
      0 0 32px rgba(240, 180, 41, 0.4);
  }
}

/* ── HERO name shimmer on load ── */
.hero-name .ln {
  background: linear-gradient(
    90deg,
    var(--white) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    var(--white) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-shimmer 3s linear 1.5s 1 forwards;
}
.hero-name .ln em {
  -webkit-text-fill-color: var(--amber);
  color: var(--amber);
}
@keyframes name-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ── PARTICLE CANVAS ── */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── FILM GRAIN ── */
#grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── EASTER EGG: Punchbag ── */
.easter-egg-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 64px auto 0;
  position: relative;
  width: fit-content;
}
.easter-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  animation: hint-pulse 4s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-2px);
  }
}

/* Chain + hook */
.bag-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}
.chain-link {
  width: 8px;
  height: 10px;
  border: 2px solid rgba(200, 200, 200, 0.4);
  border-radius: 4px;
  margin: -1px 0;
}
.chain-hook {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(200, 200, 200, 0.35);
  border-radius: 50% 50% 0 50%;
  transform: rotate(-45deg);
  margin-bottom: -2px;
}

.punchbag-container {
  position: relative;
  cursor: pointer;
  transform-origin: top center;
  animation: bag-idle 4s ease-in-out infinite;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@keyframes bag-idle {
  0% {
    transform: rotate(-2deg) translateX(-2px);
  }
  25% {
    transform: rotate(0deg) translateX(0);
  }
  50% {
    transform: rotate(2deg) translateX(2px);
  }
  75% {
    transform: rotate(0deg) translateX(0);
  }
  100% {
    transform: rotate(-2deg) translateX(-2px);
  }
}
.punchbag-container.punched {
  animation: bag-punch 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
@keyframes bag-punch {
  0% {
    transform: rotate(0deg) translateX(0);
  }
  15% {
    transform: rotate(30deg) translateX(18px);
  }
  35% {
    transform: rotate(-18deg) translateX(-10px);
  }
  55% {
    transform: rotate(10deg) translateX(6px);
  }
  72% {
    transform: rotate(-5deg) translateX(-3px);
  }
  85% {
    transform: rotate(2deg) translateX(1px);
  }
  100% {
    transform: rotate(-2deg) translateX(-2px);
  }
}

/* SVG bag */
.bag-svg {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  transition: filter 0.15s;
}
.punchbag-container:hover .bag-svg {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)) brightness(1.15);
}

/* Impact flash */
.bag-flash {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 180, 41, 0.6) 0%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s;
}
.bag-flash.hit {
  opacity: 1;
  animation: flash-out 0.3s ease-out forwards;
}
@keyframes flash-out {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.6);
  }
}

/* Shockwave rings */
.shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border: 2px solid rgba(240, 180, 41, 0.6);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.shockwave.fire {
  animation: shock 0.5s ease-out forwards;
}
@keyframes shock {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.8;
    transform: translate(-50%, -50%);
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

/* Punch counter */
.punch-counter {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.4s;
  min-height: 18px;
}
.punch-counter.visible {
  opacity: 1;
}

/* Fact bubble */
.fact-bubble {
  position: absolute;
  left: calc(100% + 24px);
  top: 40px;
  background: rgba(15, 31, 56, 0.95);
  border: 1px solid rgba(240, 180, 41, 0.25);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  padding: 14px 18px;
  width: 210px;
  font-size: 12.5px;
  color: var(--off);
  line-height: 1.6;
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.fact-bubble.show {
  opacity: 1;
  transform: translateX(0);
}
.fact-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid rgba(240, 180, 41, 0.25);
}

/* Impact text */
.impact-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--amber);
  pointer-events: none;
  opacity: 0;
  animation: impact-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 0 12px rgba(240, 180, 41, 0.6);
  letter-spacing: -0.01em;
}
@keyframes impact-pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -80%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(0.9);
  }
}

/* ── PIXEL CHARACTER ── */
.pixel-scene {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
}
.pixel-char {
  image-rendering: pixelated;
  position: relative;
  margin-right: -4px;
  z-index: 2;
  animation: char-idle 0.8s steps(2) infinite;
  cursor: default;
}
@keyframes char-idle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}
.pixel-char.punching {
  animation: char-punch 0.4s steps(3) forwards !important;
}
@keyframes char-punch {
  0% {
    transform: translateX(0) translateY(0);
  }
  40% {
    transform: translateX(18px) translateY(-2px);
  }
  70% {
    transform: translateX(10px) translateY(0);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}
.pixel-bag-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
