:root {
  --brand: #1a56ff;
  --accent: #7c3aed;
  --pink: #db2777;
  --ink: #0f172a;
  --muted: #475569;
  --soft: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

#bg-canvas {
  min-height: 100%;
}

.portfolio-shape-1 {
  width: 460px;
  height: 340px;
  background: linear-gradient(120deg, #f9a8d4 0%, #818cf8 48%, #38bdf8 100%);
  border-radius: 72% 28% 48% 52% / 44% 70% 30% 56%;
  filter: blur(42px) saturate(1.15);
  opacity: 0.56;
  animation: portfolioShape1 21s ease-in-out infinite alternate;
}

.portfolio-shape-2 {
  width: 360px;
  height: 470px;
  background: linear-gradient(205deg, #c084fc 0%, #60a5fa 52%, #f0abfc 100%);
  border-radius: 36% 64% 74% 26% / 64% 36% 62% 38%;
  filter: blur(46px) saturate(1.14);
  opacity: 0.46;
  animation: portfolioShape2 24s ease-in-out infinite alternate;
}

.portfolio-shape-3 {
  width: 520px;
  height: 250px;
  background: linear-gradient(85deg, #1a56ff 0%, #7c3aed 48%, #db2777 100%);
  border-radius: 30% 70% 42% 58% / 74% 26% 64% 36%;
  filter: blur(48px) saturate(1.18);
  opacity: 0.32;
  animation: portfolioShape3 19s ease-in-out infinite alternate;
}

.portfolio-shape-4 {
  width: 300px;
  height: 430px;
  background: linear-gradient(160deg, #7dd3fc 0%, #a78bfa 48%, #fbcfe8 100%);
  border-radius: 58% 42% 22% 78% / 40% 66% 34% 60%;
  filter: blur(40px) saturate(1.14);
  opacity: 0.48;
  animation: portfolioShape4 22s ease-in-out infinite alternate;
}

.portfolio-shape-5 {
  width: 430px;
  height: 320px;
  background: linear-gradient(300deg, #f472b6 0%, #c084fc 40%, #60a5fa 100%);
  border-radius: 18% 82% 60% 40% / 48% 72% 28% 52%;
  filter: blur(46px) saturate(1.16);
  opacity: 0.4;
  animation: portfolioShape5 26s ease-in-out infinite alternate;
}

.portfolio-shape-6 {
  width: 390px;
  height: 390px;
  background: linear-gradient(230deg, #38bdf8 0%, #818cf8 52%, #db2777 100%);
  border-radius: 46% 54% 76% 24% / 70% 34% 66% 30%;
  filter: blur(44px) saturate(1.16);
  opacity: 0.36;
  animation: portfolioShape6 23s ease-in-out infinite alternate;
}

.portfolio-shape-7 {
  width: 420px;
  height: 280px;
  background: linear-gradient(125deg, #bae6fd 0%, #a78bfa 46%, #f9a8d4 100%);
  border-radius: 76% 24% 42% 58% / 34% 70% 30% 66%;
  filter: blur(42px) saturate(1.17);
  opacity: 0.38;
  animation: portfolioShape7 25s ease-in-out infinite alternate;
}

.portfolio-shape-8 {
  width: 500px;
  height: 300px;
  background: linear-gradient(285deg, #60a5fa 0%, #c084fc 44%, #f0abfc 100%);
  border-radius: 24% 76% 68% 32% / 66% 28% 72% 34%;
  filter: blur(44px) saturate(1.16);
  opacity: 0.34;
  animation: portfolioShape8 28s ease-in-out infinite alternate;
}

@keyframes portfolioShape1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 72% 28% 48% 52% / 44% 70% 30% 56%; }
  50% { transform: translate(54vw, 12vh) rotate(42deg) scale(1.08); border-radius: 28% 72% 66% 34% / 60% 28% 72% 40%; }
  100% { transform: translate(14vw, -18vh) rotate(-18deg) scale(0.96); border-radius: 52% 48% 22% 78% / 36% 64% 52% 48%; }
}

@keyframes portfolioShape2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 36% 64% 74% 26% / 64% 36% 62% 38%; }
  50% { transform: translate(-32vw, 18vh) rotate(-38deg) scale(0.92); border-radius: 70% 30% 40% 60% / 30% 70% 34% 66%; }
  100% { transform: translate(10vw, -22vh) rotate(28deg) scale(1.12); border-radius: 44% 56% 26% 74% / 76% 24% 66% 34%; }
}

@keyframes portfolioShape3 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 30% 70% 42% 58% / 74% 26% 64% 36%; }
  50% { transform: translate(18vw, -26vh) rotate(16deg) scale(1.14); border-radius: 64% 36% 76% 24% / 42% 58% 34% 66%; }
  100% { transform: translate(-24vw, 20vh) rotate(-32deg) scale(0.92); border-radius: 40% 60% 22% 78% / 62% 38% 70% 30%; }
}

@keyframes portfolioShape4 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 58% 42% 22% 78% / 40% 66% 34% 60%; }
  50% { transform: translate(42vw, -16vh) rotate(54deg) scale(1.06); border-radius: 24% 76% 58% 42% / 72% 28% 56% 44%; }
  100% { transform: translate(20vw, 24vh) rotate(-24deg) scale(0.9); border-radius: 72% 28% 36% 64% / 48% 52% 78% 22%; }
}

@keyframes portfolioShape5 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 18% 82% 60% 40% / 48% 72% 28% 52%; }
  50% { transform: translate(-38vw, -18vh) rotate(-22deg) scale(1.12); border-radius: 68% 32% 34% 66% / 28% 72% 60% 40%; }
  100% { transform: translate(-12vw, 22vh) rotate(36deg) scale(0.94); border-radius: 42% 58% 80% 20% / 64% 36% 46% 54%; }
}

@keyframes portfolioShape6 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 46% 54% 76% 24% / 70% 34% 66% 30%; }
  50% { transform: translate(-18vw, 24vh) rotate(44deg) scale(1.08); border-radius: 74% 26% 40% 60% / 38% 62% 28% 72%; }
  100% { transform: translate(12vw, -20vh) rotate(-28deg) scale(0.96); border-radius: 32% 68% 58% 42% / 76% 24% 58% 42%; }
}

@keyframes portfolioShape7 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 76% 24% 42% 58% / 34% 70% 30% 66%; }
  50% { transform: translate(46vw, -10vh) rotate(38deg) scale(1.08); border-radius: 30% 70% 78% 22% / 62% 38% 54% 46%; }
  100% { transform: translate(18vw, 26vh) rotate(-26deg) scale(0.94); border-radius: 58% 42% 26% 74% / 28% 72% 44% 56%; }
}

@keyframes portfolioShape8 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 24% 76% 68% 32% / 66% 28% 72% 34%; }
  50% { transform: translate(-24vw, -18vh) rotate(-34deg) scale(1.1); border-radius: 72% 28% 36% 64% / 34% 66% 42% 58%; }
  100% { transform: translate(20vw, 14vh) rotate(24deg) scale(0.92); border-radius: 40% 60% 76% 24% / 72% 28% 60% 40%; }
}

@media (max-width: 768px) {
  .portfolio-shape-1 {
    width: 380px;
    height: 280px;
    background: linear-gradient(135deg, #f9a8d4 0%, #a78bfa 38%, #67e8f9 100%);
    border-radius: 16% 84% 58% 42% / 72% 24% 76% 28%;
    filter: blur(34px) saturate(1.2);
    opacity: 0.56;
  }

  .portfolio-shape-2 {
    width: 300px;
    height: 390px;
    background: linear-gradient(170deg, #f0abfc 0%, #c084fc 46%, #60a5fa 100%);
    border-radius: 74% 26% 38% 62% / 24% 68% 32% 76%;
    filter: blur(36px) saturate(1.18);
    opacity: 0.44;
  }

  .portfolio-shape-3 {
    width: 420px;
    height: 190px;
    background: linear-gradient(95deg, #60a5fa 0%, #7c3aed 54%, #f472b6 100%);
    border-radius: 76% 24% 54% 46% / 28% 72% 34% 66%;
    filter: blur(38px) saturate(1.2);
    opacity: 0.32;
  }

  .portfolio-shape-4 {
    width: 260px;
    height: 370px;
    background: linear-gradient(205deg, #7dd3fc 0%, #818cf8 48%, #fbcfe8 100%);
    border-radius: 28% 72% 18% 82% / 64% 36% 78% 22%;
    filter: blur(34px) saturate(1.18);
    opacity: 0.46;
  }

  .portfolio-shape-5 {
    width: 350px;
    height: 250px;
    background: linear-gradient(300deg, #fbcfe8 0%, #c084fc 45%, #38bdf8 100%);
    border-radius: 20% 80% 70% 30% / 76% 26% 62% 38%;
    filter: blur(38px) saturate(1.18);
    opacity: 0.38;
  }

  .portfolio-shape-6 {
    width: 320px;
    height: 320px;
    background: linear-gradient(230deg, #67e8f9 0%, #a78bfa 50%, #db2777 100%);
    border-radius: 62% 38% 20% 80% / 30% 76% 24% 70%;
    filter: blur(36px) saturate(1.18);
    opacity: 0.34;
  }

  .portfolio-shape-7 {
    width: 310px;
    height: 220px;
    background: linear-gradient(125deg, #bae6fd 0%, #a78bfa 48%, #f9a8d4 100%);
    border-radius: 80% 20% 46% 54% / 28% 72% 34% 66%;
    filter: blur(36px) saturate(1.18);
    opacity: 0.34;
  }

  .portfolio-shape-8 {
    width: 360px;
    height: 220px;
    background: linear-gradient(285deg, #60a5fa 0%, #c084fc 46%, #f0abfc 100%);
    border-radius: 26% 74% 70% 30% / 70% 30% 72% 28%;
    filter: blur(38px) saturate(1.18);
    opacity: 0.3;
  }
}

#portfolio-root {
  position: relative;
  z-index: 1;
}

.portfolio-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.portfolio-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.portfolio-nav {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-nav-left,
.portfolio-nav-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
}

.portfolio-menu-btn {
  position: relative;
  z-index: 3;
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.portfolio-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.portfolio-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.portfolio-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.portfolio-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.portfolio-nav-left a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-nav-left a:hover { color: var(--ink); }

.portfolio-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  line-height: 0;
}

.portfolio-logo img {
  width: auto;
  height: 11rem;
  transition: transform 0.25s ease;
}

.portfolio-logo:hover img { transform: scale(1.04); }

.portfolio-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(26, 86, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 255, 0.35);
}

.portfolio-mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-mobile-menu.open {
  max-height: 320px;
}

.portfolio-mobile-menu a {
  display: block;
  padding: 13px 6px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.portfolio-mobile-menu a:last-child {
  color: var(--brand);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.mini-hero {
  padding: clamp(72px, 12vw, 128px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}

body[data-portfolio-version="v1"] .mini-hero {
  padding-top: clamp(148px, 15vw, 178px);
  padding-bottom: clamp(40px, 5vw, 58px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(26, 86, 255, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.hero-title,
.section-title {
  margin: 16px 0 0;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero-title {
  margin-top: 26px;
  font-size: 46px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.mini-hero-clean .hero-title {
  margin-top: 0;
}

.section-title {
  font-size: clamp(28px, 5vw, 46px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--accent) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-copy {
  max-width: 672px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
}

.section-copy {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 500;
  line-height: 1.58;
}

@media (min-width: 375px) {
  .hero-title {
    font-size: 52px;
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 56px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 72px;
    line-height: 1.25;
  }

  .hero-copy {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 96px;
  }
}

.section-copy {
  max-width: 500px;
  font-size: clamp(15px, 2vw, 18px);
}

.glass {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo-section {
  padding: clamp(36px, 6vw, 64px) 0;
}

body[data-portfolio-version="v1"] .logo-section {
  padding-top: clamp(16px, 2vw, 24px);
}

@media (max-width: 720px) {
  body[data-portfolio-version="v1"] .mini-hero {
    padding-bottom: 34px;
  }

  body[data-portfolio-version="v1"] .logo-section {
    padding-top: 18px;
  }
}

.logo-marquee-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 clamp(24px, 4vw, 40px);
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 0 7px;
  animation: marquee 48s linear infinite;
}

.marquee-wrap-reverse .marquee-track {
  animation-direction: reverse;
}

@media (hover: hover) and (pointer: fine) {
  .marquee-wrap:hover .marquee-track { animation-play-state: paused; }
}

@media (hover: none), (pointer: coarse) {
  .marquee-wrap,
  .logo-item {
    pointer-events: none;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 198px;
  height: 86px;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  filter: grayscale(100%);
  opacity: 0.68;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

.logo-image {
  display: block;
  width: 148px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 148px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.logo-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stats-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
}

.stat-card,
.step-card,
.faq-item,
.contact-panel {
  border-radius: 22px;
}

.stat-card {
  padding: clamp(20px, 3vw, 32px) clamp(8px, 2vw, 20px);
  text-align: center;
}

.stat-value {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(34px, 6.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(12px, 1.7vw, 15px);
  font-weight: 700;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(18px, 2.6vw, 26px);
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(26, 86, 255, 0.18);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: opacity 0.3s ease;
  z-index: 2;
}

.case-card:hover::before { opacity: 1; }

.case-card.featured-case {
  border: 1px solid rgba(217, 158, 50, 0.24);
  box-shadow: 0 18px 42px rgba(160, 112, 24, 0.07);
}

.case-card.featured-case::before {
  opacity: 0;
}

.case-card.featured-case:hover {
  box-shadow: 0 24px 54px rgba(160, 112, 24, 0.12);
}

.case-cover {
  position: relative;
  height: 196px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
}

.case-cover-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  padding: 34px;
}

.case-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, 0.34), transparent 60%);
}

.case-cover-brand::after {
  display: none;
}

.case-cover-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(78%, 340px);
  height: 108px;
  object-fit: contain;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.12));
}

.case-cover-name-badge {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.case-cover-name-badge span {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.46);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(15,23,42,0.55);
  box-shadow: 0 8px 28px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.3);
  max-width: 100%;
  text-align: center;
}

/* When card has photo cover (no logo), remove center-flex padding */
.case-cover-brand:has(.case-cover-name-badge) {
  padding: 0;
}

.featured-case-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.34);
  border: 1px solid rgba(255, 225, 140, 0.42);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: #d69a2d;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(120, 78, 5, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.featured-case-badge svg {
  width: 12px;
  height: 12px;
}

.tag-row {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.46);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.tag-row:has(.tag:nth-child(3))::after,
.modal-cover-tags:has(.tag:nth-child(3))::after {
  content: "";
  flex-basis: 100%;
  width: 0;
  order: 2;
}

.tag-row:has(.tag:nth-child(3)) .tag:nth-child(-n + 2),
.modal-cover-tags:has(.tag:nth-child(3)) .tag:nth-child(-n + 2) {
  order: 1;
}

.tag-row:has(.tag:nth-child(3)) .tag:nth-child(n + 3),
.modal-cover-tags:has(.tag:nth-child(3)) .tag:nth-child(n + 3) {
  order: 3;
}

.case-handle {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.48);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.kpi-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

body[data-portfolio-version="v3"] .kpi-badge { display: inline-flex; }
body[data-portfolio-version="v3"] .case-handle { bottom: 14px; }

.kpi-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.kpi-label {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.case-body {
  padding: 22px 24px 26px;
}

.case-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.case-title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-location {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.case-body-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.case-body-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(26, 86, 255, 0.08);
  color: #3154d4;
  font-size: 12px;
  font-weight: 800;
}

.case-summary {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.case-link {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(32px, 4vw, 44px);
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 22px rgba(26, 86, 255, 0.28);
}

.filter-btn:hover { transform: translateY(-2px); }

.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.step-card {
  position: relative;
  padding: clamp(24px, 3vw, 30px);
}

.step-num {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.step-title {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.step-desc {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item { overflow: hidden; }

.faq-btn {
  width: 100%;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: clamp(18px, 2.6vw, 24px) clamp(18px, 3vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  text-align: left;
}

.faq-q {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 86, 255, 0.08);
  color: var(--brand);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer { max-height: 320px; }

.faq-answer p {
  margin: 0;
  padding: 0 clamp(18px, 3vw, 26px) clamp(20px, 2.6vw, 24px);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 65%);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-title {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.contact-copy {
  max-width: 380px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
  line-height: 1.6;
}

.contact-links {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26, 86, 255, 0.08);
  color: var(--brand);
}

.contact-kicker {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.contact-main {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.12);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(26, 86, 255, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(26, 86, 255, 0.36);
}

.contact-form .primary-btn {
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
}

.success-box {
  padding: clamp(32px, 4vw, 44px) clamp(24px, 3vw, 32px);
  border-radius: 22px;
  background: rgba(5, 150, 105, 0.06);
  border: 1px solid rgba(5, 150, 105, 0.18);
  text-align: center;
}

.success-mark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  background: #059669;
  color: #fff;
}

.cta-section {
  position: relative;
  padding: clamp(48px, 7vw, 90px) 0 clamp(72px, 10vw, 120px);
}

.cta-section::before {
  content: none;
}

.cta-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  text-align: center;
}

.cta-card.glass {
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(34px) saturate(1.38);
  -webkit-backdrop-filter: blur(34px) saturate(1.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 68px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}

.cta-card::before {
  content: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
  opacity: 0.46;
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 2;
}

@keyframes portfolioCtaBlob {
  0% {
    transform: translate(-54%, 0) rotate(0deg) scale(0.94);
    border-radius: 64% 36% 48% 52% / 42% 70% 30% 58%;
  }
  50% {
    transform: translate(-42%, 24px) rotate(48deg) scale(1.06);
    border-radius: 34% 66% 72% 28% / 64% 36% 58% 42%;
  }
  100% {
    transform: translate(-60%, -22px) rotate(-28deg) scale(0.98);
    border-radius: 72% 28% 36% 64% / 34% 66% 48% 52%;
  }
}

@media (max-width: 768px) {
  .cta-section::before {
    content: none;
  }
}

.cta-title {
  margin: 0;
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cta-copy {
  max-width: 480px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 500;
  line-height: 1.55;
}

.cta-card .primary-btn {
  margin-top: 30px;
  padding: 16px 30px;
}

.preview-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portfolio-simple-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  padding: 40px clamp(20px, 5vw, 40px);
}

.portfolio-simple-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portfolio-simple-footer p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.portfolio-simple-footer-links {
  display: flex;
  gap: 20px;
}

.portfolio-simple-footer a {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-simple-footer a:hover { color: var(--ink); }

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translate(-50%, calc(140% + 12px)) scale(0.96);
  filter: blur(4px);
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.34s ease,
    filter 0.34s ease;
}

.sticky-cta.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.sticky-cta span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.sticky-cta .primary-btn {
  padding: 11px 20px;
  font-size: 14px;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(4deg);
  filter: blur(12px);
  animation: wordIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards, gradientShift 6s ease infinite alternate;
  background-size: 200% 200%;
}

.hero-word:nth-child(1) { animation-delay: 0.05s, 0s; }
.hero-word:nth-child(2) { animation-delay: 0.22s, 0.5s; }

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px) clamp(12px, 4vw, 24px);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: overlayIn 0.3s ease;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.34);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-cover {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
  overflow: hidden;
}

.modal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 75% 0%, rgba(255, 255, 255, 0.32), transparent 60%);
}

.modal-cover-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.modal-cover-brand::after {
  display: block;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 42%, rgba(15, 23, 42, 0.58) 100%);
  pointer-events: none;
}

.modal-cover-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(64%, 330px);
  height: 118px;
  object-fit: contain;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.14));
}

.modal-cover-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 64px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-close {
  position: sticky;
  top: 14px;
  z-index: 40;
  float: right;
  width: 40px;
  height: 40px;
  margin: 14px 14px -54px 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.modal-title-wrap {
  position: absolute;
  left: clamp(20px, 4vw, 32px);
  right: 20px;
  bottom: 18px;
  z-index: 1;
}

.modal-title {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.25);
}

.modal-meta {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
}

.modal-body {
  padding: clamp(16px, 3vw, 26px) clamp(20px, 4vw, 32px) clamp(20px, 4vw, 32px);
}

.modal-heading {
  display: none;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.modal-heading .modal-title {
  color: var(--ink);
  text-shadow: none;
}

.modal-heading .modal-meta {
  color: #64748b;
}

.modal-kicker {
  margin: 26px 0 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-kicker:first-child { margin-top: 0; }

.modal-heading + .modal-kicker { margin-top: 16px; }

.profile-slider {
  overflow: hidden;
  margin: 16px 0 6px;
}

.profile-slider + .modal-kicker {
  margin-top: 18px;
}

.case-visual-stack {
  display: grid;
  gap: clamp(18px, 5vw, 28px);
}

.app-preview-heading {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  text-align: center;
}

.app-preview-heading span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-preview-heading strong {
  color: var(--ink);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  line-height: 1.15;
}

.profile-slider-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.profile-slider-controls button {
  min-width: 104px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.profile-slider-controls button.active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 86, 255, 0.22);
}

.app-preview-slider .profile-slider-controls {
  gap: 5px;
  padding: 4px;
}

.app-preview-slider .profile-slider-controls button {
  min-width: 42px;
  width: 42px;
  height: 34px;
  padding: 0;
}

.profile-slider-hint {
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.profile-slider-window {
  overflow: hidden;
  transition: height 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
}

.profile-slider-track {
  display: flex;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
  cursor: grab;
  will-change: transform;
  user-select: none;
}

.profile-slider-track.dragging {
  transition: none;
  cursor: grabbing;
}

.profile-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 3px;
}

.profile-phone-stage {
  display: flex;
  justify-content: center;
  padding: 4px 0 6px;
  background: transparent;
}

.profile-phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 5px;
  border-radius: 34px;
  background: #282828;
  box-shadow: none;
}

.app-phone-shell {
  width: min(100%, 334px);
  padding: 6px;
  border-radius: 38px;
  background: #242424;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.profile-screen-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #05070a;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.app-screen-image {
  border-radius: 32px;
  background: #050505;
}

.profile-mock {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  padding: 18px clamp(14px, 3vw, 22px);
}

.profile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--accent), var(--brand));
}

.profile-avatar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 3px solid #fff;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-handle {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.profile-stats {
  display: flex;
  gap: clamp(14px, 4vw, 28px);
  margin-top: 12px;
}

.profile-stats div { text-align: center; }
.profile-stats strong { display: block; color: var(--ink); font-size: 17px; }
.profile-stats span { color: #94a3b8; font-size: 12px; font-weight: 600; }

.profile-bio {
  padding: 0 clamp(14px, 3vw, 22px) 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.post-cell {
  position: relative;
  aspect-ratio: 1;
}

.post-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 90% at 70% 10%, rgba(255, 255, 255, 0.22), transparent 55%);
}

.modal-text {
  margin: 0;
  color: #334155;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.work-overview {
  display: grid;
  gap: 14px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Booking Slides */
.booking-slider-wrap {
  margin: 28px 0 24px;
}

.booking-slider-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  text-align: center;
}

.booking-slider-heading span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.booking-slider-heading strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.booking-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: 12px;
}
.booking-tabs::-webkit-scrollbar {
  display: none;
}

.booking-tabs button {
  white-space: nowrap;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.booking-tabs button.active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 86, 255, 0.22);
}

.booking-slides {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  border-radius: 16px;
  margin-top: 14px;
  padding: 6px 10px 14px;
}

.booking-slides::-webkit-scrollbar {
  display: none;
}

.booking-slide {
  display: block;
  flex: 0 0 calc(100% - 16px);
  width: calc(100% - 16px);
  padding: 2px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: 0.72;
  transform: scale(0.96) translateY(6px);
  transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), filter 0.34s ease;
  filter: saturate(0.82);
}

.booking-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: saturate(1);
  animation: fadeSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.booking-shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.booking-shot-grid.is-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-browser {
  height: 100%;
  transform: translateZ(0);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.36s ease;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    0 20px 54px rgba(15, 23, 42, 0.07);
}

.booking-slide.active .booking-browser {
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.12),
    0 30px 78px rgba(26, 86, 255, 0.13);
}

.booking-browser .browser-screen {
  max-height: 420px;
}

.booking-shot-grid.is-duo .browser-screen {
  max-height: 300px;
}

.booking-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.booking-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.28);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.booking-dot.active {
  width: 22px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.work-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(26, 86, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.86)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.work-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(26, 86, 255, 0.12), rgba(124, 58, 237, 0.13));
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.work-copy h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.work-copy p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.48;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.result-card {
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(26, 86, 255, 0.05);
  border: 1px solid rgba(26, 86, 255, 0.1);
}

.result-value {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.result-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.modal-cta {
  width: 100%;
  margin-top: 26px;
  padding: 15px;
  border-radius: 14px;
}

@media (max-width: 720px) {
  .portfolio-nav {
    height: 96px;
  }
  .portfolio-menu-btn {
    display: flex;
  }
  .portfolio-nav-left,
  .portfolio-nav-right {
    display: none;
  }
  .portfolio-mobile-menu {
    display: block;
  }
  .portfolio-logo img {
    height: 9rem;
  }
  .portfolio-simple-footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .portfolio-simple-footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .stats-grid { grid-template-columns: 1fr; }
  .case-title-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .profile-top { align-items: flex-start; }
  .profile-stats { gap: 14px; }
  .work-list { grid-template-columns: 1fr; }
  .work-item {
    padding: 13px;
    border-radius: 15px;
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-card:nth-child(3):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .sticky-cta {
    left: 12px;
    right: 12px;
    width: auto;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 14px 12px 20px;
    transform: translate(0, calc(140% + 12px)) scale(0.96);
  }
  .sticky-cta.show { transform: translate(0, 0) scale(1); }
  .sticky-cta span {
    font-size: 14.5px;
  }
  .sticky-cta .primary-btn {
    min-height: 46px;
    min-width: 148px;
    padding: 12px 18px;
    font-size: 14.5px;
  }
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ===== BROWSER MOCKUP (web/app projects) ===== */

.browser-mockup-wrap {
  margin: 28px 0 24px;
  padding: 0 4px;
}

.browser-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.browser-mockup-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

.browser-visit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 86, 255, 0.07);
  border: 1px solid rgba(26, 86, 255, 0.15);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.browser-visit-chip:hover {
  background: rgba(26, 86, 255, 0.13);
  border-color: rgba(26, 86, 255, 0.28);
  transform: translateY(-1px);
}

.browser-mockup-link {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.browser-mockup-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26, 86, 255, 0.18);
}

.browser-mockup-link:hover .browser-screen-overlay {
  opacity: 1;
}

.browser-mockup-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.4);
}

.browser-mockup {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 8px 32px rgba(15, 23, 42, 0.1),
    0 24px 64px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.browser-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-address {
  flex: 1;
  margin-left: 8px;
  padding: 5px 12px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.browser-screen {
  position: relative;
  overflow: hidden;
  max-height: 340px;
}

.browser-screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-mockup-link:hover .browser-screen img {
  transform: scale(1.02);
}

.browser-screen-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

@media (max-width: 540px) {
  .browser-bar { padding: 9px 12px; }
  .browser-dot { width: 9px; height: 9px; }
  .browser-screen { max-height: 220px; }
  .booking-slider-wrap { margin: 24px -10px 22px; }
  .booking-slider-heading {
    padding: 0 10px;
    text-align: left;
  }
  .booking-slider-heading strong {
    font-size: 16px;
  }
  .booking-tabs {
    width: calc(100% - 20px);
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  .booking-tabs button {
    padding: 8px 12px;
    font-size: 12px;
  }
  .booking-slides {
    margin-top: 12px;
    border-radius: 14px;
    padding: 4px 8px 12px;
    gap: 10px;
  }
  .booking-slide {
    flex-basis: calc(94% - 6px);
    width: calc(94% - 6px);
    transform: scale(0.96) translateY(6px);
  }
  .booking-shot-grid.is-duo {
    grid-template-columns: 1fr;
  }
  .booking-shot-grid.is-duo .browser-screen {
    max-height: 175px;
  }
  .booking-browser .browser-screen {
    max-height: 265px;
  }
  .browser-mockup-wrap { margin-top: 20px; }
}

/* ===== END BROWSER MOCKUP ===== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
