/* ==========================================================================
   STUDIO CYBER-BENTO & GEN-Z HUD DESIGN SYSTEM
   Cutting-edge, high-impact tech aesthetics for 16 Hospital Production Systems.
   Features: Tailored Mini-UI Screen Previews, Massive Glowing Impact Metrics,
   Punchy STAR Bento (โจทย์/โซลูชัน), and Monospace Tech Stack Badges.
   ========================================================================== */

.work-catalog {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 28px;
  overflow: hidden;
  color: #e8edf9;
  background: radial-gradient(ellipse at 90% 0%, #222b5e 0, transparent 40%),
              radial-gradient(ellipse at 0% 40%, #0d2930 0, transparent 40%),
              #070b16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -35px rgba(5, 9, 32, 0.8);
}

.work-catalog::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Catalog Header */
.work-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 8px 0 32px;
  gap: 24px;
}

.work-catalog-head > div {
  min-width: 0;
}

.work-catalog-head .pele-section-label {
  color: #818cf8;
  font-family: var(--rui-font-num, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}

.work-catalog-head h2 {
  color: #fff;
  font-family: var(--rui-font-num, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 12px;
}

.studio-gradient {
  background: linear-gradient(100deg, #a8b7ff 0%, #38bdf8 50%, #86efac 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.work-catalog-head p {
  color: #94a3b8;
  line-height: 1.8;
  max-width: 640px;
  font-size: 15px;
  margin: 0;
}

.work-catalog-count {
  color: #fff;
  font-family: var(--rui-font-num, monospace);
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-align: right;
  flex-shrink: 0;
}

.work-catalog-count small {
  display: block;
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Category Filter Nav */
.work-catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.work-catalog-nav a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.2s ease;
}

.work-catalog-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #818cf8;
  color: #fff;
  transform: translateY(-1px);
}

.work-catalog-nav a:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

/* Section Group */
.work-group {
  margin-bottom: 56px;
}

.work-group:last-child {
  margin-bottom: 0;
}

.work-group > h3 {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.work-group > h3 span {
  color: #94a3b8;
  font-family: var(--rui-font-num, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 3px 12px;
}

/* Catalog Grid */
.work-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

@media (max-width: 680px) {
  .work-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   CYBER-PROJECT CARD (GEN-Z BENTO ARCHITECTURE)
   ========================================================================== */
.work-project {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(168deg, rgba(20, 27, 46, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Cyber HUD Top Bar */
.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(8, 12, 22, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--rui-font-num, 'JetBrains Mono', monospace);
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-sys-tag {
  font-size: 11px;
  font-weight: 750;
  color: hsl(var(--studio-hue) 85% 75%);
  letter-spacing: 0.1em;
}

.hud-live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4ade80;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
}

.beacon-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
  animation: beaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hud-type-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
}

.hud-crosshair {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 300;
  user-select: none;
}

/* ==========================================================================
   DYNAMIC MINI-UI WIDGET CANVAS
   ========================================================================== */
.project-widget-canvas {
  height: 145px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, hsl(var(--studio-hue) 75% 55% / 0.18), transparent 70%),
              linear-gradient(180deg, rgba(8, 12, 24, 0.6) 0%, rgba(12, 18, 34, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-ambient-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, hsl(var(--studio-hue) 80% 60% / 0.25) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  transition: all 0.4s ease;
}

.cw-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}

/* Cyber Widget Screen (Glass Floating Window) */
.cyber-widget-screen {
  width: 100%;
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.cw-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw-row--between {
  justify-content: space-between;
}

.cw-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.cw-name {
  font-size: 11.5px;
  color: #f8fafc;
  display: block;
  line-height: 1.2;
}

.cw-sub {
  font-size: 9.5px;
  color: #94a3b8;
  display: block;
}

/* Status Pills */
.cw-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--rui-font-num, monospace);
  font-size: 9.5px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cw-pill--success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.cw-pill--emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cw-pill--cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.cw-pill--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cw-pill--rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.cw-pill--violet {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.cw-pill--outline {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Micro-Components */
.cw-progress-box {
  margin-top: 8px;
}

.cw-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94a3b8;
  margin-bottom: 4px;
  font-family: var(--rui-font-num, monospace);
}

.cw-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.cw-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #86efac);
}

.cw-radar-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cw-radar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px dashed #38bdf8;
  position: relative;
  animation: rotateRadar 6s linear infinite;
  flex-shrink: 0;
}

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

.cw-radar-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  left: 12px;
  top: 10px;
}

.cw-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #f8fafc;
}

.cw-coords {
  font-family: var(--rui-font-num, monospace);
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.cw-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cw-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cw-step {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--rui-font-num, monospace);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cw-step.is-done {
  color: #86efac;
  font-weight: 750;
}

.cw-step.is-active {
  color: #38bdf8;
  font-weight: 750;
}

.cw-step-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.cw-leave-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #f1f5f9;
}

.cw-dispatch-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cw-vehicle {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
}

.cw-route-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10.5px;
  color: #e2e8f0;
}

.cw-arrow {
  color: hsl(var(--studio-hue) 85% 75%);
  font-size: 9px;
  letter-spacing: 2px;
}

.cw-sub-metric {
  font-size: 9.5px;
  color: #94a3b8;
  font-family: var(--rui-font-num, monospace);
  margin-top: 3px;
}

.cw-pipeline-grid,
.cw-report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
}

.cw-pipe-item,
.cw-mini-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 3px 4px;
  font-size: 10px;
}

.cw-pipe-item small,
.cw-mini-stat small {
  display: block;
  font-size: 8.5px;
  color: #64748b;
  font-family: var(--rui-font-num, monospace);
}

.cw-pipe-item strong {
  display: block;
  font-size: 10.5px;
  color: #f8fafc;
}

.cw-mini-stat strong {
  display: block;
  font-size: 12.5px;
  color: #38bdf8;
  font-family: var(--rui-font-num, monospace);
  font-weight: 800;
}

.cw-mt {
  margin-top: 6px;
}

.cw-tag-tech {
  font-family: var(--rui-font-num, monospace);
  font-size: 9.5px;
  color: #94a3b8;
}

.cw-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.cw-ticket-head strong {
  display: block;
  font-size: 11.5px;
  color: #f8fafc;
}

.cw-ticket-head small {
  font-size: 9.5px;
  color: #94a3b8;
}

.cw-sla-text {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94a3b8;
  margin-bottom: 4px;
  font-family: var(--rui-font-num, monospace);
}

.cw-urgent {
  color: #fda4af;
  font-size: 11.5px;
}

.cw-diet-desc,
.cw-risk-body,
.cw-claim-diag {
  font-size: 11px;
  color: #e2e8f0;
  margin-top: 4px;
}

.cw-gateway-stats,
.cw-net-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: var(--rui-font-num, monospace);
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
}

.cw-gateway-stats strong,
.cw-net-telemetry strong {
  color: #38bdf8;
}

.cw-token-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cw-token-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cw-token-label {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--rui-font-num, monospace);
  margin-left: 4px;
}

.cw-compress-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0;
  font-family: var(--rui-font-num, monospace);
}

.cw-size-before {
  color: #f87171;
  text-decoration: line-through;
  font-size: 12px;
}

.cw-size-after {
  color: #4ade80;
  font-size: 14px;
  font-weight: 800;
}

/* ==========================================================================
   HERO IMPACT METRIC (BIG, LUMINOUS & HIGH CONTRAST)
   ========================================================================== */
.project-hero-metric {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.metric-number-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.metric-number {
  font-family: var(--rui-font-num, 'JetBrains Mono', monospace);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #ffffff 20%, hsl(var(--studio-hue) 95% 80%) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 25px hsl(var(--studio-hue) 80% 55% / 0.45);
}

.metric-sparkle {
  color: hsl(var(--studio-hue) 85% 75%);
  font-size: 14px;
  animation: pulseSparkle 2s ease-in-out infinite;
}

@keyframes pulseSparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.metric-desc {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.4;
}

/* Project Meta */
.work-project-meta {
  padding: 6px 20px 8px;
}

.work-project-name {
  display: inline-block;
  font-family: var(--rui-font-num, monospace);
  font-size: 11px;
  font-weight: 750;
  color: hsl(var(--studio-hue) 85% 75%);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.work-project-title {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   STAR BENTO (โจทย์เดิม & โซลูชันที่พัฒนา)
   ========================================================================== */
.project-star-bento {
  padding: 8px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.star-item {
  border-radius: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.star-item--problem {
  border-left: 3px solid #f43f5e;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.08) 0%, rgba(13, 18, 32, 0.6) 100%);
}

.star-item--problem .star-label {
  color: #fda4af;
}

.star-item--problem .star-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

.star-item--solution {
  border-left: 3px solid #38bdf8;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, rgba(13, 18, 32, 0.6) 100%);
}

.star-item--solution .star-label {
  color: #7dd3fc;
}

.star-item--solution .star-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.star-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.star-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
}

/* Tech Stack Tags */
.project-tech-tags {
  padding: 0 20px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--rui-font-num, monospace);
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Cyber Footer */
.hud-footer {
  margin-top: auto;
  padding: 12px 20px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 22, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.hud-cat-pill svg {
  color: hsl(var(--studio-hue) 80% 75%);
}

.hud-action-hint {
  font-family: var(--rui-font-num, monospace);
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--studio-hue) 85% 80%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.hud-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Hover Physics */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work-project:hover {
    transform: translateY(-8px) scale(1.008);
    border-color: hsl(var(--studio-hue) 80% 65% / 0.7);
    box-shadow: 0 28px 60px -15px hsl(var(--studio-hue) 70% 50% / 0.35),
                0 0 0 1px hsl(var(--studio-hue) 80% 70% / 0.45);
  }

  .work-project:hover .cw-ambient-glow {
    width: 220px;
    height: 220px;
    filter: blur(40px);
    background: radial-gradient(circle, hsl(var(--studio-hue) 85% 65% / 0.4) 0%, transparent 70%);
  }

  .work-project:hover .cyber-widget-screen {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.6);
  }

  .work-project:hover .tech-tag {
    border-color: hsl(var(--studio-hue) 80% 75% / 0.35);
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
  }

  .work-project:hover .hud-action-hint {
    color: #fff;
  }

  .work-project:hover .hud-arrow {
    transform: translate(2px, -2px);
  }
}

/* Mobile & Print */
@media (max-width: 600px) {
  .work-catalog {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .work-catalog-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .work-catalog-count {
    font-size: 38px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .work-catalog-nav a {
    font-size: 12px;
    padding: 6px 12px;
  }

  .work-group > h3 {
    flex-wrap: wrap;
    font-size: 17px;
  }

  .metric-number {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-catalog *,
  .work-catalog *::before {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   CYBER-STUDIO FEATURED CASE STUDIES (01-06)
   ========================================================================== */
.visual-showcase-section {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 28px;
  overflow: hidden;
  color: #e8edf9;
  background: radial-gradient(ellipse at 15% 0%, #1e3a5f 0%, transparent 45%),
              radial-gradient(ellipse at 85% 70%, #1e1b4b 0%, transparent 50%),
              #060913;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -35px rgba(5, 9, 32, 0.85);
  margin-top: 48px;
}

.visual-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.visual-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 36px;
}

.visual-showcase-title {
  color: #fff;
  font-family: var(--rui-font-num, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 6px 0 10px;
}

.visual-showcase-subtitle {
  color: #94a3b8;
  line-height: 1.75;
  max-width: 680px;
  font-size: 15px;
  margin: 0;
}

.visual-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  color: #7dd3fc;
  font-family: var(--rui-font-num, monospace);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.pele-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 0;
}

.pele-visual-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, rgba(20, 27, 46, 0.96) 0%, rgba(10, 14, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.pele-visual-card:hover {
  transform: translateY(-7px) scale(1.008);
  border-color: hsl(var(--studio-hue) 80% 65% / 0.7);
  box-shadow: 0 28px 60px -15px hsl(var(--studio-hue) 70% 50% / 0.35),
              0 0 0 1px hsl(var(--studio-hue) 80% 70% / 0.4);
}

.pele-visual-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}

@media (max-width: 1000px) {
  .pele-visual-card--featured {
    grid-template-columns: 1fr;
  }
  .pele-visual-grid {
    grid-template-columns: 1fr;
  }
}

.pele-device-window {
  background: rgba(8, 12, 22, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pele-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(5, 8, 16, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pele-traffic-dots {
  display: flex;
  gap: 6px;
}

.pele-traffic-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pele-dot--red { background: #ef4444; }
.pele-dot--yellow { background: #f59e0b; }
.pele-dot--green { background: #10b981; }

.pele-window-url {
  font-family: var(--rui-font-num, monospace);
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pele-visual-media {
  position: relative;
  overflow: hidden;
  background: #070a14;
}

.pele-visual-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.pele-visual-card--featured .pele-visual-media {
  height: 100%;
}

.pele-visual-card--featured .pele-visual-img {
  height: 100%;
  max-height: none;
}

.pele-visual-card:not(.pele-visual-card--featured) .pele-visual-img {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 280px;
}

.pele-visual-card:hover .pele-visual-img {
  transform: scale(1.03);
}

.pele-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.pele-visual-card:hover .pele-zoom-hint {
  opacity: 1;
}

.pele-visual-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-title {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}

.case-sub {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.case-hero-metric {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 14px;
}

.case-metric-num {
  font-family: var(--rui-font-num, 'JetBrains Mono', monospace);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #ffffff 20%, hsl(var(--studio-hue) 95% 80%) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.case-metric-desc {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
  font-weight: 500;
}

.pele-case-study {
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.pele-case-study summary {
  padding: 8px 12px;
  font-size: 11.5px;
  font-family: var(--rui-font-num, monospace);
  font-weight: 750;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.pele-case-study summary:hover {
  color: #f1f5f9;
}

.pele-case-body {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

/* ==========================================================================
   CYBER LUXE MOBILE NAVIGATION DRAWER
   Futuristic, jaw-dropping mobile navigation experience
   ========================================================================== */
.pele-cyber-drawer {
  width: min(390px, 94vw) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-left: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: -15px 0 50px -10px rgba(15, 23, 42, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 28px 0 0 28px !important;
}

:root[data-theme="saturday"] .pele-cyber-drawer {
  background: rgba(11, 15, 26, 0.98) !important;
  border-left-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: -20px 0 60px -10px rgba(0, 0, 0, 0.6) !important;
  color: #f1f5f9;
}

/* Top Bar */
.pele-drawer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
  flex: none;
}

:root[data-theme="saturday"] .pele-drawer-topbar {
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.9) 0%, rgba(11, 15, 26, 0.5) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.pele-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pele-drawer-brand .hud-live-beacon {
  font-family: var(--rui-font-num, monospace);
  font-size: 10px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.04em;
}

.pele-drawer-brand .hud-live-beacon .beacon-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: beaconPing 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

:root[data-theme="saturday"] .pele-drawer-brand .hud-live-beacon {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.pele-drawer-sysver {
  font-family: var(--rui-font-num, monospace);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: #64748b;
}

:root[data-theme="saturday"] .pele-drawer-sysver {
  color: #94a3b8;
}

.pele-drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pele-drawer-close-btn:hover,
.pele-drawer-close-btn:active {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

:root[data-theme="saturday"] .pele-drawer-close-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

:root[data-theme="saturday"] .pele-drawer-close-btn:hover {
  background: #334155;
  color: #fff;
}

/* Profile Card */
.pele-drawer-profile-card {
  margin: 16px 18px 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(191, 219, 254, 0.6);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 15px -4px rgba(37, 99, 235, 0.08);
  flex: none;
}

:root[data-theme="saturday"] .pele-drawer-profile-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
}

.pele-drawer-avatar-wrap {
  position: relative;
  flex: none;
}

.pele-drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  display: block;
}

.pele-drawer-avatar-glow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

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

.pele-drawer-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.pele-drawer-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

:root[data-theme="saturday"] .pele-drawer-name {
  color: #f8fafc;
}

.pele-drawer-role {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:root[data-theme="saturday"] .pele-drawer-role {
  color: #94a3b8;
}

.pele-drawer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pele-drawer-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  border: 1px solid rgba(203, 213, 225, 0.7);
}

:root[data-theme="saturday"] .pele-drawer-tag {
  background: #1e293b;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Nav Body */
.pele-drawer-nav-body {
  padding: 12px 18px 20px !important;
  gap: 16px !important;
}

.pele-drawer-nav-label {
  font-family: var(--rui-font-num, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #94a3b8;
  padding: 0 4px;
}

.pele-drawer-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pele-drawer-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pele-drawer-nav-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.2s;
}

.pele-drawer-nav-card:hover,
.pele-drawer-nav-card:active {
  transform: translateX(4px);
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.08);
}

.pele-drawer-nav-card:hover::before {
  background: #2563eb;
}

:root[data-theme="saturday"] .pele-drawer-nav-card {
  background: #141b2d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

:root[data-theme="saturday"] .pele-drawer-nav-card:hover {
  background: #1e273f;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Nav Icons */
.pele-nav-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.18);
}

.pele-nav-icon--blue {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
}
.pele-nav-icon--emerald {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}
.pele-nav-icon--violet {
  background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
}
.pele-nav-icon--cyan {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
}

.pele-nav-card-content {
  flex: 1;
  min-width: 0;
}

.pele-nav-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
}

:root[data-theme="saturday"] .pele-nav-card-title {
  color: #f8fafc;
}

.pele-nav-en {
  font-family: var(--rui-font-num, monospace);
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.pele-nav-badge {
  font-family: var(--rui-font-num, monospace);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.02em;
}

:root[data-theme="saturday"] .pele-nav-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.pele-nav-card-sub {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:root[data-theme="saturday"] .pele-nav-card-sub {
  color: #94a3b8;
}

.pele-nav-card-arrow {
  color: #cbd5e1;
  transition: transform 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
}

.pele-drawer-nav-card:hover .pele-nav-card-arrow {
  transform: translateX(3px);
  color: #2563eb;
}

:root[data-theme="saturday"] .pele-drawer-nav-card:hover .pele-nav-card-arrow {
  color: #38bdf8;
}

/* Quick Consultation Action Banner */
.pele-drawer-cta {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pele-drawer-cta-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--rui-font-num, monospace);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #86efac;
}

.pele-drawer-cta-body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.pele-drawer-cta-body p {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.pele-drawer-cta-btn {
  margin-top: 4px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.pele-drawer-cta-btn:hover,
.pele-drawer-cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Footer: Segmented Theme Control */
.pele-drawer-footer {
  padding: 14px 18px 16px;
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

:root[data-theme="saturday"] .pele-drawer-footer {
  background: #0d121f;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.pele-drawer-theme-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rui-font-num, monospace);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #64748b;
}

:root[data-theme="saturday"] .pele-drawer-theme-title {
  color: #94a3b8;
}

.pele-theme-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 12px;
}

:root[data-theme="saturday"] .pele-theme-segmented {
  background: #1a2234;
}

.pele-theme-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 6px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pele-theme-tab:hover {
  color: #0f172a;
}

.pele-theme-tab[aria-pressed="true"] {
  background: #ffffff;
  color: #0f172a;
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

:root[data-theme="saturday"] .pele-theme-tab {
  color: #94a3b8;
}

:root[data-theme="saturday"] .pele-theme-tab[aria-pressed="true"] {
  background: #28344d;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.theme-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pele-drawer-sysline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--rui-font-num, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding-top: 4px;
  border-top: 1px dashed rgba(226, 232, 240, 0.7);
}

:root[data-theme="saturday"] .pele-drawer-sysline {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #64748b;
}

@media print {
  .work-catalog {
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  .work-catalog * {
    color: #111 !important;
  }

  .project-widget-canvas {
    display: none;
  }

  .work-project {
    background: #fff;
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  .studio-gradient,
  .metric-number {
    background: none;
    color: #111 !important;
  }
}
