/* Developer profile — coding / 3D scroll experience */
:root {
  --dxp-bg: #070b14;
  --dxp-panel: #0d1524;
  --dxp-line: rgba(0, 255, 170, .22);
  --dxp-neon: #00ffaa;
  --dxp-cyan: #5ce1ff;
  --dxp-orange: var(--th-orange, #ff6b00);
  --dxp-text: #e8f4ff;
  --dxp-muted: #8aa0b8;
  --dxp-mono: "JetBrains Mono", ui-monospace, monospace;
  --dxp-display: "Orbitron", var(--display, sans-serif);
}

.th-devxp {
  position: relative;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 255, 170, .12), transparent 60%),
    radial-gradient(900px 500px at 100% 40%, rgba(92, 225, 255, .08), transparent 50%),
    var(--dxp-bg);
  color: var(--dxp-text);
  overflow: clip;
  margin: -1rem -1rem 0;
  padding-bottom: 3rem;
}
@media (min-width: 900px) {
  .th-devxp { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
}

/* —— Boot loader —— */
.th-devxp-boot {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: #03060c;
  transition: opacity .55s ease, visibility .55s;
}
.th-devxp-boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.th-devxp-boot-card {
  width: min(520px, 92vw);
  border: 1px solid var(--dxp-line);
  border-radius: 16px;
  background: #080e18;
  box-shadow: 0 0 0 1px rgba(0,255,170,.08), 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(0,255,170,.08);
  overflow: hidden;
}
.th-devxp-boot-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .65rem .9rem;
  background: #0c1422;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--dxp-mono); font-size: .78rem; color: var(--dxp-muted);
}
.th-devxp-boot-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57;
}
.th-devxp-boot-bar span:nth-child(2) { background: #febc2e; }
.th-devxp-boot-bar span:nth-child(3) { background: #28c840; }
.th-devxp-boot-bar em { margin-left: .5rem; font-style: normal; color: var(--dxp-neon); }
.th-devxp-boot-log {
  margin: 0; padding: 1rem 1.1rem 1.2rem;
  min-height: 180px;
  font-family: var(--dxp-mono); font-size: .82rem; line-height: 1.55;
  color: #9dffd0; white-space: pre-wrap;
}
.th-devxp-boot-progress {
  height: 4px; background: #121a28;
}
.th-devxp-boot-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--dxp-neon), var(--dxp-cyan));
  transition: width .2s ease;
  box-shadow: 0 0 12px var(--dxp-neon);
}

/* —— Scenes —— */
.th-devxp-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 4.5rem 1.25rem 3rem;
  perspective: 1400px;
}
.th-devxp-hero { text-align: center; }
.th-devxp-kicker {
  font-family: var(--dxp-mono); font-size: .85rem; color: var(--dxp-neon);
  letter-spacing: .08em; margin: 0 0 .75rem;
}
.th-devxp-glitch {
  font-family: var(--dxp-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0 0 .4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.th-devxp-glitch::before,
.th-devxp-glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.th-devxp-glitch::before { color: var(--dxp-cyan); transform: translate(-2px, 0); opacity: .55; mix-blend-mode: screen; animation: dxpGlitch 2.8s infinite linear alternate-reverse; }
.th-devxp-glitch::after { color: var(--dxp-orange); transform: translate(2px, 0); opacity: .45; mix-blend-mode: screen; animation: dxpGlitch 2.2s infinite linear alternate; }
@keyframes dxpGlitch {
  0%, 90%, 100% { clip-path: inset(0 0 0 0); }
  92% { clip-path: inset(12% 0 55% 0); }
  96% { clip-path: inset(60% 0 10% 0); }
}
.th-devxp-role {
  font-family: var(--dxp-mono); color: var(--dxp-muted); margin: 0 0 1.5rem;
}
.th-devxp-hint {
  margin-top: 1.75rem;
  font-family: var(--dxp-mono); font-size: .78rem; color: var(--dxp-muted);
  animation: dxpPulse 2s ease-in-out infinite;
}
@keyframes dxpPulse { 50% { opacity: .45; } }

.th-devxp-3dtext {
  transform-style: preserve-3d;
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 2px 0 rgba(0,0,0,.28),
    0 10px 24px rgba(0,0,0,.35);
  animation: dxpFloatY 5s ease-in-out infinite;
}
@keyframes dxpFloatY {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-6px) rotateX(4deg); }
}

/* Code rain */
.th-devxp-code-rain {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .18;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(0,255,170,.08) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(92,225,255,.05) 29px);
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}

/* —— 3D Avatar —— */
.th-devxp-avatar-wrap {
  position: relative;
  width: min(320px, 78vw);
  height: min(420px, 70vh);
  margin: 0 auto;
  transform-style: preserve-3d;
}
.th-devxp-avatar {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: dxpBob 4.5s ease-in-out infinite;
}
@keyframes dxpBob {
  0%, 100% { transform: translateY(0) rotateY(-6deg); }
  50% { transform: translateY(-14px) rotateY(6deg); }
}
.th-devxp-glow {
  position: absolute; left: 10%; right: 10%; bottom: 4%;
  height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,255,170,.45), transparent 70%);
  filter: blur(6px);
}
.th-devxp-body { position: relative; height: 100%; transform-style: preserve-3d; }
.th-devxp-head {
  position: absolute; left: 50%; top: 6%;
  width: 148px; height: 148px;
  transform: translateX(-50%);
  z-index: 3;
}
.th-devxp-hair {
  position: absolute; inset: -8px -6px auto;
  height: 70px;
  border-radius: 70px 70px 20px 20px;
  background: linear-gradient(180deg, #1a2438, #0d1422);
  box-shadow: inset 0 -10px 20px rgba(0,0,0,.35);
}
.th-devxp-face {
  position: absolute; inset: 18px 12px 8px;
  border-radius: 48% 48% 45% 45%;
  background: linear-gradient(180deg, #f0c7a0, #d9a57a);
  box-shadow:
    0 18px 30px rgba(0,0,0,.35),
    inset 0 -12px 18px rgba(120,60,20,.18);
  overflow: hidden;
}
.th-devxp-face-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .92; mix-blend-mode: normal;
  border-radius: inherit;
  filter: contrast(1.05) saturate(1.05);
}
.th-devxp-eyes {
  position: absolute; left: 18%; right: 18%; top: 42%;
  display: flex; justify-content: space-between;
  z-index: 2;
}
.th-devxp-eye {
  width: 28px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.15);
  overflow: hidden;
}
.th-devxp-pupil {
  position: absolute; left: 50%; top: 50%;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4a5e, #0b1220 70%);
  box-shadow: 0 0 0 2px #111;
  transition: transform .08s linear;
}
.th-devxp-smile {
  position: absolute; left: 35%; right: 35%; bottom: 22%;
  height: 10px; border-radius: 0 0 20px 20px;
  border-bottom: 3px solid rgba(120,50,30,.45);
  z-index: 2;
}
.th-devxp-torso {
  position: absolute; left: 50%; top: 38%;
  width: 170px; height: 200px;
  transform: translateX(-50%);
  z-index: 2;
}
.th-devxp-hoodie {
  width: 100%; height: 100%;
  border-radius: 40px 40px 28px 28px;
  background:
    linear-gradient(160deg, #1b2a44 0%, #101a2c 55%, #0a1220 100%);
  box-shadow:
    0 25px 50px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.th-devxp-hoodie::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 48px; height: 70px;
  transform: translateX(-50%);
  background: linear-gradient(#243552, #152238);
  border-radius: 0 0 16px 16px;
}
.th-devxp-badge {
  position: absolute; left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  font-family: var(--dxp-mono); font-weight: 700; font-size: 1.4rem;
  color: var(--dxp-neon);
  text-shadow: 0 0 18px rgba(0,255,170,.6);
  z-index: 2;
}
.th-devxp-arms { position: absolute; inset: 0; pointer-events: none; }
.th-devxp-arm {
  position: absolute; top: 44%;
  width: 36px; height: 120px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1b2a44, #0d1626);
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
}
.th-devxp-arm--l { left: 12%; transform: rotate(12deg); }
.th-devxp-arm--r { right: 12%; transform: rotate(-12deg); }

/* Mini avatar on desk */
.th-devxp-avatar--mini {
  width: 110px; height: 140px;
  animation: none;
  transform: rotateY(-18deg) translateZ(40px);
}
.th-devxp-avatar--mini .th-devxp-head { width: 72px; height: 72px; top: 0; }
.th-devxp-avatar--mini .th-devxp-torso { width: 86px; height: 90px; top: 42%; }
.th-devxp-avatar--mini .th-devxp-eye { width: 14px; height: 10px; }
.th-devxp-avatar--mini .th-devxp-pupil { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.th-devxp-avatar--mini .th-devxp-arms,
.th-devxp-avatar--mini .th-devxp-badge,
.th-devxp-avatar--mini .th-devxp-glow { display: none; }

/* —— Desk / table / PC —— */
.th-devxp-desk-stage {
  width: min(920px, 100%);
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-8deg);
  transition: transform .6s ease;
}
.th-devxp-desk.is-inview .th-devxp-desk-stage {
  transform: rotateX(12deg) rotateY(0deg) scale(1.02);
}
.th-devxp-table {
  position: relative;
  height: 380px;
  transform-style: preserve-3d;
}
.th-devxp-table-top {
  position: absolute; left: 5%; right: 5%; bottom: 70px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #3a2718, #6b4428 40%, #3a2718);
  box-shadow:
    0 20px 40px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.15);
  transform: rotateX(70deg) translateZ(20px);
}
.th-devxp-table-leg {
  position: absolute; bottom: 0; width: 14px; height: 70px;
  background: #2a1a10; border-radius: 4px;
}
.th-devxp-table-leg--l { left: 14%; }
.th-devxp-table-leg--r { right: 14%; }
.th-devxp-mini-avatar {
  position: absolute; left: 18%; bottom: 108px;
  z-index: 3;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.4));
}
.th-devxp-pc {
  position: absolute; right: 16%; bottom: 100px;
  width: 240px; transform-style: preserve-3d;
  z-index: 4;
}
.th-devxp-monitor {
  background: #111822;
  border: 3px solid #2a3548;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 30px rgba(0,255,170,.12);
  transform: translateZ(30px);
}
.th-devxp-screen {
  position: relative;
  height: 140px;
  border-radius: 4px;
  background: #061018;
  overflow: hidden;
  font-family: var(--dxp-mono);
  font-size: .62rem;
  color: #7dffc3;
  padding: .55rem .6rem;
}
.th-devxp-code { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.th-devxp-caret {
  display: inline-block; width: 7px; height: 12px;
  background: var(--dxp-neon);
  animation: dxpBlink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes dxpBlink { 50% { opacity: 0; } }
.th-devxp-stand {
  width: 28px; height: 28px; margin: 0 auto;
  background: #2a3548;
}
.th-devxp-base {
  width: 90px; height: 8px; margin: 0 auto;
  border-radius: 4px; background: #1c2433;
}
.th-devxp-keyboard {
  width: 160px; height: 18px; margin: 10px auto 0;
  border-radius: 4px;
  background: linear-gradient(#1a2230, #0e141e);
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
}
.th-devxp-desk-caption {
  text-align: center; margin-top: 1.5rem;
  font-family: var(--dxp-mono); font-size: .85rem; color: var(--dxp-cyan);
}

/* —— Dossier split —— */
.th-devxp-dossier { align-items: stretch; padding-top: 3rem; padding-bottom: 4rem; }
.th-devxp-dossier-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.2fr;
  gap: 1.75rem;
  align-items: center;
}
@media (max-width: 860px) {
  .th-devxp-dossier-grid { grid-template-columns: 1fr; }
  .th-devxp-dossier-stage { order: -1; min-height: 280px; }
}
.th-devxp-dossier-stage {
  position: relative; min-height: 360px;
  transform-style: preserve-3d;
}
.th-devxp-table--side {
  height: 340px;
  transform: rotateY(18deg) rotateX(8deg) scale(.95);
  transform-origin: left center;
}
.th-devxp-table--side .th-devxp-mini-avatar { left: 10%; }
.th-devxp-pc--side { right: 8%; width: 200px; }
.th-devxp-pc--side .th-devxp-screen { height: 110px; }

.th-devxp-panel {
  background:
    linear-gradient(160deg, rgba(0,255,170,.06), transparent 40%),
    var(--dxp-panel);
  border: 1px solid var(--dxp-line);
  border-radius: 22px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow:
    0 30px 70px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.04);
  transform: translateY(40px);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
}
.th-devxp-dossier.is-inview .th-devxp-panel {
  transform: translateY(0);
  opacity: 1;
}
.th-devxp-panel-kicker {
  font-family: var(--dxp-mono); font-size: .78rem; color: var(--dxp-neon);
  margin: 0 0 .35rem; letter-spacing: .12em; text-transform: uppercase;
}
.th-devxp-panel-name {
  font-family: var(--dxp-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin: 0 0 .35rem;
  letter-spacing: .03em;
}
.th-devxp-panel-tag {
  font-family: var(--dxp-mono); color: var(--dxp-cyan);
  min-height: 1.4em; margin: 0 0 .85rem;
}
.th-devxp-panel-tag::after {
  content: "▌";
  animation: dxpBlink 1s step-end infinite;
  margin-left: 2px;
}
.th-devxp-chip {
  display: inline-block;
  font-family: var(--dxp-mono); font-size: .75rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(92,225,255,.35);
  color: var(--dxp-cyan);
  background: rgba(92,225,255,.08);
}
.th-devxp-panel-bio {
  color: #c5d6ea; line-height: 1.65; margin: .85rem 0 1.1rem;
}
.th-devxp-block { margin-top: 1.15rem; }
.th-devxp-block h3 {
  font-family: var(--dxp-mono); font-size: .95rem;
  margin: 0 0 .55rem; color: #fff;
}
.th-devxp-hash { color: var(--dxp-orange); margin-right: .35rem; }
.th-devxp-block p { margin: 0; color: var(--dxp-muted); line-height: 1.55; }
.th-devxp-langs { display: flex; flex-wrap: wrap; gap: .45rem; }
.th-devxp-lang {
  font-family: var(--dxp-mono); font-size: .72rem; font-weight: 600;
  padding: .35rem .6rem; border-radius: 8px;
  background: rgba(255,107,0,.12);
  border: 1px solid rgba(255,107,0,.35);
  color: #ffc08a;
  transform: translateY(12px); opacity: 0;
  animation: dxpPop .5s ease forwards;
  animation-delay: calc(var(--i, 0) * .05s + .2s);
}
.th-devxp-dossier.is-inview .th-devxp-lang {
  --i: 1;
}
.th-devxp-langs .th-devxp-lang:nth-child(1) { animation-delay: .1s; }
.th-devxp-langs .th-devxp-lang:nth-child(2) { animation-delay: .16s; }
.th-devxp-langs .th-devxp-lang:nth-child(3) { animation-delay: .22s; }
.th-devxp-langs .th-devxp-lang:nth-child(4) { animation-delay: .28s; }
.th-devxp-langs .th-devxp-lang:nth-child(5) { animation-delay: .34s; }
.th-devxp-langs .th-devxp-lang:nth-child(6) { animation-delay: .4s; }
.th-devxp-langs .th-devxp-lang:nth-child(7) { animation-delay: .46s; }
.th-devxp-langs .th-devxp-lang:nth-child(8) { animation-delay: .52s; }
@keyframes dxpPop {
  to { transform: translateY(0); opacity: 1; }
}
.th-devxp-projects { list-style: none; margin: 0; padding: 0; }
.th-devxp-projects li {
  display: grid; grid-template-columns: 42px 1fr; gap: .65rem;
  align-items: start;
  padding: .55rem .65rem;
  margin-bottom: .4rem;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transform: translateX(20px); opacity: 0;
}
.th-devxp-dossier.is-inview .th-devxp-projects li {
  animation: dxpSlide .55s ease forwards;
  animation-delay: calc(var(--i) * .08s + .15s);
}
@keyframes dxpSlide { to { transform: none; opacity: 1; } }
.th-devxp-projects code {
  font-family: var(--dxp-mono); color: var(--dxp-neon); font-size: .78rem;
}
.th-devxp-projects span { color: #d7e6f7; font-size: .92rem; line-height: 1.4; }

.th-devxp-cta { margin-top: 1.5rem; }
.th-devxp-cta-text {
  font-family: var(--dxp-mono); font-size: .82rem;
  color: var(--dxp-muted); margin: 0 0 .9rem; line-height: 1.5;
}
.th-devxp-wa {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff !important;
  font-weight: 700; font-family: var(--dxp-mono); font-size: .9rem;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(18,140,126,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.th-devxp-wa:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px rgba(18,140,126,.5); }
.th-devxp-back {
  display: inline-block; margin-left: .85rem;
  font-family: var(--dxp-mono); font-size: .82rem; color: var(--dxp-cyan);
  text-decoration: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .th-devxp-avatar, .th-devxp-3dtext, .th-devxp-glitch::before, .th-devxp-glitch::after { animation: none !important; }
}

/* —— About page coding skin —— */
.th-about-code {
  position: relative;
}
.th-about-boot {
  position: fixed; inset: 0; z-index: 99998;
  display: grid; place-items: center;
  background: #03060c;
  transition: opacity .5s ease, visibility .5s;
}
.th-about-boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.th-about-boot pre {
  width: min(480px, 90vw);
  margin: 0; padding: 1.2rem;
  border: 1px solid rgba(0,255,170,.25);
  border-radius: 14px;
  background: #080e18;
  font-family: var(--dxp-mono, monospace);
  font-size: .85rem; color: #9dffd0; line-height: 1.5;
  min-height: 140px; white-space: pre-wrap;
}
.th-about-code .th-section-head h2,
.th-about-code .th-article h2 {
  font-family: "Orbitron", var(--display, sans-serif);
  letter-spacing: .03em;
}
.th-about-code .th-article {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .92rem;
}
.th-dev-card {
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  text-decoration: none; color: inherit;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.th-dev-card-premium::before { content: none; }
.th-dev-card:hover, .th-dev-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15,27,45,.16);
  border-color: rgba(255,107,0,.35);
}
.th-devxp-premium .th-devxp-boot { display: none !important; }
.th-devxp-desk-intro { text-align: center; padding: 2rem 1rem 0; max-width: 720px; margin: 0 auto; }
.th-devxp-desk-intro h1 {
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  margin: 0;
  color: #fff;
  letter-spacing: -0.03em;
}
.th-devxp-role-plain { color: var(--dxp-muted); margin: 0.4rem 0 0; font-size: 1.05rem; }
.th-devxp-screen-text {
  font-size: 0.72rem; line-height: 1.55; margin: 0; padding: 0.85rem 1rem;
  color: #b8ffe0; font-weight: 600;
}
.th-dev-card-avatar {
  font-size: 3rem; display: grid; place-items: center; width: 100%; aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255,107,0,.12), rgba(255,107,0,.04));
  border-radius: 16px;
}
.th-devxp-desk-stage--fig {
  transform: none !important;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 1rem 1rem;
}
.th-dev-workstation-fig {
  margin: 0;
  animation: thDevFigIn 1s cubic-bezier(.22,1,.36,1) both;
}
.th-dev-workstation-fig img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.45));
}
.th-dev-workstation-fig--sm img {
  max-width: 420px;
  margin: 0 auto;
}
@keyframes thDevFigIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.th-devxp-desk.is-inview .th-dev-workstation-fig img {
  animation: thDevGlow 4s ease-in-out infinite;
}
@keyframes thDevGlow {
  0%, 100% { filter: drop-shadow(0 28px 48px rgba(0,0,0,.45)); }
  50% { filter: drop-shadow(0 32px 56px rgba(0,255,170,.15)); }
}
html[data-theme="dark"] .th-nav-premium {
  background: rgba(12, 18, 28, 0.92);
  border-bottom-color: rgba(255,255,255,.06);
}
.th-dev-card-link { display: contents; }
html[data-theme="dark"] .th-devxp { --dxp-bg: #05080f; }

/* —— Premium developer page (2026) —— */
.th-dev-premium {
  margin: -1rem calc(50% - 50vw) 0;
  width: 100vw;
  max-width: 100vw;
  background:
    radial-gradient(1100px 520px at 20% 0%, rgba(255, 107, 0, .14), transparent 55%),
    radial-gradient(900px 480px at 90% 20%, rgba(0, 255, 170, .1), transparent 50%),
    var(--dxp-bg, #070b14);
  color: var(--dxp-text, #e8f4ff);
  padding-bottom: 4rem;
  overflow: visible;
}
.th-dev-hero-visual {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.th-dev-hero {
  padding: 2.5rem 1.25rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
}
.th-dev-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}
.th-dev-hero-grid--split {
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
}
@media (max-width: 900px) {
  .th-dev-hero-grid,
  .th-dev-hero-grid--split { grid-template-columns: 1fr; }
}
.th-dev-detail {
  margin: 0 0 .65rem;
  line-height: 1.55;
  color: #c5d4e8;
  font-size: .95rem;
}
.th-dev-detail strong { color: var(--th-orange, #ff6b00); font-weight: 700; }
.th-dev-bio--short { margin-top: .75rem; }
.th-dev-kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--th-orange, #ff6b00);
  margin: 0 0 .65rem;
}
.th-dev-name {
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 .35rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.th-dev-role { font-size: 1.15rem; color: var(--dxp-muted); margin: 0 0 .5rem; }
.th-dev-tagline { font-size: 1.05rem; color: #c5d4e8; margin: 0 0 1.25rem; line-height: 1.55; }
.th-dev-info-card {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, .25);
  background: rgba(255, 107, 0, .06);
}
.th-dev-info-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--th-orange, #ff6b00);
  margin-bottom: .35rem;
}
.th-dev-info-card p { margin: 0; line-height: 1.6; color: #dce8f8; }
.th-dev-bio { margin: 1rem 0; line-height: 1.65; color: #a8b8cc; }
.th-dev-lang-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.th-dev-scroll-hint {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--dxp-cyan, #5ce1ff);
  text-decoration: none;
  transition: color .2s, transform .2s;
}
.th-dev-scroll-hint:hover { color: #fff; transform: translateY(2px); }

.th-dev-about-panel {
  padding: 3rem 1.25rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  scroll-margin-top: 5rem;
}
.th-dev-about-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(13, 21, 36, .85);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  opacity: 1;
  transform: none;
}

/* Never hide developer copy via global [data-reveal] (fixes flash then disappear) */
.th-dev-pro-page [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Premium animated cards — opacity stays 1; only motion on enter */
.th-dev-anim-card {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.js-dev-profile .th-dev-anim-card.th-dev-anim--wait {
  opacity: 1;
  transform: translateY(20px);
}
.js-dev-profile .th-dev-anim-card.th-dev-anim--in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.07s);
}
.th-dev-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.th-dev-hero-card {
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 107, 0, .22);
  background: linear-gradient(145deg, rgba(255, 107, 0, .08), rgba(13, 21, 36, .55));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}
.th-dev-hero-card:hover {
  border-color: rgba(255, 107, 0, .42);
  box-shadow: 0 16px 44px rgba(255, 107, 0, .12);
}
.th-dev-hero-card--intro { padding: 1.35rem 1.4rem 1.2rem; }
.th-dev-hero-card--intro .th-dev-name { margin-bottom: 0.25rem; }
.th-dev-hero-card--visual {
  padding: 0.75rem;
  background: linear-gradient(160deg, rgba(0, 255, 170, .06), rgba(13, 21, 36, .4));
  border-color: rgba(0, 255, 170, .18);
}
.th-dev-hero-card--link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1rem;
  margin-top: 0.25rem;
}
.th-dev-detail--card { margin: 0; color: #dce8f8; }
.th-dev-detail--card strong { display: none; }
.th-dev-section-head {
  margin-bottom: 1.15rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, .2);
  background: rgba(255, 107, 0, .05);
}
.th-dev-section-head h2 { margin: 0; }
.th-dev-section-head .th-dev-pro-lead { margin: 0.45rem 0 0; }
.th-dev-case-grid {
  display: grid;
  gap: 1rem;
}
.th-dev-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.th-dev-point-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 14, 26, .55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.th-dev-point-card:hover {
  border-color: rgba(255, 107, 0, .35);
  transform: translateY(-2px);
}
.th-dev-point-card p {
  margin: 0;
  line-height: 1.55;
  color: #c5d4e8;
  font-size: 0.94rem;
}
.th-dev-point-icon {
  flex-shrink: 0;
  color: var(--th-orange, #ff6b00);
  font-size: 0.65rem;
  margin-top: 0.35rem;
}
.th-dev-cta-premium.th-dev-anim-card {
  padding: 1.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 0, .25);
  background: linear-gradient(180deg, rgba(255, 107, 0, .08), rgba(13, 21, 36, .5));
}
.th-dev-about-head { text-align: center; margin-bottom: 2rem; }
.th-dev-about-head h2 {
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0 0 .4rem;
  color: #fff;
}
.th-dev-about-head p { margin: 0; color: var(--dxp-muted); }
.th-dev-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 640px) {
  .th-dev-about-grid { grid-template-columns: 1fr; }
}
.th-dev-about-card {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 107, 0, .2);
  background: rgba(255, 107, 0, .04);
  transition: transform .25s, border-color .25s;
}
.th-dev-about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, .45);
}
.th-dev-about-card--wide { grid-column: 1 / -1; }
.th-dev-about-card h3 { margin: 0 0 .65rem; font-size: 1rem; color: var(--th-orange, #ff6b00); }
.th-dev-about-card p { margin: 0; line-height: 1.6; color: #c5d4e8; }
.th-dev-projects-clean code { display: none; }
.th-dev-projects-clean .th-dev-proj-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 255, 170, .15);
  color: #7dffc3;
  font-weight: 800;
  font-size: .85rem;
  margin-right: .65rem;
}
.th-dev-about-panel.is-inview .th-devxp-projects li {
  animation: dxpSlide .55s ease forwards;
  animation-delay: calc(var(--i) * .08s + .15s);
}
.th-dev-cta-premium { margin-top: 2rem; text-align: center; }
.th-dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.th-about-premium .th-dev-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.th-about-premium .th-dev-card img,
.th-about-premium .th-dev-card-ill {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4f8ff, #eef3fb);
}
.th-dev-card-ws {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d1524, #050c12);
  border: 1px solid rgba(0, 255, 170, .2);
}
.th-dev-card-ws__screen {
  width: 72%;
  height: 48%;
  border-radius: 6px;
  border: 2px solid #3d4d62;
  background: #061018;
  box-shadow: 0 0 20px rgba(0, 255, 170, .15);
  position: relative;
}
.th-dev-card-ws__screen::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22%;
  height: 3px;
  background: rgba(0, 255, 170, .5);
  box-shadow: 0 8px 0 rgba(80, 250, 123, .35), 0 16px 0 rgba(255, 121, 198, .3);
  animation: thCardWsPulse 2s ease-in-out infinite;
}
@keyframes thCardWsPulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

/* —— Pro profile sheet (skillset, portfolio, case studies) —— */
.th-dev-pro-sheet { text-align: left; }
.th-dev-pro-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.th-dev-pro-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.th-dev-pro-section > h2,
.th-dev-section-head h2 {
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  margin: 0 0 .65rem;
  color: var(--th-orange, #ff6b00);
  letter-spacing: -0.02em;
}
.th-dev-section-head h2 { margin: 0; }
.th-dev-pro-lead {
  margin: 0 0 1.25rem;
  color: var(--dxp-muted, #8aa0b8);
  line-height: 1.55;
  font-size: .98rem;
}
.th-dev-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.th-dev-skill-card {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, .22);
  background: rgba(255, 107, 0, .05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.th-dev-skill-card.th-dev-anim--in:hover,
.th-dev-skill-card:hover {
  border-color: rgba(255, 107, 0, .42);
  box-shadow: 0 14px 36px rgba(255, 107, 0, .12);
}
.th-dev-skill-card h3 {
  margin: 0 0 .65rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-orange, #ff6b00);
}
.th-dev-premium .th-devxp-langs { display: flex; flex-wrap: wrap; gap: .4rem; }
.th-dev-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}
.th-dev-portfolio-card {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 14, 26, .65);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  opacity: 1;
}
.th-dev-portfolio-card.th-dev-anim--in:hover {
  border-color: rgba(255, 107, 0, .35);
  box-shadow: 0 18px 48px rgba(255, 107, 0, .1);
}
.th-dev-portfolio-card h3 {
  margin: 0 0 .55rem;
  font-size: 1.08rem;
  color: #fff;
}
.th-dev-portfolio-desc,
.th-dev-portfolio-meta {
  margin: 0 0 .65rem;
  line-height: 1.55;
  color: #c5d4e8;
  font-size: .94rem;
}
.th-dev-portfolio-meta strong { color: var(--th-orange, #ff6b00); }
.th-dev-portfolio-features {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: #b8c8dc;
  line-height: 1.5;
  font-size: .92rem;
}
.th-dev-portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.th-dev-portfolio-links a {
  display: inline-flex;
  align-items: center;
  padding: .4rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  color: #061018;
  background: linear-gradient(135deg, var(--th-orange, #ff6b00), #ff9a4d);
  transition: transform .2s, box-shadow .2s;
}
.th-dev-portfolio-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, .35);
}
.th-dev-case-card {
  margin-bottom: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border-left: 4px solid var(--th-orange, #ff6b00);
  background: rgba(255, 107, 0, .06);
  border-top: 1px solid rgba(255, 107, 0, .15);
  border-right: 1px solid rgba(255, 107, 0, .15);
  border-bottom: 1px solid rgba(255, 107, 0, .15);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .16);
}
.th-dev-case-card.th-dev-anim--in:hover {
  box-shadow: 0 14px 40px rgba(255, 107, 0, .12);
}
.th-dev-case-card h3 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  color: #fff;
}
.th-dev-case-card p {
  margin: 0 0 .45rem;
  line-height: 1.55;
  color: #c5d4e8;
  font-size: .94rem;
}
.th-dev-case-card p strong { color: var(--th-orange, #ff6b00); }
.th-dev-pro-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
  color: #c5d4e8;
}
.th-dev-pro-list li { margin-bottom: .45rem; }
.th-dev-pro-list li::marker { color: var(--th-orange, #ff6b00); }

@media (prefers-reduced-motion: reduce) {
  .th-dev-pro-page .th-dev-anim-card,
  .js-dev-profile .th-dev-anim-card.th-dev-anim--wait {
    transform: none !important;
    transition: none !important;
  }
}
