:root {
  --bg: #090b1a;
  --bg-soft: #11142b;
  --text: #eef0ff;
  --muted: #b6bbdf;
  --accent: #7f5af0;
  --accent-2: #2cb67d;
  --glass: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #3c2f97 0%, transparent 35%),
              radial-gradient(circle at 80% 80%, #0b7a76 0%, transparent 35%),
              linear-gradient(145deg, #090b1a 10%, #0b0f27 100%);
  z-index: -2;
}

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(127, 90, 240, 0.35), transparent 60%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.site-header {
  width: min(1140px, 92%);
  margin: 1rem auto;
  padding: .9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 10px;
  z-index: 50;
}

.site-header nav { display: flex; gap: 1rem; }
.site-header nav { flex-wrap: wrap; justify-content: flex-end; }
.site-header a { color: var(--text); text-decoration: none; }
.logo {
  position: relative;
  display: inline-block;
  padding: .46rem .95rem;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: .7px;
  color: #f8f8ff;
  background: linear-gradient(145deg, rgba(127, 90, 240, .36), rgba(63, 142, 252, .28));
  border: 1px solid rgba(255,255,255,.26);
  box-shadow:
    0 8px 20px rgba(63, 142, 252, .22),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -6px 12px rgba(6, 12, 30, .4);
  transform-style: preserve-3d;
  --logo-rx: 0deg;
  --logo-ry: 0deg;
  --logo-ty: 0px;
  transform: perspective(760px) rotateX(calc(10deg + var(--logo-rx))) rotateY(var(--logo-ry)) translateY(var(--logo-ty));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 0 rgba(255,255,255,.35), 0 8px 14px rgba(0,0,0,.35);
  animation: logoFloat3d 2.8s ease-in-out infinite;
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 16%, rgba(255,255,255,.45) 40%, transparent 68%);
  transform: translateX(-145%);
  animation: logoShine3d 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.logo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 140%, rgba(44, 182, 125, .22), transparent 62%);
  filter: blur(12px);
  opacity: .72;
  z-index: -2;
}

.logo:hover,
.logo:focus-visible {
  border-color: rgba(255,255,255,.45);
  filter: saturate(1.16);
  box-shadow:
    0 14px 30px rgba(127, 90, 240, .35),
    0 0 18px rgba(44, 182, 125, .24),
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -8px 14px rgba(6, 12, 30, .48);
  transform: perspective(760px) rotateX(calc(0deg + var(--logo-rx))) rotateY(calc(-6deg + var(--logo-ry))) translateY(calc(-2px + var(--logo-ty))) scale(1.03);
}

.logo:active {
  transform: perspective(760px) rotateX(calc(2deg + var(--logo-rx))) rotateY(var(--logo-ry)) translateY(calc(1px + var(--logo-ty))) scale(.985);
  box-shadow:
    0 7px 14px rgba(63, 142, 252, .26),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -4px 10px rgba(6, 12, 30, .4);
}

@keyframes logoShine3d {
  0%, 22% { transform: translateX(-145%); opacity: .18; }
  34% { opacity: .55; }
  52%, 100% { transform: translateX(145%); opacity: .06; }
}

@keyframes logoFloat3d {
  0%, 100% { --logo-ty: 0px; }
  50% { --logo-ty: -2px; }
}
.nav-ar-world {
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 76, 96, .55);
  background: linear-gradient(120deg, rgba(255, 76, 96, .24), rgba(255, 159, 28, .2));
  box-shadow: 0 0 12px rgba(255, 76, 96, .25);
}

.nav-ar-world:hover {
  border-color: rgba(255, 76, 96, .85);
  transform: translateY(-1px);
}

.nav-personal-note {
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 159, 28, .45);
  background: linear-gradient(120deg, rgba(255, 159, 28, .22), rgba(127, 90, 240, .22));
  box-shadow: 0 0 0 rgba(255, 159, 28, .45);
  animation: personalPulse 2.6s ease-in-out infinite;
}

.nav-personal-note:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 159, 28, .75);
}

.nav-blog-link {
  margin-right: .95rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 142, 252, .55);
  background: linear-gradient(120deg, rgba(63, 142, 252, .22), rgba(127, 90, 240, .2));
  box-shadow: 0 0 12px rgba(63, 142, 252, .25);
}

.nav-blog-link:hover {
  border-color: rgba(63, 142, 252, .85);
  transform: translateY(-1px);
}

.nav-resume-download {
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 182, 125, .55);
  background: linear-gradient(120deg, rgba(44, 182, 125, .25), rgba(63, 142, 252, .2));
  box-shadow: 0 0 12px rgba(44, 182, 125, .25);
}

.nav-resume-download:hover {
  border-color: rgba(44, 182, 125, .85);
  transform: translateY(-1px);
}

.title-banner {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.achievement-strip {
  margin-top: .9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .55rem;
  padding: .72rem;
  background: linear-gradient(125deg, rgba(127, 90, 240, .12), rgba(44, 182, 125, .11), rgba(63, 142, 252, .13));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(9, 14, 35, .35), inset 0 0 24px rgba(127, 90, 240, .14);
}

.achievement-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: .75rem .55rem .7rem;
  border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(155deg, rgba(16, 24, 56, .88), rgba(13, 18, 45, .66));
  display: grid;
  justify-items: center;
  gap: .22rem;
  box-shadow: 0 8px 20px rgba(5, 9, 25, .46), inset 0 1px 0 rgba(255,255,255,.16);
  transform-style: preserve-3d;
  animation: achievementFloat 3.2s ease-in-out infinite;
}

.achievement-item:nth-child(2n) {
  animation-delay: .26s;
}

.achievement-item:nth-child(3n) {
  animation-delay: .54s;
}

.achievement-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(127, 90, 240, .42), rgba(44, 182, 125, .25), rgba(63, 142, 252, .4));
  opacity: .32;
  z-index: 0;
  pointer-events: none;
}

.achievement-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 16%, rgba(255,255,255,.34) 44%, transparent 72%);
  transform: translateX(-132%);
  animation: achievementShine 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.achievement-glow {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  top: -24px;
  right: -28px;
  background: radial-gradient(circle, rgba(127, 90, 240, .45), transparent 68%);
  filter: blur(7px);
  z-index: 0;
  pointer-events: none;
}

.achievement-radar {
  position: absolute;
  width: 190%;
  height: 190%;
  left: -45%;
  top: -45%;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(123, 255, 250, 0) 0deg,
      rgba(123, 255, 250, 0) 300deg,
      rgba(123, 255, 250, .34) 336deg,
      rgba(123, 255, 250, 0) 360deg
    );
  mix-blend-mode: screen;
  opacity: 0;
  transform: rotate(-20deg);
  transform-origin: center;
  z-index: 1;
  pointer-events: none;
}

.achievement-item:hover .achievement-radar {
  opacity: .95;
  animation: achievementRadarSpin 1.7s linear infinite;
}

.achievement-scanline {
  position: absolute;
  left: 8%;
  width: 84%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123, 255, 250, 0), rgba(123, 255, 250, .95), rgba(123, 255, 250, 0));
  box-shadow: 0 0 8px rgba(123, 255, 250, .55), 0 0 20px rgba(63, 142, 252, .35);
  top: -8%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.achievement-item:hover .achievement-scanline {
  opacity: .95;
  animation: achievementScanlineMove 1.3s ease-in-out infinite;
}

.achievement-item:hover .achievement-value,
.achievement-item:hover .achievement-suffix {
  animation: achievementMicroGlitch .34s steps(2, end) infinite;
}

.achievement-pulse {
  position: absolute;
  inset: auto auto 8px 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6ff0ff;
  box-shadow: 0 0 0 0 rgba(111, 240, 255, .64);
  animation: achievementPing 2.1s ease-out infinite;
  z-index: 2;
}

.achievement-value-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: .22rem;
}

.achievement-value {
  font-size: clamp(1.34rem, 2.6vw, 1.95rem);
  font-weight: 900;
  color: #f4fbff;
  letter-spacing: .3px;
  text-shadow:
    0 0 6px rgba(255,255,255,.9),
    0 0 16px rgba(63, 142, 252, .58),
    0 0 24px rgba(127, 90, 240, .42);
}

.achievement-suffix {
  color: #9fe7ff;
  font-size: .94rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(44, 182, 125, .38);
}

.achievement-title {
  position: relative;
  z-index: 2;
  color: #dbe0ff;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .2px;
}

@keyframes achievementFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.01); }
}

@keyframes achievementShine {
  0%, 58% { transform: translateX(-132%); opacity: .12; }
  67% { opacity: .55; }
  100% { transform: translateX(132%); opacity: .08; }
}

@keyframes achievementPing {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(111, 240, 255, .62);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(111, 240, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(111, 240, 255, 0);
  }
}

@keyframes achievementRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes achievementScanlineMove {
  0% { top: 12%; opacity: .25; }
  50% { top: 50%; opacity: .95; }
  100% { top: 88%; opacity: .2; }
}

@keyframes achievementMicroGlitch {
  0%, 100% {
    transform: translate(0, 0);
    text-shadow:
      0 0 6px rgba(255,255,255,.9),
      0 0 16px rgba(63, 142, 252, .58),
      0 0 24px rgba(127, 90, 240, .42);
  }
  25% {
    transform: translate(-1px, 0);
    text-shadow:
      -2px 0 rgba(255, 87, 196, .55),
      2px 0 rgba(111, 240, 255, .6),
      0 0 14px rgba(63, 142, 252, .55);
  }
  50% {
    transform: translate(1px, -1px);
    text-shadow:
      -1px 0 rgba(255, 87, 196, .45),
      1px 0 rgba(111, 240, 255, .52),
      0 0 18px rgba(127, 90, 240, .46);
  }
  75% {
    transform: translate(-1px, 1px);
    text-shadow:
      -2px 0 rgba(255, 87, 196, .52),
      2px 0 rgba(111, 240, 255, .55),
      0 0 16px rgba(44, 182, 125, .44);
  }
}

.animated-title {
  margin: 0;
  display: inline-block;
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(90deg, #7f5af0, #2cb67d, #3f8efc, #ff9f1c, #7f5af0);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  isolation: isolate;
  animation: gradientFlow 6s linear infinite, titleFloat 2.8s ease-in-out infinite, titleGlitchJitter 4.6s steps(2, end) infinite;
  text-shadow: 0 0 24px rgba(127, 90, 240, .28);
}

.home-wow-effect {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.wow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: .55;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .25s ease-out;
}

.wow-orb-a {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(127, 90, 240, .6), transparent 68%);
  top: 10%;
  right: 5%;
  animation: wowFloatA 11s ease-in-out infinite;
}

.wow-orb-b {
  width: 410px;
  height: 410px;
  background: radial-gradient(circle, rgba(44, 182, 125, .5), transparent 70%);
  bottom: 8%;
  left: 4%;
  animation: wowFloatB 13s ease-in-out infinite;
}

.wow-orb-c {
  width: 270px;
  height: 270px;
  background: radial-gradient(circle, rgba(63, 142, 252, .55), transparent 70%);
  top: 42%;
  left: 38%;
  animation: wowFloatC 9s ease-in-out infinite;
}

.wow-wave {
  position: absolute;
  inset: 12% 10%;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.02), rgba(255,255,255,.09), rgba(255,255,255,.02));
  mask: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  opacity: .4;
  animation: wowWaveMove 7s linear infinite;
}

@keyframes wowFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-28px, 20px, 0) scale(1.07); }
}

@keyframes wowFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.05); }
}

@keyframes wowFloatC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-14px, -12px, 0) scale(1.12); }
}

@keyframes wowWaveMove {
  0% { transform: translateX(-8%) rotate(-2deg); }
  100% { transform: translateX(8%) rotate(2deg); }
}

.animated-title::before,
.animated-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.animated-title::before {
  color: rgba(63, 142, 252, .9);
  text-shadow: -2px 0 rgba(255, 49, 145, .75);
  opacity: .72;
  animation: glitchSliceA 3.8s steps(2, end) infinite;
  z-index: 2;
}

.animated-title::after {
  z-index: -1;
  filter: blur(16px);
  opacity: .58;
  color: rgba(127, 90, 240, .72);
  animation: glowPulse 2.2s ease-in-out infinite, glitchSliceB 3.8s steps(2, end) infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: .9; }
}

@keyframes titleGlitchJitter {
  0%, 86%, 100% { transform: translate(0, 0); }
  87% { transform: translate(-1px, 1px); }
  89% { transform: translate(1px, -1px); }
  91% { transform: translate(-1px, 0); }
  93% { transform: translate(1px, 1px); }
}

@keyframes glitchSliceA {
  0%, 86%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    opacity: 0;
  }
  87% {
    clip-path: inset(18% 0 56% 0);
    transform: translate(-3px, -1px);
    opacity: .8;
  }
  89% {
    clip-path: inset(62% 0 12% 0);
    transform: translate(3px, 1px);
    opacity: .74;
  }
  92% {
    clip-path: inset(36% 0 34% 0);
    transform: translate(-2px, 0);
    opacity: .65;
  }
}

@keyframes glitchSliceB {
  0%, 85%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    opacity: .52;
  }
  86% {
    clip-path: inset(8% 0 70% 0);
    transform: translate(2px, 0);
    opacity: .8;
  }
  90% {
    clip-path: inset(70% 0 8% 0);
    transform: translate(-2px, 0);
    opacity: .78;
  }
  94% {
    clip-path: inset(42% 0 30% 0);
    transform: translate(1px, -1px);
    opacity: .7;
  }
}

@keyframes personalPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 159, 28, 0); }
  50% { box-shadow: 0 0 16px rgba(255, 159, 28, .4); }
}

@keyframes skillFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes xrayKeywordOrbit {
  from {
    transform: rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(var(--orbit-angle) * -1));
  }
  to {
    transform: rotate(calc(var(--orbit-angle) + 360deg)) translateX(var(--orbit-radius)) rotate(calc((var(--orbit-angle) + 360deg) * -1));
  }
}

@keyframes xrayKeywordGlow {
  0%, 100% {
    opacity: .8;
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.24);
  }
}

.top-hero {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 1rem;
  padding: 1.2rem;
  align-items: stretch;
  transform-style: preserve-3d;
  transition: transform .2s ease;
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  --xray-x: 50%;
  --xray-y: 50%;
  --xray-size: 120px;
  --orbit-radius: 140px;
  --profile-object-position: 50% 50%;
  overflow: hidden;
  border-radius: 18px;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--profile-object-position);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 35px rgba(0,0,0,.35);
  transition: opacity .34s ease, transform .45s cubic-bezier(0.22, 1, 0.36, 1), filter .34s ease;
}

.hero-photo-wrap.is-photo-switching .hero-photo {
  animation: heroPhotoSlideIn .62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-photo-wrap.is-photo-switching .hero-photo-xray {
  animation: heroXraySlideIn .62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-photo-outgoing,
.hero-photo-xray-outgoing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  object-position: var(--profile-object-position);
  border-radius: 18px;
}

.hero-photo-outgoing {
  z-index: 3;
  animation: heroPhotoSlideOut .62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-photo-xray-outgoing {
  z-index: 4;
  opacity: .92;
  filter: grayscale(1) contrast(1.75) brightness(.82) hue-rotate(170deg);
  mix-blend-mode: screen;
  clip-path: circle(var(--xray-size) at var(--xray-x) var(--xray-y));
  animation: heroXraySlideOut .62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-photo-xray {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: 18px;
  box-sizing: border-box;
  border: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
  object-fit: cover;
  object-position: var(--profile-object-position);
  transform: none;
  transform-origin: center;
  filter: grayscale(1) contrast(1.75) brightness(.82) hue-rotate(170deg);
  mix-blend-mode: screen;
  clip-path: circle(var(--xray-size) at var(--xray-x) var(--xray-y));
  transition: opacity .2s ease;
}

.hero-photo-wrap.is-skeleton-active:hover .hero-photo-xray {
  opacity: .92;
}

.hero-photo-wrap:not(.is-skeleton-active) .hero-photo-xray {
  opacity: 0 !important;
}

.xray-lens-ring {
  position: absolute;
  left: var(--xray-x);
  top: var(--xray-y);
  width: calc(var(--xray-size) * 2);
  height: calc(var(--xray-size) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(120, 255, 255, .75);
  box-shadow:
    0 0 0 3px rgba(23, 234, 255, .12),
    0 0 26px rgba(36, 209, 255, .36),
    inset 0 0 28px rgba(70, 243, 255, .2);
  background:
    radial-gradient(circle at center, rgba(138, 255, 255, .04), rgba(6, 11, 31, .15) 65%, rgba(0, 0, 0, .38));
  transition: opacity .2s ease;
}

.hero-photo-wrap:hover .xray-lens-ring {
  opacity: 1;
}

.xray-lens-ring::before,
.xray-lens-ring::after {
  content: '';
  position: absolute;
  background: rgba(148, 255, 255, .75);
}

.xray-lens-ring::before {
  width: 1px;
  height: 76%;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
}

.xray-lens-ring::after {
  height: 1px;
  width: 76%;
  top: 50%;
  left: 12%;
  transform: translateY(-50%);
}

.xray-keywords {
  position: absolute;
  inset: 8px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.hero-photo-wrap:hover .xray-keywords {
  opacity: 1;
}

.hero-photo-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 4;
  font-size: .74rem;
  color: rgba(218, 247, 255, .92);
  background: rgba(8, 16, 40, .58);
  border: 1px solid rgba(160, 245, 255, .28);
  border-radius: 999px;
  padding: .23rem .62rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.hero-photo-wrap:hover .hero-photo-hint {
  opacity: .95;
  transform: translateX(-50%) translateY(-2px);
}

.xray-keyword {
  position: absolute;
  left: var(--xray-x);
  top: var(--xray-y);
  padding: .22rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 248, 255, .45);
  background: rgba(6, 16, 40, .55);
  color: #bff9ff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 0 12px rgba(26, 220, 255, .28);
  text-shadow: 0 0 10px rgba(87, 244, 255, .45);
  backdrop-filter: blur(2px);
  transform-origin: 0 0;
  animation: xrayKeywordOrbit 11s linear infinite, xrayKeywordGlow 2.2s ease-in-out infinite;
}

.xray-keyword:nth-child(1) { --orbit-angle: 0deg; animation-delay: 0s, .06s; }
.xray-keyword:nth-child(2) { --orbit-angle: 52deg; animation-delay: -1.5s, .35s; }
.xray-keyword:nth-child(3) { --orbit-angle: 104deg; animation-delay: -3.1s, .62s; }
.xray-keyword:nth-child(4) { --orbit-angle: 156deg; animation-delay: -4.6s, .92s; }
.xray-keyword:nth-child(5) { --orbit-angle: 208deg; animation-delay: -6.3s, 1.25s; }
.xray-keyword:nth-child(6) { --orbit-angle: 260deg; animation-delay: -8.1s, 1.52s; }
.xray-keyword:nth-child(7) { --orbit-angle: 312deg; animation-delay: -9.7s, 1.8s; }

.hero-badge {
  position: absolute;
  right: 15px;
  bottom: 12px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
}

@keyframes heroPhotoMorphOut {
  0% {
    filter: saturate(1) contrast(1);
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    filter: saturate(1.25) contrast(1.2);
    transform: scale(1.04) rotate(-.7deg);
    opacity: .86;
  }
  100% {
    filter: saturate(1) contrast(1);
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes heroPhotoSwitchPulse {
  0% {
    filter: saturate(1) contrast(1);
    transform: translateX(18px) scale(.98);
    opacity: .42;
  }
  45% {
    filter: saturate(1.28) contrast(1.14) brightness(1.08);
    transform: translateX(-5px) scale(1.035);
    opacity: 1;
  }
  100% {
    filter: saturate(1) contrast(1);
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes heroPhotoSlideIn {
  0% {
    transform: translateX(100%) scale(.98);
    opacity: .22;
    filter: saturate(1.18) contrast(1.08);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: saturate(1) contrast(1);
  }
}

@keyframes heroPhotoSlideOut {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%) scale(.98);
    opacity: .18;
  }
}

@keyframes heroXraySlideIn {
  0% {
    transform: translateX(100%) scale(.98);
    opacity: .12;
  }
  45% {
    opacity: .96;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: .92;
  }
}

@keyframes heroXraySlideOut {
  0% {
    transform: translateX(0) scale(1);
    opacity: .92;
  }
  100% {
    transform: translateX(-100%) scale(.98);
    opacity: .08;
  }
}

@keyframes heroXraySwitchPulse {
  0% {
    opacity: .15;
    transform: translateX(18px) scale(.98);
  }
  45% {
    opacity: .96;
    transform: translateX(-5px) scale(1.035);
  }
  100% {
    opacity: .92;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroPhotoMorphIn {
  0% {
    opacity: 0;
    transform: scale(.94);
  }
  100% {
    opacity: .92;
    transform: scale(1);
  }
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.hero-intro h1 {
  margin: 0;
  font-size: 2rem;
}

.education-list { display: grid; gap: .4rem; }
.edu { color: var(--muted); margin: 0; }
.about {
  line-height: 1.9;
  margin: 0;
  color: var(--muted);
}

.about-word {
  display: inline-block;
  color: rgba(182, 187, 223, 0.85);
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}

.about-word.is-reading {
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(127, 90, 240, 0.85),
    0 0 24px rgba(44, 182, 125, 0.6);
  transform: translateY(-1px);
}

.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  margin-top: .8rem;
  padding: .55rem .95rem;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(130deg, var(--accent), #5f31ef);
  text-decoration: none;
}

.btn.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.26);
}

.hero-contact { padding: 1rem; }
.hero-contact h3 { margin-top: .2rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }

.hero-contact .contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  flex-wrap: wrap;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.contact-meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.contact-icon-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
}

.hero-contact .contact-list a {
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  padding: .25rem .5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(127, 90, 240, .15);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-contact .contact-list a:hover {
  background: rgba(127, 90, 240, .35);
}

.contact-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.tabs { margin-top: 1.2rem; margin-bottom: 1.4rem; }
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: .7rem;
}

.tab-btn {
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: #171b39;
  padding: .6rem .9rem;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 130px;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.tab-btn:hover {
  background: #20264d;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(127, 90, 240, .35);
}

.tab-panels { padding: 1rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .65rem;
}

.skill-card {
  padding: .8rem;
  border-radius: 12px;
  background: #171c3a;
  border: 1px solid rgba(255,255,255,.08);
}

.skill-header {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: .5rem;
}

.skill-header h4 { margin: 0; font-size: .95rem; }

.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: #23284f;
}

.skill-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.skill-bar {
  margin-top: .6rem;
  width: 100%;
  height: 8px;
  background: #23284f;
  border-radius: 999px;
  overflow: hidden;
}

.skill-progress {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7f5af0 0%, #2cb67d 40%, #3f8efc 70%, #7f5af0 100%);
  background-size: 220% 100%;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  animation: skillFlow 2.6s linear infinite;
}

.skill-progress::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,.15));
  filter: blur(.5px);
  opacity: .85;
}

.chip {
  padding: .75rem;
  border-radius: 10px;
  background: #181c39;
  border: 1px solid rgba(255,255,255,.08);
}

.mini-list { display: flex; flex-wrap: wrap; gap: .45rem; }

.library-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: #20254b;
  border: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
}

.library-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .8rem;
}

.workshop-card {
  background: #161b38;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.workshop-poster-frame {
  width: 100%;
  height: clamp(300px, 38vw, 420px);
  background: #0f1330;
  padding: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workshop-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  max-width: 100%;
  max-height: 100%;
}

.workshop-content {
  padding: .75rem;
}

.workshop-content h4 {
  margin: 0 0 .35rem;
  font-size: .95rem;
}

.workshop-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-section { margin-top: 1.3rem; margin-bottom: 2rem; }
.section-title-wrap { margin-bottom: .8rem; }
.section-title-wrap p { color: var(--muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.project-card {
  overflow: hidden;
  padding: 0;
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #0f1330;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.project-content {
  padding: .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-content h3 { margin-top: .1rem; }
.project-content p { color: var(--muted); line-height: 1.85; }

.project-links {
  display: flex;
  gap: .6rem;
  margin-top: auto;
  padding-top: .8rem;
}

.project-links a {
  text-decoration: none;
  color: #fff;
  background: #2b2f57;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: .35rem .65rem;
}

.post-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
  margin-top: .5rem;
}

.content-filter-form {
  margin-bottom: .9rem;
  padding: .7rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto auto;
  gap: .5rem;
  align-items: center;
}

.content-filter-form input,
.content-filter-form select,
.content-filter-form button {
  background: #161b39;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: .48rem .58rem;
}

.content-filter-form button {
  background: linear-gradient(130deg, var(--accent), #5f31ef);
  cursor: pointer;
}

.filter-reset-link {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: .45rem .6rem;
  text-align: center;
}

.personal-post-grid .project-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-detail-wrap {
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.post-detail {
  overflow: hidden;
}

.post-detail-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.post-detail-content {
  padding: 1.1rem;
}

.post-detail-content h1 {
  margin-top: 0;
}

.post-detail-content p {
  line-height: 2;
  color: var(--muted);
}

.rich-article-body {
  line-height: 2;
  color: var(--muted);
  margin-top: .8rem;
}

.rich-article-body h2,
.rich-article-body h3 {
  color: var(--text);
  margin-top: 1rem;
}

.rich-article-body img,
.rich-article-body video {
  max-width: 100%;
  border-radius: 12px;
  margin: .8rem 0;
}

.rich-article-body .article-btn {
  display: inline-block;
  margin: .5rem 0;
  padding: .45rem .75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: #2f5bea;
}

.video-player-wrap {
  margin: 1rem 0 1.1rem;
}

.video-player-wrap h3 {
  margin: 0 0 .5rem;
}

.post-video-player {
  width: 100%;
  max-height: 440px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: #070a17;
}

.ar-page {
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.ar-box {
  padding: 1rem;
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.ar-box h1 {
  margin-top: .2rem;
}

.ar-box p {
  color: var(--muted);
}

.ar-box.emotion-sad {
  background: rgba(4, 4, 6, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.ar-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: .8rem;
}

.ar-btn {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: #1b2145;
  color: #fff;
  padding: .5rem .8rem;
  cursor: pointer;
}

.ar-btn.primary {
  background: linear-gradient(130deg, #ff4c60, #7f5af0);
}

.ar-status {
  margin-top: .7rem;
  color: var(--muted);
}

.gesture-guide {
  margin-top: .8rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(255,255,255,.13);
  display: none;
}

.gesture-guide.show {
  display: block;
}

.gesture-guide h4 {
  margin: .1rem 0 .45rem;
  font-size: .95rem;
}

.gesture-guide ul {
  margin: 0;
  padding-right: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

.ar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: #070a17;
}

.ar-stage {
  margin-top: .9rem;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #070a17;
}

.ar-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.ar-process-canvas {
  display: none;
}

.ar-hud {
  margin-top: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .95rem;
}

.vision-mode-bar {
  margin-top: .85rem;
  padding: .55rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.mode-chip {
  border: 1px solid rgba(255,255,255,.16);
  background: #181f43;
  color: #e8ebff;
  border-radius: 999px;
  padding: .34rem .66rem;
  cursor: pointer;
  font-size: .82rem;
}

.mode-chip.active {
  border-color: rgba(127, 90, 240, .9);
  background: linear-gradient(130deg, rgba(127, 90, 240, .35), rgba(44, 182, 125, .3));
  box-shadow: 0 0 14px rgba(127, 90, 240, .35);
}

.hand-controls {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 5;
}

.hand-controls.show {
  display: block;
}

.control-circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255,255,255,.35);
  background: rgba(8, 12, 28, .34);
  color: #f2f4ff;
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.control-left {
  left: 14px;
  border-color: rgba(127, 90, 240, .6);
}

.control-right {
  right: 14px;
  border-color: rgba(255, 76, 96, .6);
}

.color-ribbon {
  position: absolute;
  top: 50%;
  left: 116px;
  transform: translateY(-50%) scaleX(0.4);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  gap: 24px;
  align-items: center;
  padding: .5rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10, 14, 34, .75);
  backdrop-filter: blur(7px);
  transition: transform .22s ease, opacity .22s ease;
}

.color-ribbon.show {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
  pointer-events: auto;
}

.palette-color {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.38);
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(7, 10, 23, .55);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.palette-color[data-color=\"#3f8efc\"] { background: #3f8efc; }
.palette-color[data-color=\"#ff4c60\"] { background: #ff4c60; }
.palette-color[data-color=\"#2cb67d\"] { background: #2cb67d; }

.palette-color.active {
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 15px rgba(127, 90, 240, .55);
}

.control-circle.aimed {
  transform: translateY(-50%) scale(1.12);
  border-style: solid;
  border-color: rgba(255,255,255,.95);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.2),
    0 0 24px rgba(127, 90, 240, .65),
    inset 0 0 26px rgba(255,255,255,.14);
}

.palette-color.aimed {
  transform: scale(1.2);
  border-color: rgba(255,255,255,.98);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.24),
    0 0 22px rgba(255,255,255,.52);
}

.ar-permission-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 1400;
}

.ar-permission-modal.show {
  display: grid;
}

.ar-permission-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.68);
  backdrop-filter: blur(4px);
}

.ar-permission-card {
  position: relative;
  width: min(92vw, 440px);
  padding: 1rem;
  text-align: center;
  animation: arModalIn .28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ar-permission-card h3 {
  margin-top: .2rem;
}

.ar-permission-card p {
  color: var(--muted);
  margin-bottom: .9rem;
}

.ar-permission-actions {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

@keyframes arModalIn {
  0% { opacity: 0; transform: translateY(12px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  .content-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .content-filter-form {
    grid-template-columns: 1fr;
  }
}

.magnetic { transition: transform .2s ease; }

.blog-placeholder { margin-top: 2rem; padding: 1.2rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.shatter-effect {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1200;
}

.impact-core {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  transform: translate(-50%, -50%);
  animation: impactPulse .35s ease-out forwards;
}

.impact-ring {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .65);
  transform: translate(-50%, -50%);
  animation: impactRing .5s ease-out forwards;
}

.crack-line {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--len);
  height: 2px;
  transform-origin: left center;
  transform: translate(-50%, -50%) rotate(var(--angle));
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.15));
  filter: drop-shadow(0 0 2px rgba(255,255,255,.5));
  opacity: 0;
  animation: crackGrow .28s ease-out forwards;
}

.crack-line::after {
  content: '';
  position: absolute;
  right: 18%;
  top: 0;
  width: var(--branch-len);
  height: 1px;
  transform-origin: left center;
  transform: rotate(var(--branch-angle));
  background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.08));
}

.crack-line::before {
  content: '';
  position: absolute;
  right: 55%;
  top: 0;
  width: calc(var(--branch-len) * .55);
  height: 1px;
  transform-origin: left center;
  transform: rotate(calc(var(--branch-angle) * -0.7));
  background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.05));
}

@keyframes impactPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .95; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

@keyframes impactRing {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

@keyframes crackGrow {
  0% {
    transform: translate(-50%, -50%) rotate(var(--angle)) scaleX(0.1);
    opacity: .95;
  }
  100% {
    transform: translate(-50%, -50%) rotate(var(--angle)) scaleX(1);
    opacity: .72;
  }
}

.tech-footer {
  margin-top: 2rem;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(11, 15, 39, 0.2), rgba(11, 15, 39, 0.8));
}

.tech-playground {
  min-height: 210px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(circle at 30% 20%, rgba(127, 90, 240, .2), transparent 38%),
              radial-gradient(circle at 70% 80%, rgba(44, 182, 125, .18), transparent 38%),
              #101532;
}

.tech-weather-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.tech-rain {
  position: absolute;
  inset: -10% -5%;
  opacity: .4;
  background-image:
    repeating-linear-gradient(
      -12deg,
      rgba(165, 231, 255, 0) 0px,
      rgba(165, 231, 255, 0) 10px,
      rgba(165, 231, 255, .33) 10px,
      rgba(165, 231, 255, .33) 12px
    );
  animation: techRainFall 1.5s linear infinite;
}

.tech-rain-fast {
  opacity: .28;
  filter: blur(.4px);
  animation-duration: .95s;
}

.tech-lightning {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.tech-lightning::before,
.tech-lightning::after {
  content: '';
  position: absolute;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(215, 250, 255, .95), rgba(121, 226, 255, .7), transparent 85%);
  box-shadow: 0 0 14px rgba(167, 245, 255, .78);
}

.tech-lightning::before {
  height: 58%;
  top: -8%;
}

.tech-lightning::after {
  height: 34%;
  top: 36%;
}

.tech-lightning-a::before { right: 18%; transform: rotate(16deg); }
.tech-lightning-a::after { right: 14%; transform: rotate(-22deg); }
.tech-lightning-b::before { left: 22%; transform: rotate(-14deg); }
.tech-lightning-b::after { left: 18%; transform: rotate(20deg); }

.tech-playground.is-storming .tech-lightning-a {
  animation: techLightningFlashA 5.4s ease-in-out infinite;
}

.tech-playground.is-storming .tech-lightning-b {
  animation: techLightningFlashB 6.8s ease-in-out infinite;
}

.tech-playground-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 760px);
  text-align: center;
  font-size: clamp(.95rem, 2.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .3px;
  color: transparent;
  background: linear-gradient(90deg, #ff9f1c, #7f5af0, #2cb67d, #3f8efc, #ff9f1c);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: techTitleGradient 5s linear infinite, techTitleGlow 2.4s ease-in-out infinite;
  text-shadow: 0 0 18px rgba(127, 90, 240, .35);
  pointer-events: none;
  z-index: 1;
}

.tech-emoji {
  position: absolute;
  font-size: 1.55rem;
  user-select: none;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform .16s ease;
  will-change: transform;
  z-index: 2;
}

@media (max-width: 1024px) {
  .top-hero {
    grid-template-columns: 280px 1fr;
    grid-template-areas:
      "photo intro"
      "contact contact";
  }

  .hero-photo-wrap { grid-area: photo; }
  .hero-intro { grid-area: intro; }
  .hero-contact { grid-area: contact; }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    top: auto;
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
  }

  .site-header .logo {
    text-align: center;
    width: fit-content;
    margin: 0 auto;
  }

  .site-header nav {
    justify-content: center;
    gap: .55rem;
  }

  .site-header nav a {
    font-size: .9rem;
  }

  .title-banner {
    margin-top: .7rem;
    margin-bottom: .75rem;
  }

  .achievement-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "intro"
      "contact";
    padding: .9rem;
  }

  .hero-photo-frame {
    height: 320px;
  }

  .hero-photo-wrap {
    --xray-size: 92px;
    --orbit-radius: 108px;
  }

  .hero-intro h1 {
    font-size: 1.5rem;
  }

  .about {
    line-height: 1.8;
    font-size: .95rem;
  }

  .tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .workshop-card {
    max-width: 480px;
  }

  .workshop-poster-frame {
    height: clamp(280px, 72vw, 440px);
  }

  .tab-btn {
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .content-filter-form {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-wrap: wrap;
  }

  .post-detail-image {
    max-height: 320px;
  }

  .post-detail-content {
    padding: .85rem;
  }

  .post-detail-content h1 {
    font-size: 1.2rem;
  }

  .rich-article-body {
    font-size: .95rem;
    line-height: 1.9;
  }

  .ar-stage {
    aspect-ratio: 3 / 4;
    max-height: 74vh;
  }

  .vision-mode-bar {
    justify-content: center;
  }

  .mode-chip {
    font-size: .78rem;
    padding: .34rem .56rem;
  }

  .ar-hud {
    gap: .55rem;
    font-size: .88rem;
  }

  .control-circle {
    width: 78px;
    height: 78px;
    font-size: .76rem;
  }

  .control-left {
    left: 8px;
  }

  .control-right {
    right: 8px;
  }

  .color-ribbon {
    left: 92px;
    gap: 12px;
    padding: .42rem .55rem;
  }

  .palette-color {
    width: 40px;
    height: 40px;
  }

  .tech-playground {
    min-height: 190px;
  }

  .footer-copyright {
    font-size: .8rem;
    padding: .35rem .72rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: 94%;
  }

  .hero-photo-frame {
    height: 275px;
  }

  .hero-photo-wrap {
    --xray-size: 78px;
    --orbit-radius: 90px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .chip-grid {
    grid-template-columns: 1fr;
  }

  .workshop-card {
    max-width: 100%;
  }

  .workshop-poster-frame {
    height: clamp(260px, 78vw, 380px);
    padding: .42rem;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-header nav a {
    text-align: center;
    margin-right: 0;
  }

  .animated-title {
    font-size: clamp(1.25rem, 6.6vw, 2rem);
  }

  .achievement-strip {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: .75rem;
  }

  .project-content h3 {
    margin-bottom: .35rem;
    font-size: 1rem;
  }

  .project-content p {
    font-size: .9rem;
    line-height: 1.75;
  }

  .post-meta {
    gap: .45rem;
    font-size: .82rem;
  }
}

.footer-copyright {
  margin: .9rem auto 0;
  width: fit-content;
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(12, 16, 35, .58);
  backdrop-filter: blur(6px);
  text-align: center;
  color: transparent;
  font-size: .88rem;
  letter-spacing: .3px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, #ff9f1c, #7f5af0, #2cb67d, #3f8efc, #ff9f1c);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: copyrightGradient 5.5s linear infinite, copyrightPulse 2.3s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(127, 90, 240, .3), inset 0 0 18px rgba(255,255,255,.08);
}

.footer-copyright::before,
.footer-copyright::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: .72rem;
  animation: sparkleTwinkle 1.8s ease-in-out infinite;
}

.footer-copyright::before { right: 10px; }
.footer-copyright::after { left: 10px; animation-delay: .9s; }

@keyframes copyrightGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

@keyframes copyrightPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.015); }
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: .45; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.25); }
}

@keyframes techTitleGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

@keyframes techTitleGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255,255,255,.35)); opacity: .92; }
  50% { filter: drop-shadow(0 0 10px rgba(127,90,240,.75)); opacity: 1; }
}

@keyframes techRainFall {
  from { transform: translateY(-20%); }
  to { transform: translateY(20%); }
}

@keyframes techLightningFlashA {
  0%, 76%, 100% { opacity: 0; }
  77% { opacity: .95; }
  78% { opacity: .2; }
  79% { opacity: .82; }
  80% { opacity: 0; }
}

@keyframes techLightningFlashB {
  0%, 58%, 100% { opacity: 0; }
  59% { opacity: .78; }
  60% { opacity: .15; }
  61% { opacity: .86; }
  62% { opacity: 0; }
}

@media (max-width: 1080px) {
  .top-hero { grid-template-columns: 300px 1fr; }
  .hero-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .top-hero { grid-template-columns: 1fr; }
  .hero-photo { height: 340px; }
  .project-grid { grid-template-columns: 1fr; }
}

.not-found-wrap {
  margin-top: 1.3rem;
  margin-bottom: 2.2rem;
}

.not-found-card {
  position: relative;
  overflow: hidden;
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  border-radius: 22px;
}

.nf-main {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(760px, 95%);
}

.nf-code {
  margin: 0;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: .88;
  font-weight: 900;
  color: transparent;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff9f1c, #7f5af0, #2cb67d, #3f8efc, #ff9f1c);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: nfCodeFlow 5.4s linear infinite, nfPulse 2.2s ease-in-out infinite;
  text-shadow: 0 0 28px rgba(127, 90, 240, .5);
}

.nf-main h1 {
  margin: .5rem 0 .45rem;
  font-size: clamp(1.25rem, 2.8vw, 2.05rem);
}

.nf-subtitle {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.95;
  font-size: .98rem;
}

.nf-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.nf-orb-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.nf-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: .7;
}

.nf-orb-a {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(127, 90, 240, .55), transparent 70%);
  top: -40px;
  right: -70px;
  animation: nfFloatA 10s ease-in-out infinite;
}

.nf-orb-b {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(44, 182, 125, .52), transparent 70%);
  bottom: -40px;
  left: -45px;
  animation: nfFloatB 11.5s ease-in-out infinite;
}

.nf-orb-c {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(63, 142, 252, .5), transparent 70%);
  top: 48%;
  left: 42%;
  animation: nfFloatC 8.5s ease-in-out infinite;
}

.nf-grid {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask: radial-gradient(circle at center, #000 38%, transparent 90%);
  animation: nfGridMove 7s linear infinite;
}

.nf-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.nf-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.92), rgba(127, 90, 240, .35));
  box-shadow: 0 0 12px rgba(127, 90, 240, .7);
  animation-name: nfSpark;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes nfCodeFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

@keyframes nfPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes nfFloatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-24px, 22px, 0); }
}

@keyframes nfFloatB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -14px, 0); }
}

@keyframes nfFloatC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8px, -10px, 0) scale(1.08); }
}

@keyframes nfGridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(30px); }
}

@keyframes nfSpark {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: .25;
  }
  50% {
    transform: translateY(-16px) scale(1.25);
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .not-found-card {
    min-height: 64vh;
    padding: 1.4rem .75rem;
  }

  .nf-subtitle {
    font-size: .92rem;
  }
}

.inspect-warning-toast {
  position: fixed;
  max-width: min(260px, calc(100vw - 24px));
  padding: .42rem .62rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(12, 16, 35, .88);
  color: #ffd6de;
  font-size: .82rem;
  line-height: 1.5;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translateY(5px) scale(.97);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 14px rgba(255, 76, 96, .18);
}

.inspect-warning-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.journey-intro {
  max-width: 720px;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.journey-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .55rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 182, 125, .34);
  background: rgba(44, 182, 125, .1);
  color: #8ff0ca;
  font-size: .72rem;
  font-weight: 900;
}

.journey-intro h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.8rem);
}

.journey-intro p {
  margin: .55rem auto 0;
  color: rgba(238, 240, 255, .68);
  font-size: .88rem;
  line-height: 1.9;
}

/* ─── Serpentine Roadmap ─── */
.serpentine-road {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 0 1.4rem;
  min-height: calc(max(var(--road-count, 1), 1) * 190px);
  isolation: isolate;
}

.serpentine-road::before,
.serpentine-road::after {
  content: '';
  position: absolute;
  inset: 2% 8%;
  pointer-events: none;
  z-index: -1;
}

.serpentine-road::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(127, 90, 240, .18), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(44, 182, 125, .16), transparent 30%);
  filter: blur(10px);
}

.serpentine-road::after {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
  opacity: .5;
}

.road-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.road-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.road-shadow {
  stroke: rgba(0, 0, 0, .48);
  stroke-width: 40;
  transform: translateY(8px);
  filter: blur(8px);
}

.road-asphalt {
  stroke: #1d2335;
  stroke-width: 38;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .42));
}

.road-edge {
  stroke: rgba(238, 240, 255, .22);
  stroke-width: 42;
  stroke-dasharray: .01 18;
  opacity: .8;
}

.road-path-center {
  stroke: #f5c84b;
  stroke-width: 4;
  stroke-dasharray: 18 22;
  opacity: .88;
  animation: dashMove 2s linear infinite;
  filter: drop-shadow(0 0 5px rgba(245, 200, 75, .35));
}

@keyframes dashMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

.road-items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  padding: 1.2rem 0;
}

.road-stop {
  display: flex;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: stopAppear .7s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--idx, 0) * .12s);
}

@keyframes stopAppear {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

.stop-left {
  flex-direction: row;
  padding-right: calc(50% + 4.4rem);
  justify-content: flex-end;
}

.stop-right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 4.4rem);
  justify-content: flex-end;
}

.stop-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.stop-marker-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.24), transparent 32%),
    linear-gradient(145deg, #29314a, #101522);
  box-shadow:
    inset 0 0 0 4px rgba(127, 90, 240, .18),
    0 0 0 5px rgba(8, 12, 28, .72);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.stop-marker-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(127, 90, 240, .75);
  animation: markerPulse 2.5s ease-in-out infinite;
  animation-delay: calc(var(--idx, 0) * .2s);
}

@keyframes markerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 10px rgba(127, 90, 240, .6); }
  50% { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 20px rgba(127, 90, 240, .9); }
}

.stop-marker-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 90, 240, .25) 0%, transparent 70%);
  animation: glowBreath 3s ease-in-out infinite;
  animation-delay: calc(var(--idx, 0) * .3s);
  pointer-events: none;
}

@keyframes glowBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .5; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

.road-stop:hover .stop-marker-ring {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(127, 90, 240, .15), 0 0 24px rgba(127, 90, 240, .5);
}

.stop-branch {
  flex-shrink: 0;
  width: 4.4rem;
  height: 18px;
  position: relative;
}

.stop-branch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    to right,
    rgba(127, 90, 240, .95) 0 8px,
    transparent 8px 14px
  );
  opacity: .68;
  filter: drop-shadow(0 0 8px rgba(127, 90, 240, .28));
  transition: opacity .3s ease, transform .3s ease;
}

.stop-branch::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid rgba(44, 182, 125, .95);
  border-right: 3px solid rgba(44, 182, 125, .95);
  background: transparent;
  border-radius: 2px;
  transform: translateY(-50%);
  opacity: .7;
  transition: opacity .3s ease, transform .3s ease;
}

.stop-left .stop-branch::after {
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

.stop-right .stop-branch::after {
  left: 0;
  transform: translateY(-50%) rotate(-135deg);
}

.road-stop:hover .stop-branch::before {
  opacity: 1;
  transform: translateY(-50%) scaleX(1.04);
}

.road-stop:hover .stop-branch::after {
  opacity: 1;
}

.stop-left:hover .stop-branch::after {
  transform: translateY(-50%) rotate(45deg) scale(1.18);
}

.stop-right:hover .stop-branch::after {
  transform: translateY(-50%) rotate(-135deg) scale(1.18);
}

.stop-card {
  flex: 1;
  max-width: 360px;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(155deg, rgba(255,255,255,.11), transparent 36%),
    rgba(15, 18, 35, .88);
  backdrop-filter: blur(14px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(4, 7, 20, .32), inset 0 1px 0 rgba(255,255,255,.12);
}

.stop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.road-stop:hover .stop-card {
  transform: translateY(-6px);
  border-color: rgba(127, 90, 240, .35);
  box-shadow:
    0 14px 36px rgba(127, 90, 240, .18),
    0 0 0 1px rgba(127, 90, 240, .08),
    0 0 40px rgba(127, 90, 240, .06);
}

.road-stop:hover .stop-card::before {
  opacity: 1;
}

/* ── Card image ── */
.stop-img-wrap {
  position: relative;
  width: 100%;
  height: 138px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: .7rem;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
}

.stop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .5s ease;
  filter: saturate(.9) brightness(.95);
}

.road-stop:hover .stop-img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(1.05);
}

.stop-img-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .6s ease;
  pointer-events: none;
}

.road-stop:hover .stop-img-shine {
  left: 150%;
}

/* ── Card info ── */
.stop-info {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.stop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .1rem;
}

.stop-num {
  font-size: .72rem;
  font-weight: 900;
  color: #09101c;
  opacity: 1;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8ff0ca, #c7b8ff);
}

.stop-date {
  font-size: .72rem;
  color: rgba(214, 220, 255, .72);
  font-weight: 600;
}

.stop-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.45;
}

.stop-desc {
  font-size: .8rem;
  color: rgba(255, 255, 255, .62);
  line-height: 1.65;
  margin: .15rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.roadmap-empty {
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  padding: 4rem 1rem;
}

@media (max-width: 700px) {
  .serpentine-road {
    min-height: 0;
    padding: .4rem .5rem;
    max-width: 100%;
    overflow: hidden;
  }

  .serpentine-road::before {
    inset: 2% 4%;
  }

  .serpentine-road::after {
    background-size: 28px 28px;
  }

  .road-svg {
    left: 18px;
    transform: none;
    width: 44px;
    height: 100%;
  }

  .road-items {
    gap: 1.6rem;
    padding: .4rem 0;
  }

  .road-stop {
    flex-direction: row !important;
    padding-right: 0 !important;
    padding-left: 3.4rem !important;
    justify-content: flex-start;
    min-height: 0;
    width: 100%;
  }

  .stop-left,
  .stop-right {
    flex-direction: row !important;
    padding-right: 0 !important;
    padding-left: 3.4rem !important;
    justify-content: flex-start;
  }

  .stop-marker {
    left: 18px;
    transform: translate(-50%, -50%);
  }

  .stop-marker-ring {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .stop-marker-dot {
    width: 8px;
    height: 8px;
  }

  .stop-marker-glow {
    width: 40px;
    height: 40px;
  }

  .stop-branch {
    width: 1.4rem;
    height: 12px;
    flex-shrink: 0;
  }

  .stop-branch::before {
    height: 2px;
  }

  .stop-branch::after {
    width: 8px;
    height: 8px;
    border-width: 2px;
  }

  .stop-left .stop-branch::after {
    right: 0;
  }

  .stop-right .stop-branch::after {
    left: auto;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
  }

  .stop-card {
    max-width: calc(100vw - 4.4rem);
    width: 100%;
    padding: .6rem;
    border-radius: 12px;
    overflow: hidden;
  }

  .stop-img-wrap {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: .4rem;
  }

  .stop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .stop-info {
    gap: .15rem;
  }

  .stop-meta {
    gap: .3rem;
    flex-wrap: wrap;
  }

  .stop-num {
    font-size: .6rem;
    padding: .08rem .35rem;
  }

  .stop-date {
    font-size: .6rem;
  }

  .stop-title {
    font-size: .82rem;
    line-height: 1.35;
  }

  .stop-desc {
    font-size: .7rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .journey-intro h3 {
    font-size: 1.05rem;
  }

  .journey-kicker {
    font-size: .7rem;
  }
}

@media (max-width: 380px) {
  .road-stop {
    padding-left: 2.8rem !important;
  }

  .stop-card {
    padding: .5rem;
  }

  .stop-img-wrap {
    height: 65px;
  }

  .stop-title {
    font-size: .78rem;
  }

  .stop-desc {
    font-size: .68rem;
  }
}
