/* ====================================================================== */
/* moataz-portfolio-v3 */
/* Copyright (c) 2026 Moataz Mohamed <mtzm2225@gmail.com> — all rights reserved. */
/* Author: Moataz Mohamed  <https://github.com/moatazsmohamed> */
/* Fingerprint: e8fa428b72fc0e43a2632e36723784d1 */
/* This notice is part of the work and must not be removed. */
/* ====================================================================== */
/* ========================================================
   معتز محمد — portfolio v3
   light violet theme
   ======================================================== */

:root {
  --bg: #f6f2ff;
  --ink: #1c1233;
  --muted: #655a7d;
  --muted-2: #8d82a4;
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --violet-3: #6d28d9;
  --glow: #8b5cf6;
  --line: rgba(124, 58, 237, 0.16);
  --r-lg: 26px;
  --r-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  background-image: linear-gradient(180deg, #f9f5ff 0%, #f2ebff 45%, #faf7ff 100%);
  color: var(--ink);
  font-family: "Cairo", system-ui, sans-serif;
  font-weight: 400;
  overflow-x: clip;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }

/* ---------- ambient lavender light ---------- */
.aura {
  position: fixed;
  inset: -32vh -10vw auto;
  height: 130vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 40% at 50% 0%, rgba(168, 85, 247, 0.26), transparent 70%),
    radial-gradient(30% 26% at 72% 6%, rgba(217, 70, 239, 0.16), transparent 72%),
    radial-gradient(34% 30% at 22% 4%, rgba(139, 92, 246, 0.22), transparent 72%);
  filter: blur(26px);
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(rgba(76, 29, 149, 0.16) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

main, .nav, .topbar, .foot { position: relative; z-index: 2; }

/* ---------- top browser bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 6px;
  max-width: 1400px;
  margin: 0 auto;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(28, 18, 51, 0.14); }
.dots i:first-child { background: #ff8f8f; }
.dots i:nth-child(2) { background: #ffc457; }
.dots i:nth-child(3) { background: #6ee39b; }

.urlbar {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 6px 18px rgba(76, 29, 149, 0.06);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
}
.urlbar svg { width: 12px; height: 12px; fill: var(--muted-2); flex: none; }

.tb-av {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
  background: linear-gradient(150deg, var(--violet-2), var(--violet));
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px clamp(14px, 4vw, 40px);
  margin-top: 6px;
}
.pills {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(124, 58, 237, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.1);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.pill:hover { color: var(--ink); background: rgba(124, 58, 237, 0.08); }
.pill.brand b { font-weight: 800; color: var(--ink); }
.pill.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.55);
}
.pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-2) 100%);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.pill.brand.active .dot { background: #ffe6a7; box-shadow: 0 0 10px #ffd479; }

.menu {
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.12);
  transition: 0.25s;
}
.menu span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: 0.3s; }
.menu span:last-child { width: 10px; justify-self: end; }
.menu:hover { background: rgba(124, 58, 237, 0.12); border-color: var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(26px, 5vw, 60px) clamp(16px, 4vw, 48px) clamp(40px, 8vw, 96px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: -12%;
  width: min(1200px, 130vw);
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 45%, rgba(168, 85, 247, 0.2), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: min(66vh, 600px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.display {
  position: relative;
  z-index: 3;
  font-weight: 900;
  font-size: clamp(46px, 10.5vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-wrap: balance;
}
.display .l1 { color: #241048; text-shadow: 0 18px 44px rgba(124, 58, 237, 0.16); }
.display .l2 {
  white-space: nowrap;
  color: var(--violet);
  background: linear-gradient(180deg, #8b5cf6 6%, #7c3aed 55%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-inline: 0.06em;
  padding-bottom: 0.08em;
  filter: drop-shadow(0 14px 30px rgba(124, 58, 237, 0.22));
}

/* ---------- portrait: cursor tilt + spotlight ---------- */
.face-wrap {
  --tx: -50%;
  --ty: 0px;
  --rx: 0deg;
  --ry: 0deg;
  --sc: 1;
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 45%;
  width: clamp(210px, 28vw, 380px);
  transform: perspective(1000px) translateX(var(--tx)) translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--sc));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  will-change: transform;
  pointer-events: none;
}
.face-wrap.is-hot {
  --ty: -8px;
  --sc: 1.05;
  transition: transform 0.16s ease-out;
}
.face {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: contrast(1.03) drop-shadow(0 24px 50px rgba(109, 40, 217, 0.26));
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
  transition: filter 0.5s;
}
.face-wrap.is-hot .face {
  filter: contrast(1.05) saturate(1.06) drop-shadow(0 32px 66px rgba(109, 40, 217, 0.42));
}
.face-ring {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.26) 28%, transparent 68%);
  filter: blur(30px);
  opacity: 0.8;
  z-index: -1;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.face-wrap.is-hot .face-ring { opacity: 1; transform: scale(1.06); }
.face-spot {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 42%), rgba(168, 85, 247, 0.5), rgba(139, 92, 246, 0.16) 42%, transparent 68%);
  filter: blur(28px);
  opacity: 0;
  z-index: -2;
  transition: opacity 0.45s;
}
.face-wrap.is-hot .face-spot { opacity: 0.9; }

.hero-id {
  position: absolute;
  z-index: 5;
  inset-inline-start: 3%;
  top: 55%;
  text-align: start;
  display: grid;
  gap: 2px;
}
.hero-id strong { font-size: clamp(17px, 2vw, 24px); font-weight: 900; letter-spacing: -0.01em; }
.hero-id small { font-size: clamp(11px, 1.2vw, 13px); color: var(--violet-3); font-weight: 600; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-2) 55%, #c026d3 100%);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(124, 58, 237, 0.42); }
.cta svg { width: 17px; height: 17px; }
.cta.small { padding: 11px 20px; font-size: 13px; }

.hero .cta {
  position: absolute;
  z-index: 6;
  inset-inline-end: 2%;
  bottom: 12%;
}

.hero-tags { display: none; }

/* ---------- generic section ---------- */
.sec {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 68px) clamp(16px, 4vw, 40px);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.sec-head.center { justify-content: center; text-align: center; }
.sec-head h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sec-head p { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.sec-head p a { color: var(--violet-3); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--violet-3);
  opacity: 0.85;
  margin-bottom: 6px;
}

.rail-nav { display: flex; gap: 8px; }
.rbtn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.08);
  transition: 0.25s;
}
.rbtn:hover { background: linear-gradient(135deg, var(--violet), var(--violet-2)); border-color: transparent; color: #fff; }
.rbtn svg { width: 18px; height: 18px; }

/* ---------- coverflow ---------- */
.coverflow {
  --sh: clamp(190px, 23vw, 280px);
  --pw: clamp(320px, 34vw, 460px);
  position: relative;
  height: clamp(470px, 54vw, 600px);
  perspective: 1700px;
  transform-style: preserve-3d;
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
  cursor: grab;
}
.coverflow.is-drag { cursor: grabbing; }
.coverflow::after {
  content: "";
  position: absolute;
  inset: auto 0 3%;
  height: 30%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(124, 58, 237, 0.14), transparent 70%);
  filter: blur(8px);
}
.poster {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-block: auto;
  height: fit-content;
  left: 50%;
  width: min(var(--pw, 460px), calc(var(--sh) * var(--ar, 1.78) + 28px));
  margin-left: calc(min(var(--pw, 460px), calc(var(--sh) * var(--ar, 1.78) + 28px)) / -2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(130% 70% at 50% -10%, rgba(168, 85, 247, 0.16), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f4eeff 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 26px 56px rgba(76, 29, 149, 0.14);
  transition: opacity 0.55s var(--ease), filter 0.5s, box-shadow 0.6s;
  transform-style: preserve-3d;
  filter: blur(var(--df, 0px));
  will-change: transform;
  cursor: pointer;
}
.p-bar {
  order: 0;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 9px;
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.12);
  z-index: 3;
}
.p-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(124, 58, 237, 0.32); flex: none; }
.p-bar i:nth-child(2) { background: rgba(236, 180, 72, 0.55); }
.p-bar i:nth-child(3) { background: rgba(72, 199, 142, 0.5); }
.p-url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #6b5f8a;
  opacity: 0.9;
}
.p-shot {
  order: 1;
  position: relative;
  z-index: 2;
  flex: none;
  align-self: center;
  width: min(100%, calc(var(--sh, 268px) * var(--ar, 1.78)));
  aspect-ratio: var(--ar, 1.78);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(80% 60% at 50% 0%, rgba(168, 85, 247, 0.12), transparent 72%), #100b1c;
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 16px 34px rgba(76, 29, 149, 0.16);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease);
}
.p-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: saturate(1.02);
  transition: filter 0.6s;
}
.p-sheen {
  position: absolute;
  top: -20%;
  left: -46%;
  width: 36%;
  height: 140%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-16deg);
}
.poster.sweep .p-sheen { animation: psweep 1.05s var(--ease) 1; }
@keyframes psweep {
  0% { opacity: 0; left: -46%; }
  22% { opacity: 0.9; }
  100% { opacity: 0; left: 116%; }
}
.poster.is-active {
  box-shadow: 0 34px 74px rgba(91, 33, 182, 0.22), 0 0 0 1px rgba(167, 139, 250, 0.45);
}
.poster.is-active .p-shot img { filter: saturate(1.07); }
.poster:not(.is-active) .p-shot img { filter: saturate(0.62) brightness(0.95); }
.poster.is-active .p-shot {
  box-shadow: 0 22px 48px rgba(76, 29, 149, 0.26), 0 0 0 1px rgba(167, 139, 250, 0.5);
}
.p-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 45% at 50% 14%, rgba(168, 85, 247, 0.12), transparent 70%),
    radial-gradient(90% 60% at 50% 105%, rgba(139, 92, 246, 0.12), transparent 70%);
}
.p-top {
  position: static;
  order: 2;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
}
.p-kind {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: #5b21b6;
}
.p-no { color: rgba(28, 18, 51, 0.35); letter-spacing: 0.08em; }
.p-bot {
  position: static;
  order: 3;
  z-index: 3;
  margin-top: auto;
  display: grid;
  gap: 6px;
  transition: opacity 0.5s;
}
.poster:not(.is-active) .p-bot,
.poster:not(.is-active) .p-top { opacity: 0.5; }
.p-bot h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 900; }
.p-bot p { font-size: 11.5px; line-height: 1.7; color: #5f5480; }
.p-go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 11.5px; font-weight: 800; color: var(--violet-3);
}
.p-go svg { width: 14px; height: 14px; }
.p-link { position: absolute; inset: 0; z-index: 5; }
.poster:not(.is-active) .p-link { pointer-events: none; }

.sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparks i {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ddd0ff, #7c3aed);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.55);
  transform: rotate(45deg);
  animation: twinkle 5s ease-in-out infinite;
}
.sparks i:nth-child(1) { top: 8%; left: 16%; width: 16px; height: 16px; }
.sparks i:nth-child(2) { top: 30%; right: 9%; width: 10px; height: 10px; animation-delay: 1.2s; }
.sparks i:nth-child(3) { bottom: 26%; left: 7%; width: 9px; height: 9px; animation-delay: 2.4s; }
.sparks i:nth-child(4) { bottom: 13%; right: 20%; width: 14px; height: 14px; animation-delay: 3.1s; }
.sparks i:nth-child(5) { top: 4%; right: 33%; width: 7px; height: 7px; animation-delay: 1.8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: rotate(45deg) scale(0.85); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.1); }
}

.dots-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
}.dots-row i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(28, 18, 51, 0.18);
  transition: 0.35s var(--ease);
  cursor: pointer;
}
.dots-row i.on { width: 26px; background: linear-gradient(90deg, var(--violet), var(--violet-2)); }
.dots-row i:hover { background: var(--violet-2); transform: scaleY(1.5); }
.cf-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.cf-foot .dots-row { margin-top: 0; }
.cf-count {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(28, 18, 51, 0.42);
  min-width: 58px;
}
.cf-count b { color: var(--violet); }
.cf-hint {
  font-size: 11px;
  color: rgba(28, 18, 51, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-hint::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-2));
}
@media (max-width: 760px) { .cf-hint { display: none; } }

/* ---------- tech grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tech-grid li {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px 10px;
  min-height: 118px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #ffffff, #faf7ff);
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 10px 26px rgba(76, 29, 149, 0.05);
  transition: 0.35s var(--ease);
}
.tech-grid li:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow: 0 18px 38px rgba(91, 33, 182, 0.14);
  background: linear-gradient(180deg, #ffffff, #f1e8ff);
}
.tech-grid b {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #4c1d95;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.tech-grid li > span { font-size: 11px; font-weight: 500; color: var(--muted-2); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.about-text h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.about-text p { font-size: clamp(13.5px, 1.15vw, 15.5px); color: var(--muted); line-height: 2; margin-bottom: 14px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ghost-btn {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink);
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.75);
  transition: 0.3s;
}
.ghost-btn:hover { border-color: rgba(168, 85, 247, 0.55); background: rgba(124, 58, 237, 0.08); }

.about-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 26px 60px rgba(76, 29, 149, 0.16);
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease);
}
.about-photo:hover { transform: rotate(0deg) translateY(-4px); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.96); }
.ph-glow {
  position: absolute;
  inset-inline-start: -20%;
  bottom: -30%;
  width: 90%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
}

/* ---------- stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
  perspective: 1200px;
}
.stat {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: clamp(26px, 3.4vw, 40px) 18px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(168, 85, 247, 0.12), transparent 62%),
    linear-gradient(180deg, #ffffff, #f8f3ff);
  border: 1px solid rgba(167, 139, 250, 0.26);
  box-shadow: 0 22px 50px rgba(76, 29, 149, 0.1), inset 0 1px 0 #fff;
  transition: 0.45s var(--ease);
}
.stat:nth-child(1) { transform: translateY(16px) scale(0.965); opacity: 0.92; }
.stat:nth-child(2) { transform: translateY(-6px) scale(1.03); }
.stat:nth-child(3) { transform: translateY(10px) scale(0.98); opacity: 0.96; }
.stat:hover { transform: translateY(-8px) scale(1.02); opacity: 1; border-color: rgba(168, 85, 247, 0.45); }
.s-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(150deg, #a855f7, #7c3aed);
  border: 1px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.3);
}
.s-ico svg { width: 24px; height: 24px; }
.stat strong {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #4c1d95 20%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span:last-child { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ---------- contact ---------- */
.contact {
  text-align: center;
  display: grid;
  justify-items: center;
}
.c-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: min(720px, 90vw);
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.07) 55%, transparent 78%);
  filter: blur(46px);
  pointer-events: none;
  z-index: -1;
}
.c-title {
  position: relative;
  font-size: clamp(32px, 6.6vw, 74px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -0.025em;
  padding-bottom: 0.1em;
}
.c-title span {
  color: var(--violet);
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}
.c-sub { max-width: 460px; margin: 16px auto 28px; font-size: 14px; color: var(--muted); }

/* ---------- lead form ---------- */
.lead-form {
  position: relative;
  width: min(680px, 100%);
  margin: 0 auto 26px;
  padding: 22px;
  border-radius: 26px;
  text-align: right;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(168, 85, 247, 0.09), transparent 60%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 26px 60px rgba(76, 29, 149, 0.12), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px);
}
.lf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.lf-head strong { font-size: 15px; font-weight: 900; }
.lf-head span { font-size: 11px; color: var(--muted-2); }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lf-field { display: grid; gap: 6px; }
.lf-field > span { font-size: 11.5px; font-weight: 700; color: #5b4b7a; }
.lf-field > span i { font-style: normal; font-weight: 500; color: var(--muted-2); }
.lf-field input,
.lf-field select,
.lf-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fbf9ff;
  border: 1px solid rgba(124, 58, 237, 0.14);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: 0.25s;
}
.lf-field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.lf-field input::placeholder,
.lf-field textarea::placeholder { color: rgba(28, 18, 51, 0.35); }
.lf-field input:focus,
.lf-field select:focus,
.lf-field textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.6);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}
.lf-field select {
  appearance: none;
  padding-left: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 13px;
}
.lf-field select option { background: #fff; color: var(--ink); }
.lf-wide { grid-column: 1 / -1; }
.lf-hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.lf-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.lf-send { min-width: 170px; justify-content: center; border: 0; cursor: pointer; }
.lf-send[disabled] { opacity: 0.6; cursor: progress; }
.lf-status { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.lf-status.is-ok { color: #15803d; }
.lf-status.is-error { color: #be123c; }
.c-alt {
  display: flex; align-items: center; gap: 12px;
  width: min(680px, 100%);
  margin: 26px auto 16px;
  font-size: 12px; color: var(--muted-2);
}
.c-alt::before,
.c-alt::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.35), transparent);
}
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.c-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 34px;
}
.c-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid rgba(124, 58, 237, 0.14);
  background: rgba(255, 255, 255, 0.6);
  transition: 0.3s;
}
.c-links a:hover { color: #4c1d95; border-color: rgba(168, 85, 247, 0.55); background: rgba(124, 58, 237, 0.08); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 30px 20px 40px;
  font-size: 12px;
  color: var(--muted-2);
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  max-width: 1180px;
  margin: 0 auto;
}
.foot-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--violet-2); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* ========================================================
   responsive
   ======================================================== */
@media (max-width: 1000px) {
  .pill { padding: 8px 13px; font-size: 12.5px; }
  .hero-id { top: 58%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 460px; transform: rotate(0); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .topbar { padding: 10px 14px 4px; }
  .urlbar { font-size: 10.5px; }
  .nav { top: 6px; gap: 8px; padding: 8px 12px; }
  .pills { overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 84px); }
  .pills::-webkit-scrollbar { display: none; }
  .pill { padding: 8px 12px; font-size: 12px; }
  .pill.brand { display: none; }

  .hero { padding-top: 18px; }
  .hero-inner { min-height: 0; padding-block: 10px 34px; }
  .display { font-size: clamp(40px, 12.5vw, 68px); line-height: 0.98; }
  .display .l2 { white-space: normal; }
  .face-wrap {
    --tx: 0;
    position: static;
    width: 52vw;
    margin: -9vw auto -3vw;
    order: 0;
  }
  .hero-id { position: static; margin-top: 10px; text-align: center; }
  .hero .cta { position: static; margin-top: 18px; }

  .coverflow { height: 380px; }
  .sparks i:nth-child(2), .sparks i:nth-child(3), .sparks i:nth-child(4) { display: none; }
  .poster {
    width: 68vw;
    margin-left: -34vw;
    aspect-ratio: auto;
    border-radius: 20px;
  }
  .poster:not(.is-active) .p-bot,
  .poster:not(.is-active) .p-top { opacity: 0; }
  .p-bot h3 { font-size: 20px; }
  .p-bot p { font-size: 11px; }

  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat:nth-child(1), .stat:nth-child(2), .stat:nth-child(3) { transform: none; opacity: 1; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .lead-form { padding: 18px; border-radius: 22px; }
  .lf-grid { grid-template-columns: 1fr; }
  .lf-head span { display: none; }
  .lf-foot { justify-content: center; }
  .lf-send { width: 100%; }
  .lf-status { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- MOTRYX credit ---------- */
.motryx-credit {
  display: flex;
  justify-content: center;
  padding: 0 20px 40px;
}
.mc-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 20px 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(56, 189, 248, 0.03) 70%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.18);
}
.mc-badge {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 8px 22px rgba(14, 165, 233, 0.22);
}
.mc-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.mc-lead { font-size: 11px; color: #5a6575; }
.mc-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.28em;
  background: linear-gradient(90deg, #0284c7, #2563eb 60%, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mc-rule { width: 1px; height: 24px; background: rgba(100, 116, 139, 0.22); }
.mc-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7787;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .mc-card { gap: 10px; padding: 8px 14px 8px 9px; }
  .mc-badge { width: 34px; height: 34px; }
  .mc-rule, .mc-tag { display: none; }
  .mc-name { font-size: 14px; letter-spacing: 0.2em; }
}

/* MOTRYX credit links to the studio site */
a.mc-card {
  text-decoration: none;
  color: inherit;
}

/* ========================================================
   ALL WORK — grid, filters, search
   ======================================================== */
.all-work { padding-top: 10px; }

.work-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.w-search {
  position: relative;
  flex: 1 1 300px;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.06);
  transition: 0.25s var(--ease);
}
.w-search:focus-within {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.14);
}
.w-search svg { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.w-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.w-search input::placeholder { color: var(--muted-2); }
.w-search input::-webkit-search-cancel-button { display: none; }
.w-clear {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  background: rgba(124, 58, 237, 0.09);
  transition: 0.2s;
}
.w-clear:hover { background: var(--violet); color: #fff; }

.w-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.w-filters button {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: 0.22s var(--ease);
  white-space: nowrap;
}
.w-filters button:hover { color: var(--violet-3); border-color: rgba(124, 58, 237, 0.35); }
.w-filters button.on {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}
.w-filters button .n {
  font-size: 10.5px;
  opacity: 0.65;
  margin-inline-start: 4px;
}

.w-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted-2);
}
.w-sort { display: flex; align-items: center; gap: 8px; }
.w-sort label { font-size: 11.5px; color: var(--muted-2); }
.w-sort select {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  cursor: pointer;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.wcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(76, 29, 149, 0.07);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  opacity: 0;
  transform: translateY(18px);
}
.wcard.in { opacity: 1; transform: none; }
.wcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(76, 29, 149, 0.16);
  border-color: rgba(124, 58, 237, 0.3);
}

.wc-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #efe7ff, #f8f4ff);
}
.wc-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.wcard:hover .wc-shot img { transform: scale(1.045); }

.wc-badge {
  position: absolute;
  top: 11px;
  inset-inline-start: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(28, 18, 51, 0.72);
  backdrop-filter: blur(8px);
}
.wc-badge.priv { background: rgba(124, 58, 237, 0.85); }

.wc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px 16px;
  flex: 1;
}
.wc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.wc-body h3 {
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.wc-year {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  flex: none;
}
.wc-body p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wc-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.wc-tech span {
  font-size: 10px;
  font-weight: 700;
  padding: 3.5px 8px;
  border-radius: 6px;
  color: var(--violet-3);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.1);
}
.wc-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.wc-links a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  transition: 0.22s var(--ease);
}
.wc-links a svg { width: 13px; height: 13px; }
.wc-live {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24);
}
.wc-live:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wc-repo {
  color: var(--violet-3);
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.16);
}
.wc-repo:hover { background: rgba(124, 58, 237, 0.14); }
.wc-none {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  background: rgba(28, 18, 51, 0.04);
  border: 1px dashed rgba(28, 18, 51, 0.12);
}

.w-empty {
  text-align: center;
  padding: 56px 20px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(124, 58, 237, 0.25);
  background: rgba(255, 255, 255, 0.6);
}
.w-empty strong { display: block; font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.w-empty p { font-size: 12.5px; color: var(--muted-2); margin-bottom: 16px; }

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; gap: 14px; }
  .w-search { flex: 1 1 100%; }
  .w-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .w-filters::-webkit-scrollbar { display: none; }
  .w-meta { font-size: 11.5px; }
}

/* ========================================================
   MOBILE NAV — real drawer (the .menu button was dead before)
   ======================================================== */
.menu { display: none; }

@media (max-width: 760px) {
  .menu { display: grid; flex: none; }
  .nav { position: sticky; }
  .pills {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    box-shadow: 0 22px 50px rgba(76, 29, 149, 0.18);
    backdrop-filter: blur(14px);
    max-width: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: 0.26s var(--ease);
    z-index: 60;
  }
  .nav.open .pills {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .pills li { width: 100%; }
  .pill {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 13.5px;
    border-radius: 12px;
  }
  .pill.brand { display: block; }
  .nav.open .menu span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
  .nav.open .menu span:nth-child(2) { opacity: 0; }
  .nav.open .menu span:nth-child(3) { width: 16px; transform: translateY(-5.6px) rotate(-45deg); }
}

/* ============================================================
   project detail dialog
   ============================================================ */
.pd { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.pd[hidden] { display: none; }
.pd-backdrop { position: absolute; inset: 0; background: rgba(20, 12, 34, 0.62); backdrop-filter: blur(6px); animation: pdFade 0.25s ease both; }
.pd-panel {
  position: relative; width: min(920px, 100%); max-height: min(88vh, 900px); overflow: auto;
  background: #fff; border-radius: 22px; box-shadow: 0 40px 90px rgba(20, 12, 34, 0.4);
  animation: pdIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pdFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pdIn { from { opacity: 0; transform: translateY(18px) scale(0.985) } to { opacity: 1; transform: none } }
.pd-x {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: #2a1b3d; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); transition: transform 0.2s, background 0.2s;
}
.pd-x:hover { transform: scale(1.08); background: #fff; }
.pd-shot { aspect-ratio: 16 / 9; overflow: hidden; background: #f3eefc; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pd-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pd-kind { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #7c3aed; }
.pd-head h2 { margin: 4px 0 0; font-size: clamp(20px, 3vw, 27px); line-height: 1.2; color: #1c1233; }
.pd-year { font-size: 12px; font-weight: 700; color: #8b7fa8; padding-top: 4px; }
.pd-desc { margin: 0; font-size: 14.5px; line-height: 1.75; color: #4a3f63; }
.pd-hl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pd-hl li { position: relative; padding-inline-start: 22px; font-size: 13.5px; line-height: 1.6; color: #3d3355; }
.pd-hl li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #6d28d9);
}
.pd-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tech span {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px;
  background: #f4efff; color: #5b21b6; border: 1px solid #e6dbff;
}
.pd-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.pd-links a, .pd-links span {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 11px;
  font-size: 13px; font-weight: 800; text-decoration: none;
}
.pd-links a.primary { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; }
.pd-links a.primary:hover { filter: brightness(1.08); }
.pd-links a.ghost { background: #f4efff; color: #5b21b6; border: 1px solid #e6dbff; }
.pd-links span.none { background: #f5f3f8; color: #8b7fa8; }
body.pd-open { overflow: hidden; }

@media (max-width: 640px) {
  .pd { padding: 0; }
  .pd-panel { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .pd-body { padding: 18px 18px 28px; }
  .pd-shot { aspect-ratio: 4 / 3; }
}

.wc-live-tag {
  position: absolute; top: 11px; inset-inline-end: 11px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  color: #0f5132; background: rgba(220, 252, 231, 0.94);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(8px);
}
.wc-live-tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}
.wcard { cursor: pointer; }
.wcard:focus-visible { outline: 3px solid #7c3aed; outline-offset: 3px; }
