/* ==========================================================================
   B-MAGNET 12-APP SUITE — ENTERPRISE OS STUDIO DESIGN SYSTEM
   Modern Split-Screen Master-Detail Studio, Container Queries, Subgrid Matrix,
   Interactive Event Bus & Editorial Engineering Showcase
   Preserves Brand Teal (#04a8a9 / #2dd4bf), Ruby Red Highlights (#e11d48 / #fb7185),
   Translucent Liquid Glass, and Cyber Circuit Ambient Background
   ========================================================================== */

/* View Transitions API — Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* View Transitions Smooth Stage Morph */
::view-transition-old(studio-stage-card),
::view-transition-new(studio-stage-card) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. ASYMMETRIC EDITORIAL COMMAND HERO
   ========================================================================== */
.studio-hero {
  position: relative;
  padding: 118px 0 48px;
  z-index: 2;
}

.studio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.96fr);
  gap: 36px;
  align-items: center;
}

.studio-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.studio-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(4, 168, 169, 0.32);
  color: #0f172a;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .studio-eyebrow-pill {
  background: rgba(13, 21, 36, 0.68);
  border-color: rgba(45, 212, 191, 0.35);
  color: #f8fafc;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.studio-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

.studio-hero-title {
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0;
}

html[data-theme="dark"] .studio-hero-title {
  color: #ffffff;
}

.studio-hero-accent {
  display: block;
  margin-top: 6px;
  background: linear-gradient(135deg, #04a8a9 0%, #2563eb 55%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .studio-hero-accent {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.studio-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin: 0;
  max-width: 58ch;
  font-weight: 500;
}

html[data-theme="dark"] .studio-hero-desc {
  color: #cbd5e1;
}

/* 5-OS Platform Matrix Strip */
.studio-os-strip {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 8px;
  width: 100%;
}

.studio-os-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #1e293b;
}

.studio-os-chip .material-symbols-rounded {
  font-size: 15px;
  color: #04a8a9;
}

html[data-theme="dark"] .studio-os-chip {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html[data-theme="dark"] .studio-os-chip .material-symbols-rounded {
  color: #2dd4bf;
}

/* Hero Action Row */
.studio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.studio-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #04a8a9 0%, #0d9488 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px -8px rgba(4, 168, 169, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.studio-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(4, 168, 169, 0.65);
}

.studio-btn-primary *,
.studio-btn-primary .material-symbols-rounded {
  color: #ffffff !important;
}

.studio-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 22px -8px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease;
}

.studio-btn-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(4, 168, 169, 0.55);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .studio-btn-glass {
  background: rgba(15, 23, 42, 0.64);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .studio-btn-glass:hover {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(22, 33, 55, 0.82);
}

/* ==========================================================================
   RIGHT HERO: INTERACTIVE 12-APP LAUNCHER OS CONSOLE
   ========================================================================== */
.studio-hero-console {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 60px -18px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(4, 168, 169, 0.18),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95);
  overflow: clip;
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] .studio-hero-console {
  background: rgba(10, 16, 28, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 28px 68px -18px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(45, 212, 191, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.studio-console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.45);
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

html[data-theme="dark"] .studio-console-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.studio-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.studio-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.studio-window-dots span:nth-child(1) { background: #ef4444; }
.studio-window-dots span:nth-child(2) { background: #f59e0b; }
.studio-window-dots span:nth-child(3) { background: #10b981; }

.studio-console-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.3px;
}

html[data-theme="dark"] .studio-console-label {
  color: #cbd5e1;
}

.studio-console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: 9999px;
}

html[data-theme="dark"] .studio-console-status {
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

.studio-launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.studio-launcher-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1.5px solid transparent;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.studio-launcher-tile:hover,
.studio-launcher-tile.is-active {
  transform: translateY(-3px);
  border-color: var(--app-color, #04a8a9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px -8px rgba(var(--app-color-rgb, 4, 168, 169), 0.35);
}

html[data-theme="dark"] .studio-launcher-tile {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

html[data-theme="dark"] .studio-launcher-tile:hover,
html[data-theme="dark"] .studio-launcher-tile.is-active {
  background: rgba(var(--app-color-rgb, 45, 212, 191), 0.14);
  border-color: var(--app-color, #2dd4bf);
  box-shadow: 0 12px 28px -8px rgba(var(--app-color-rgb, 45, 212, 191), 0.4);
}

.studio-launcher-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.38) 0%, transparent 65%), var(--app-color, #04a8a9);
  box-shadow: 0 8px 18px -4px rgba(var(--app-color-rgb, 4, 168, 169), 0.5);
  color: #ffffff !important;
  flex-shrink: 0;
}

.studio-launcher-icon .material-symbols-rounded {
  font-size: 21px;
  color: #ffffff !important;
}

.studio-launcher-name {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

html[data-theme="dark"] .studio-launcher-name {
  color: #f1f5f9;
}

.studio-console-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.55);
}

html[data-theme="dark"] .studio-console-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.studio-console-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.studio-console-kpi strong {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  font-family: var(--font-mono);
}

html[data-theme="dark"] .studio-console-kpi strong {
  color: #ffffff;
}

.studio-console-kpi span {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
}

html[data-theme="dark"] .studio-console-kpi span {
  color: #94a3b8;
}

/* ==========================================================================
   2. THE INTERACTIVE 12-APP STUDIO (MASTER-DETAIL + SUBGRID MATRIX)
   ========================================================================== */
.apps-studio-section {
  position: relative;
  padding: 28px 0 72px;
  scroll-margin-top: 108px;
  z-index: 2;
}

.studio-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.studio-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #04a8a9;
  margin-bottom: 6px;
}

html[data-theme="dark"] .studio-section-kicker {
  color: #2dd4bf;
}

.studio-section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0;
  line-height: 1.15;
}

html[data-theme="dark"] .studio-section-title {
  color: #ffffff;
}

/* Control Command Bar */
.studio-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(4, 168, 169, 0.14);
}

html[data-theme="dark"] .studio-controls-bar {
  background: rgba(11, 17, 30, 0.68);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(45, 212, 191, 0.14);
}

.studio-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 6px;
  align-items: center;
}

.studio-tab-btn,
.studio-tab-btn.app-filter-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.65) !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.studio-tab-btn *,
.studio-tab-btn.app-filter-pill * {
  color: inherit !important;
}

.studio-tab-btn .material-symbols-rounded,
.studio-tab-btn.app-filter-pill .material-symbols-rounded {
  font-size: 17px !important;
  opacity: 0.88;
}

.studio-tab-btn:hover,
.studio-tab-btn.app-filter-pill:hover {
  background: rgba(4, 168, 169, 0.12) !important;
  border-color: rgba(4, 168, 169, 0.45) !important;
  color: #0f172a !important;
}

.studio-tab-btn.active,
.studio-tab-btn.app-filter-pill.active,
html[data-theme="light"] .studio-tab-btn.app-filter-pill.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.45) !important;
}

.studio-tab-btn.active *,
.studio-tab-btn.app-filter-pill.active * {
  color: #ffffff !important;
}

html[data-theme="dark"] .studio-tab-btn,
html[data-theme="dark"] .studio-tab-btn.app-filter-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .studio-tab-btn:hover,
html[data-theme="dark"] .studio-tab-btn.app-filter-pill:hover {
  background: rgba(45, 212, 191, 0.14) !important;
  border-color: rgba(45, 212, 191, 0.45) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .studio-tab-btn.active,
html[data-theme="dark"] .studio-tab-btn.app-filter-pill.active {
  background: linear-gradient(135deg, #04a8a9 0%, #0d9488 100%) !important;
  border-color: rgba(45, 212, 191, 0.75) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px -6px rgba(45, 212, 191, 0.5) !important;
}

.studio-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 210px;
}

.studio-search-box .material-symbols-rounded {
  position: absolute;
  inset-inline-start: 12px;
  font-size: 18px;
  color: #64748b;
  pointer-events: none;
}

.studio-search-input {
  width: 100%;
  height: 38px;
  padding-inline-start: 38px;
  padding-inline-end: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-search-input:focus {
  border-color: #04a8a9;
  box-shadow: 0 0 0 3px rgba(4, 168, 169, 0.18);
}

html[data-theme="dark"] .studio-search-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

html[data-theme="dark"] .studio-search-input::placeholder {
  color: #94a3b8;
}

/* View Switcher Segmented Control */
.studio-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(15, 23, 42, 0.08);
  gap: 3px;
}

html[data-theme="dark"] .studio-view-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.studio-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.studio-view-btn .material-symbols-rounded {
  font-size: 16px;
}

.studio-view-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 3px 10px -2px rgba(15, 23, 42, 0.14);
}

html[data-theme="dark"] .studio-view-btn {
  color: #94a3b8;
}

html[data-theme="dark"] .studio-view-btn.active {
  background: rgba(45, 212, 191, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.4);
}

/* ==========================================================================
   MODE A: SPLIT-SCREEN MASTER-DETAIL WORKSPACE
   ========================================================================== */
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(275px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.studio-workspace[hidden],
.studio-matrix-grid[hidden] {
  display: none !important;
}

/* Left Rail: 12 Interactive App Selector Items */
.studio-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-block-size: 720px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 168, 169, 0.35) transparent;
  overscroll-behavior: contain;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(4, 168, 169, 0.14);
}

.studio-rail::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.studio-rail::-webkit-scrollbar-track {
  background: transparent;
}

.studio-rail::-webkit-scrollbar-thumb {
  background: rgba(4, 168, 169, 0.32);
  border-radius: 9999px;
}

html[data-theme="dark"] .studio-rail {
  scrollbar-color: rgba(45, 212, 191, 0.35) transparent;
}

html[data-theme="dark"] .studio-rail::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.32);
}

html[data-theme="dark"] .studio-rail {
  background: rgba(10, 16, 28, 0.66);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(45, 212, 191, 0.14);
}

.studio-rail-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.45);
  text-align: start;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.studio-rail-item:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(var(--app-color-rgb, 4, 168, 169), 0.35);
}

.studio-rail-item.is-selected {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--app-color, #04a8a9);
  box-shadow: 0 10px 26px -10px rgba(var(--app-color-rgb, 4, 168, 169), 0.38);
}

html[data-theme="dark"] .studio-rail-item {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .studio-rail-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--app-color-rgb, 45, 212, 191), 0.45);
}

html[data-theme="dark"] .studio-rail-item.is-selected {
  background: rgba(var(--app-color-rgb, 45, 212, 191), 0.14);
  border-color: var(--app-color, #2dd4bf);
  box-shadow: 0 10px 28px -10px rgba(var(--app-color-rgb, 45, 212, 191), 0.45);
}

.studio-rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  min-width: 18px;
}

html[data-theme="dark"] .studio-rail-num {
  color: #94a3b8;
}

.studio-rail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.36) 0%, transparent 65%), var(--app-color, #04a8a9);
  box-shadow: 0 6px 14px -4px rgba(var(--app-color-rgb, 4, 168, 169), 0.45);
  flex-shrink: 0;
}

.studio-rail-icon .material-symbols-rounded {
  font-size: 20px;
  color: #ffffff !important;
}

.studio-rail-meta {
  min-inline-size: 0;
  flex: 1;
}

.studio-rail-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .studio-rail-name {
  color: #ffffff;
}

.studio-rail-cat {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

html[data-theme="dark"] .studio-rail-cat {
  color: #94a3b8;
}

.studio-rail-chevron {
  font-size: 18px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.studio-rail-item.is-selected .studio-rail-chevron {
  color: var(--app-color, #04a8a9);
  transform: translateX(2px);
}

html[dir="rtl"] .studio-rail-chevron {
  transform: scaleX(-1);
}

html[dir="rtl"] .studio-rail-item.is-selected .studio-rail-chevron {
  transform: scaleX(-1) translateX(2px);
}

/* Right Stage: Live App Spotlight Showcase Panel */
.studio-stage {
  container: studio-stage / inline-size;
  view-transition-name: studio-stage-card;
  position: relative;
  border-radius: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 64px -20px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(var(--app-color-rgb, 4, 168, 169), 0.24),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95);
  overflow: clip;
}

.studio-stage::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 4px;
  background: linear-gradient(90deg, var(--app-color, #04a8a9), rgba(var(--app-color-rgb, 4, 168, 169), 0.25));
}

html[data-theme="dark"] .studio-stage {
  background: rgba(11, 17, 30, 0.74);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 72px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(var(--app-color-rgb, 45, 212, 191), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.studio-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

html[data-theme="dark"] .studio-stage-header {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.studio-stage-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-inline-size: 0;
}

.studio-stage-emblem {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.42) 0%, transparent 65%), var(--app-color, #04a8a9);
  box-shadow: 0 14px 32px -8px rgba(var(--app-color-rgb, 4, 168, 169), 0.55);
  flex-shrink: 0;
}

.studio-stage-emblem .material-symbols-rounded {
  font-size: 32px;
  color: #ffffff !important;
}

.studio-stage-title {
  font-size: clamp(1.45rem, 3.2cqi, 2rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.15;
  outline: none;
}

html[data-theme="dark"] .studio-stage-title {
  color: #ffffff;
}

.studio-stage-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-stage-cat-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(var(--app-color-rgb, 4, 168, 169), 0.12);
  color: #0f172a;
  border: 1px solid rgba(var(--app-color-rgb, 4, 168, 169), 0.35);
}

html[data-theme="dark"] .studio-stage-cat-pill {
  background: rgba(var(--app-color-rgb, 45, 212, 191), 0.18);
  color: #ffffff;
}

.studio-stage-version {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

html[data-theme="dark"] .studio-stage-version {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.studio-stage-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #065f46;
}

.studio-stage-verified .material-symbols-rounded {
  font-size: 16px;
  color: #10b981;
}

html[data-theme="dark"] .studio-stage-verified {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.studio-stage-desc {
  font-size: 15.5px;
  line-height: 1.72;
  color: #1e293b;
  margin: 0 0 22px;
  font-weight: 500;
}

html[data-theme="dark"] .studio-stage-desc {
  color: #e2e8f0;
}

/* Container-Query Adaptive 2-Column Split inside Stage */
.studio-stage-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

@container studio-stage (inline-size > 580px) {
  .studio-stage-body-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  }
}

.studio-subpanel {
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .studio-subpanel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

.studio-subpanel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #475569;
  margin: 0 0 14px;
}

.studio-subpanel-title .material-symbols-rounded {
  font-size: 17px;
  color: var(--app-color, #04a8a9);
}

html[data-theme="dark"] .studio-subpanel-title {
  color: #94a3b8;
}

.studio-modules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.studio-modules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
  color: #0f172a;
}

html[data-theme="dark"] .studio-modules-list li {
  color: #f1f5f9;
}

.studio-module-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  background: rgba(var(--app-color-rgb, 4, 168, 169), 0.14);
  color: var(--app-color, #04a8a9);
}

.studio-spec-stack {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .studio-spec-stack {
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

.studio-platform-chips {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 6px;
  margin-bottom: 14px;
}

.studio-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #1e293b;
}

html[data-theme="dark"] .studio-platform-chip {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.studio-dual-proof {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-proof-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(4, 168, 169, 0.08);
  border: 1px solid rgba(4, 168, 169, 0.2);
}

.studio-proof-row .material-symbols-rounded {
  font-size: 16px;
  color: #04a8a9;
}

html[data-theme="dark"] .studio-proof-row {
  color: #f8fafc;
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.22);
}

html[data-theme="dark"] .studio-proof-row .material-symbols-rounded {
  color: #2dd4bf;
}

/* Stage Footer Action Bar & Stepper */
.studio-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .studio-stage-footer {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.studio-stage-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-deploy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, var(--app-color, #04a8a9) 0%, rgba(var(--app-color-rgb, 4, 168, 169), 0.85) 100%);
  box-shadow: 0 10px 24px -6px rgba(var(--app-color-rgb, 4, 168, 169), 0.55);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.studio-deploy-btn * {
  color: #ffffff !important;
}

.studio-specs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.studio-specs-btn:hover {
  border-color: var(--app-color, #04a8a9);
  background: #ffffff;
}

html[data-theme="dark"] .studio-specs-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

html[data-theme="dark"] .studio-specs-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Prev / Next App Stepper */
.studio-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.studio-step-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.studio-step-btn:hover {
  border-color: #04a8a9;
  background: #ffffff;
  transform: scale(1.06);
}

html[data-theme="dark"] .studio-step-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.studio-step-counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  min-width: 54px;
  text-align: center;
}

html[data-theme="dark"] .studio-step-counter {
  color: #cbd5e1;
}

/* ==========================================================================
   MODE B: PRECISION SUBGRID MATRIX GRID (CONTAINER-QUERY CARDS)
   ========================================================================== */
.studio-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  grid-auto-rows: auto;
  gap: 18px;
}

.studio-matrix-card {
  container: appcard / inline-size;
  grid-row: span 4;
  display: grid;
  /* Same-cascade fallback before subgrid */
  grid-template-rows: auto 1fr auto auto;
  grid-template-rows: subgrid;
  row-gap: 12px;
  position: relative;
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px -14px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: clip;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.studio-matrix-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  background: var(--app-color, #04a8a9);
}

.studio-matrix-card:hover {
  transform: translateY(-4px);
  border-color: var(--app-color, #04a8a9);
  box-shadow: 0 22px 48px -16px rgba(var(--app-color-rgb, 4, 168, 169), 0.32);
}

html[data-theme="dark"] .studio-matrix-card {
  background: rgba(11, 17, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .studio-matrix-card:hover {
  border-color: var(--app-color, #2dd4bf);
}

.studio-matrix-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.studio-matrix-title {
  font-size: clamp(1.02rem, 5cqi, 1.18rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

html[data-theme="dark"] .studio-matrix-title {
  color: #ffffff;
}

.studio-matrix-cat {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-top: 3px;
}

html[data-theme="dark"] .studio-matrix-cat {
  color: #94a3b8;
}

.studio-matrix-desc {
  font-size: 13.5px;
  line-height: 1.62;
  color: #334155;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: clip;
}

html[data-theme="dark"] .studio-matrix-desc {
  color: #cbd5e1;
}

.studio-matrix-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="dark"] .studio-matrix-meta {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.studio-matrix-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-matrix-footer button {
  flex: 1;
  height: 38px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   3. INTERACTIVE UNIFIED EVENT BUS & FIELD HARDWARE GALLERY
   ========================================================================== */
.studio-arch-section {
  position: relative;
  padding: 24px 0 72px;
  scroll-margin-top: 108px;
  z-index: 2;
}

.studio-arch-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(4, 168, 169, 0.14);
  align-items: center;
}

html[data-theme="dark"] .studio-arch-card {
  background: rgba(11, 17, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 66px -18px rgba(0, 0, 0, 0.65);
}

.studio-role-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.studio-role-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.studio-role-btn .material-symbols-rounded {
  font-size: 20px;
  color: #04a8a9;
}

.studio-role-btn.active {
  border-color: #04a8a9;
  background: rgba(4, 168, 169, 0.12);
  box-shadow: 0 8px 20px -8px rgba(4, 168, 169, 0.35);
}

html[data-theme="dark"] .studio-role-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

html[data-theme="dark"] .studio-role-btn.active {
  border-color: #2dd4bf;
  background: rgba(45, 212, 191, 0.15);
}

/* Obsidian Terminal Window */
.studio-terminal {
  border-radius: 20px;
  background: #090f1d;
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 24px 48px -16px rgba(2, 6, 23, 0.65);
  overflow: clip;
  direction: ltr !important;
  text-align: left !important;
}

.studio-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-terminal-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.studio-terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.72;
  color: #cbd5e1;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  min-block-size: 215px;
}

/* Editorial Hardware Deployment Cards */
.studio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.studio-photo-card {
  border-radius: 24px;
  overflow: clip;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px -16px rgba(15, 23, 42, 0.14);
}

html[data-theme="dark"] .studio-photo-card {
  background: rgba(11, 17, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.studio-photo-media {
  position: relative;
  overflow: clip;
}

.studio-photo-media img {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-photo-card:hover .studio-photo-media img {
  transform: scale(1.03);
}

.studio-photo-badge {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  background: rgba(9, 14, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 5px 13px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
}

.studio-photo-body {
  padding: 20px 22px;
}

.studio-photo-title {
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
}

html[data-theme="dark"] .studio-photo-title {
  color: #ffffff;
}

.studio-photo-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

html[data-theme="dark"] .studio-photo-desc {
  color: #cbd5e1;
}

/* ==========================================================================
   4. BESPOKE ENGINEERING STUDIO (2x2 MATRIX + CONNECTED TIMELINE + CTA)
   ========================================================================== */
.studio-custom-section {
  position: relative;
  padding: 24px 0 76px;
  scroll-margin-top: 108px;
  z-index: 2;
}

.studio-custom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.studio-eng-card {
  position: relative;
  border-radius: 22px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

html[data-theme="dark"] .studio-eng-card {
  background: rgba(11, 17, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 46px -16px rgba(0, 0, 0, 0.6);
}

.studio-eng-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-eng-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff !important;
  background: var(--eng-accent, #04a8a9);
  box-shadow: 0 10px 22px -6px rgba(var(--eng-rgb, 4, 168, 169), 0.5);
}

.studio-eng-icon .material-symbols-rounded {
  font-size: 24px;
  color: #ffffff !important;
}

.studio-eng-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: #94a3b8;
}

.studio-eng-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

html[data-theme="dark"] .studio-eng-title {
  color: #ffffff;
}

.studio-eng-desc {
  font-size: 14px;
  line-height: 1.62;
  color: #334155;
  margin: 0;
}

html[data-theme="dark"] .studio-eng-desc {
  color: #cbd5e1;
}

.studio-eng-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.studio-eng-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.studio-eng-list li .material-symbols-rounded {
  font-size: 16px;
  color: var(--eng-accent, #04a8a9);
  flex-shrink: 0;
}

html[data-theme="dark"] .studio-eng-list li {
  color: #e2e8f0;
}

/* Connected Horizontal Lifecycle Strip */
.studio-lifecycle-strip {
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px -16px rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"] .studio-lifecycle-strip {
  background: rgba(11, 17, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.studio-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  position: relative;
}

.studio-timeline-step {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .studio-timeline-step {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

.studio-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #04a8a9 0%, #4f46e5 100%);
  padding: 4px 11px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.studio-step-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

html[data-theme="dark"] .studio-step-name {
  color: #ffffff;
}

.studio-step-copy {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

html[data-theme="dark"] .studio-step-copy {
  color: #cbd5e1;
}

/* Executive CTA Card */
.studio-cta-panel {
  border-radius: 26px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(4, 168, 169, 0.32);
  box-shadow: 0 24px 60px -18px rgba(4, 168, 169, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .studio-cta-panel {
  background: rgba(11, 17, 30, 0.78);
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.7);
}

.studio-cta-copy {
  flex: 1 1 420px;
}

.studio-cta-title {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 900;
  color: #0f172a;
  margin: 10px 0;
  line-height: 1.2;
}

html[data-theme="dark"] .studio-cta-title {
  color: #ffffff;
}

.studio-cta-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 16px;
}

html[data-theme="dark"] .studio-cta-desc {
  color: #cbd5e1;
}

.studio-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.studio-trust-chip .material-symbols-rounded {
  font-size: 15px;
  color: #10b981;
}

html[data-theme="dark"] .studio-trust-chip {
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
}

.studio-wa-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px -8px rgba(16, 185, 129, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.studio-wa-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(16, 185, 129, 0.65);
}

.studio-wa-cta-btn * {
  color: #ffffff !important;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (TABLET & MOBILE PERFECTION)
   ========================================================================== */
@media (max-width: 1080px) {
  .studio-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .studio-rail {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-block-size: none;
    padding: 10px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }
  .studio-rail-item {
    min-inline-size: 215px;
    width: auto;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .studio-arch-card {
    grid-template-columns: 1fr;
  }
  .studio-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .studio-hero {
    padding: 96px 0 36px;
  }
  .studio-launcher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }
  .studio-console-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-stage {
    padding: 20px 18px;
  }
  .studio-gallery-grid,
  .studio-custom-grid,
  .studio-eng-list,
  .studio-role-tabs {
    grid-template-columns: 1fr;
  }
  .studio-timeline-grid {
    grid-template-columns: 1fr;
  }
  .studio-cta-panel {
    padding: 24px 20px;
  }
  .studio-search-box {
    width: 100%;
    min-width: 0;
  }
  .studio-controls-right {
    width: 100%;
    justify-content: space-between;
  }
}
